Farruinn
11-29-2002, 10:21 PM
I have an old beige G3 that came with an ADB uni-button mouse. I've got it running Debian with X installed, but I'm unable to do a lot of things in the desktop managers without second and third buttons. I know that there are ways to emulate a three button mouse, but they haven't worked for me. The Debian install manual suggests adding these lines to /etc/sysctl.conf:
# 3-button mouse emulation
# turn on emulation
/dev/mac_hid/mouse_button_emulation = 1
# Send middle mouse button signal with the F11 key
/dev/mac_hid/mouse_button2_keycode = 87
# Send right mouse button signal with the F12 key
/dev/mac_hid/mouse_button3_keycode = 88
# For different keys, use showkey to tell you what the code is.
I've run xev to find what various keycodes are for my keyboard, but when I restart with these lines in my sysctl.conf file it doesn't work like it should: once I did get some emulation, but it was the wrong button on the wrong keycode, so I don't know what happened there.
If anyone has any experience on this I would greatly appreciate the help. Also, I think this is deserving of an NHF file - I've been trying to track down documentation on this subject but can't find any answers.
Thanks in advance,
-Nate
# 3-button mouse emulation
# turn on emulation
/dev/mac_hid/mouse_button_emulation = 1
# Send middle mouse button signal with the F11 key
/dev/mac_hid/mouse_button2_keycode = 87
# Send right mouse button signal with the F12 key
/dev/mac_hid/mouse_button3_keycode = 88
# For different keys, use showkey to tell you what the code is.
I've run xev to find what various keycodes are for my keyboard, but when I restart with these lines in my sysctl.conf file it doesn't work like it should: once I did get some emulation, but it was the wrong button on the wrong keycode, so I don't know what happened there.
If anyone has any experience on this I would greatly appreciate the help. Also, I think this is deserving of an NHF file - I've been trying to track down documentation on this subject but can't find any answers.
Thanks in advance,
-Nate