Right-click on Apple's PowerBook and Ubuntu Linux

Apple’s PowerBook built-in touchpad has no middle or right mouse button. Under Mac OS X, right-click is simulated by holding down the Control key and then clicking. However, this doesn’t work on Ubuntu Linux.

Googling around, I found that, by default, the F11 key is mapped to a mouse middle-click while the F12 key is mapped to a mouse right-click.

It is also possible to change this behavior by editing /etc/sysctl.conf and mapping dev/mac_hid/mouse_button2_keycode and dev/mac_hid/mouse_button3_keycode to their corresponding key scan codes. The scan code for a key can be retrieved by running

sudo showkey

then pressing the key or keys for which the scan codes are to be printed. To exit, press Control-D.

3 thoughts on “Right-click on Apple's PowerBook and Ubuntu Linux

  1. There has been a very similar version of the UG infect deck at our shop for months now, it is very dangerous and can just simply win on turn 2 on the play

  2. Great discussion. However, there is something that no one seems to have mentioned. The government allows a tax break for charitable contributions. This way, a person who makes more than others can donate to the charity of his or her choosing to redistribute their own wealth and bypass the corrupt, inefficient system used by the gub’ment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s