right click in ubuntu on the powerbook g4

wow. i never thought i would have to google how to right click using ubuntu on the powerbook.

apples powerbook touchpad has no middle or right mouse button – where this isnt a big problem using os x, in ubuntu it can generally be an issue.

after much googling i finally found that by default the mouse middle-click was f11 and the mouse right-click was f12. now these are mapped and can be changed by editing the /etc/sysctl.conf and mapping dev/mac_hid/mouse_button2_keycode and dev/mac_hid/mouse_button3_keycode to their corresponding key scan codes.

you can get the key scan codes by running sudo showkey then pressing the key or keys for which the scan codes are to be printed. to exit the key mapping software, press ctrl d.