My girlfriend's hard drive on her Macbook recently crashed, so a new hard drive and installation of Fedora later, we were refaced with "How to right-click?" I have forgotten the name of the application we were using last time, but we had it set up to substitute the Enter key (near the space bar) with a mouse's right click. Searching around for the optimal solution revealed that the kernel by default might have facilities built in to support this redirection of input. Indeed, and this is how we do it:
# cd /proc/sys/dev/mac_hid # echo 1 > mouse_button_emulation # echo 96 > mouse_button3_keycode
I tried using dumpkeys to find out which keycode belonged to that Enter. It turned out to be KP_Enter for the keypad which mapped to 96 for us. Yay.
To make the change more permanent, we're setting the following in /etc/sysctl.conf:
dev.mac_hid.mouse_button_emulation = 1 dev.mac_hid.mouse_button3_keycode = 96
Credit for this knowledge goes to Mactel-Linux.org.
Oh, and sysadminblog advised us to set
Option "MaxTapTime" "0"
in the synaptics section in /etc/X11/xorg.conf to disable the trackpad click. However, in her Fedora 9 install, there was no synaptics section. Adding a bare one with the entry stopped the trackpad from clicking, but it also made it unbearably slow. Now the entry for the input device looks like:
Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "SendCoreEvents" "true" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "HorizEdgeScroll" "0" Option "MaxTapTime" "0" Option "MinSpeed" "0.4" Option "MaxSpeed" "1" Option "AccelFactor" "0.02" EndSection
No comments:
Post a Comment