Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
One button pebble mouse
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
Elim
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2004
Posts: 100
Location: Here, there and everywhere. Mostly in the EU

PostPosted: Thu Aug 05, 2004 8:09 am    Post subject: One button pebble mouse Reply with quote

I have got a new world imac 400mhz with a non current style mac keyboard (i bought it off ebay but i think its about 1999-2001) and pebble mouse which has one button, what i would like to know is how do i change XF86Config to emulate 2 other butons using the keys F9 and F10 When i installed mandrake it was able to do this but i have not found a way to apply it to gentoo. Thanks in advance.
PS I have kde installed,
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Thu Aug 05, 2004 5:24 pm    Post subject: Reply with quote

When you configure the (2.6) kernel there is an option to provide mouse button 2+3 emulation, you have this activated ?
It's in
Code:
  Device Drivers
 Macintosh device drivers
 Support for ADB input devices (keyboard, mice, ...)
  Support for mouse button 2+3 emulation

Then all you have to do is to run "xev" and find out the keycodes for F9 and F10.
Then in the file /etc/sysctl.conf you add the following lines at the end:
Code:
# Enable mouse button emulation
dev.mac_hid.mouse_button_emulation = 1
# Set 2nd button to 87 - F11
dev.mac_hid.mouse_button2_keycode = 87
# Set 3rd button to 88 - F12
dev.mac_hid.mouse_button3_keycode = 88

That should do it.
Back to top
View user's profile Send private message
Elim
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2004
Posts: 100
Location: Here, there and everywhere. Mostly in the EU

PostPosted: Fri Aug 06, 2004 6:57 am    Post subject: thanks Reply with quote

thanks
Back to top
View user's profile Send private message
soujirou
Apprentice
Apprentice


Joined: 22 Jun 2004
Posts: 205
Location: sweden

PostPosted: Tue Aug 10, 2004 2:44 pm    Post subject: Reply with quote

this "xev" humm is it a program ? that i must get ?
i mean i got no xev hum
_________________
ibook 12" G3 800mhz 30gb 384ram
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Tue Aug 10, 2004 3:00 pm    Post subject: Reply with quote

Yeah, it's a small program which will show the keycodes for the keys you press. I /think/ it's included with xfree (might be that this is included with xfree and not with xorg, i'm just guessing here), but not sure though. I'll check about that later on, when i can access my ibook again.
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Tue Aug 10, 2004 5:30 pm    Post subject: Reply with quote

"xev" is indeed part of 'xfree', i don't know whether it also comes with 'xorg'. You only need it to know the key-code corresponding to a key. But you can take my config verbatim if F11 and F12 is fine for you for emulating middle and right mouse button.
Back to top
View user's profile Send private message
bruda
Guru
Guru


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

PostPosted: Tue Aug 10, 2004 9:24 pm    Post subject: Reply with quote

xev exists here as part of Xorg. Incidentally, you do not need xev for this particular task, showkey (in a VT, not under X) will do fine, just press the desired keys, record their code, and wait 10-ish seconds for the prompt.

For completeness:
Code:
< turing ~ > qpkg -f `which xev`
x11-base/xorg-x11 *
< turing ~ > qpkg -f `which showkey`
sys-apps/kbd *

_________________
Quid latine dictum sit altum videtur
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