Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
trackpad, 2+3 button emulation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
pwny express
n00b
n00b


Joined: 13 Mar 2005
Posts: 7

PostPosted: Sun Mar 13, 2005 9:29 pm    Post subject: trackpad, 2+3 button emulation Reply with quote

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
View user's profile Send private message
lostdave
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jun 2004
Posts: 85
Location: Leeds, UK

PostPosted: Sun Mar 13, 2005 11:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
neon
l33t
l33t


Joined: 04 Aug 2003
Posts: 759
Location: Catania, Italy, Europe

PostPosted: Sun Mar 13, 2005 11:40 pm    Post subject: Reply with quote

For trackpad speed try to use someting like:
Code:
xset m 1

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
View user's profile Send private message
pwny express
n00b
n00b


Joined: 13 Mar 2005
Posts: 7

PostPosted: Mon Mar 14, 2005 1:51 am    Post subject: Reply with quote

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
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 375
Location: Sherbrooke, QC, Canada

PostPosted: Mon Mar 14, 2005 3:25 am    Post subject: Reply with quote

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
View user's profile Send private message
pwny express
n00b
n00b


Joined: 13 Mar 2005
Posts: 7

PostPosted: Tue Mar 15, 2005 10:43 pm    Post subject: Reply with quote

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 :oops: 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
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 375
Location: Sherbrooke, QC, Canada

PostPosted: Wed Mar 16, 2005 12:26 am    Post subject: Reply with quote

pwny express wrote:
One more question :oops: 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
View user's profile Send private message
neon
l33t
l33t


Joined: 04 Aug 2003
Posts: 759
Location: Catania, Italy, Europe

PostPosted: Wed Mar 16, 2005 2:30 pm    Post subject: Reply with quote

Code:
showkey

_________________
Io credo che le tecnologie siano moralmente neutrali fino a quando non le utilizziamo - William Gibson

LINEE GUIDA DEL FORUM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum