View previous topic :: View next topic |
Author |
Message |
pwny express n00b
Joined: 13 Mar 2005 Posts: 7
|
Posted: Sun Mar 13, 2005 9:29 pm Post subject: trackpad, 2+3 button emulation |
|
|
I have xorg working and am in gnome right now, however on my ibook, what would be right click and wheel click on a standard mouse do not exist. How would I go about configuring X if i wanted, for example, the alt button and the apple function button to emulate these two missing mouse clicks?
Also, is there a way to make the trackpad less sensitive? I would really appreciate any help possible. |
|
Back to top |
|
|
lostdave Tux's lil' helper
Joined: 16 Jun 2004 Posts: 85 Location: Leeds, UK
|
Posted: Sun Mar 13, 2005 11:37 pm Post subject: |
|
|
F12 and F11 are the default for right and middle button if you have it compiled into your kernel.
There is a config file that contains this information, although I'm not sure which one it is (/etc/rc.conf and /etc/keymaps are places to look).
The yellowdog documentation used to be a good place to find this sort of info (www.yellowdoglinux.com) |
|
Back to top |
|
|
neon l33t
Joined: 04 Aug 2003 Posts: 759 Location: Catania, Italy, Europe
|
Posted: Sun Mar 13, 2005 11:40 pm Post subject: |
|
|
For trackpad speed try to use someting like:
in your .xinitrc
For mouse button emulation you have to enable Device Drivers ---> Macintosh device drivers ---> [*] Support for mouse button 2+3 emulation
in your kernel config
And then:
Code: | echo 1 > /proc/sys/dev/mac_hid/mouse_button_emulation |
(at every boot)
now you should have fn+ctrl = button2 fn+alt = button3
_________________ Io credo che le tecnologie siano moralmente neutrali fino a quando non le utilizziamo - William Gibson
LINEE GUIDA DEL FORUM |
|
Back to top |
|
|
pwny express n00b
Joined: 13 Mar 2005 Posts: 7
|
Posted: Mon Mar 14, 2005 1:51 am Post subject: |
|
|
lostdave wrote: | F12 and F11 are the default for right and middle button if you have it compiled into your kernel.
There is a config file that contains this information, although I'm not sure which one it is (/etc/rc.conf and /etc/keymaps are places to look).
The yellowdog documentation used to be a good place to find this sort of info (www.yellowdoglinux.com) |
Ok, theres a conflict somewhere. the pbbuttonsd package is suppose to make the eject button work, which it doesn't (the eject button is also F12). Any suggestions? |
|
Back to top |
|
|
bruda Guru
Joined: 06 May 2004 Posts: 376 Location: Sherbrooke, QC, Canada
|
Posted: Mon Mar 14, 2005 3:25 am Post subject: |
|
|
The keys for middle and left buttons are configurable to anything you like. Besides
Code: | echo 1 > /proc/sys/dev/mac_hid/mouse_button_emulation |
to enable button 2 and 3 emulation you also need
Code: | echo XXX > /proc/sys/dev/mac_hid/mouse_button2_keycode
echo YYY > /proc/sys/dev/mac_hid/mouse_button3_keycode |
where XXX and YYY are the codes for the keys you want to use for the two buttons. Use `showkey' (in a VT, not under X) to find out the code of the keys you want to use for this purpose. _________________ Quid latine dictum sit altum videtur |
|
Back to top |
|
|
pwny express n00b
Joined: 13 Mar 2005 Posts: 7
|
Posted: Tue Mar 15, 2005 10:43 pm Post subject: |
|
|
bruda wrote: | The keys for middle and left buttons are configurable to anything you like. Besides
Code: | echo 1 > /proc/sys/dev/mac_hid/mouse_button_emulation |
to enable button 2 and 3 emulation you also need
Code: | echo XXX > /proc/sys/dev/mac_hid/mouse_button2_keycode
echo YYY > /proc/sys/dev/mac_hid/mouse_button3_keycode |
where XXX and YYY are the codes for the keys you want to use for the two buttons. Use `showkey' (in a VT, not under X) to find out the code of the keys you want to use for this purpose. |
One more question how do I know which keyboard key corresponds with which number? For example, how am I suppose to know which key 230 is? |
|
Back to top |
|
|
bruda Guru
Joined: 06 May 2004 Posts: 376 Location: Sherbrooke, QC, Canada
|
Posted: Wed Mar 16, 2005 12:26 am Post subject: |
|
|
pwny express wrote: | One more question how do I know which keyboard key corresponds with which number? For example, how am I suppose to know which key 230 is? |
I am not aware of a way to do this (though I am pretty sure it is possible), but why do you want to do it? I can understand the need to find the key code for a given key (case in which showkey is your friend), but what would the purpose of going the other way around be? _________________ Quid latine dictum sit altum videtur |
|
Back to top |
|
|
neon l33t
Joined: 04 Aug 2003 Posts: 759 Location: Catania, Italy, Europe
|
Posted: Wed Mar 16, 2005 2:30 pm Post subject: |
|
|
_________________ Io credo che le tecnologie siano moralmente neutrali fino a quando non le utilizziamo - William Gibson
LINEE GUIDA DEL FORUM |
|
Back to top |
|
|
|