Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] USB Apple Keyboard: left Alt and left Command key
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
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Wed Nov 15, 2006 8:06 pm    Post subject: [solved] USB Apple Keyboard: left Alt and left Command key Reply with quote

Hello,

I recently bought an USB Apple keyboard to use with my iBook at home. It's more comfortable and has the advantage of not burning my left hand. :)

The problem is that the right Alt and the right Command keys don't work as expected. The right Alt behaves like the right mouse button and the right Command behaves like the middle mouse button, both under X11 and in text mode. If I disable gpm (the mouse-in-console thing) and run showkey, the program doesn't seem to recognise any of those keys. Left Alt and left Command work great, by the way, and everything is well on MacOSX.

So... any ideas on where I should start sniffing around?


Last edited by Sodki on Thu Nov 16, 2006 2:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
gnomeza
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 97

PostPosted: Thu Nov 16, 2006 2:09 am    Post subject: Reply with quote

Is this keyboard mapping madness day or something?! :P

In X, run xev from an xterm and post the KeyPress and KeyRelease events generated by RAlt and RCommand.

Also post the keyboard layout section of your xorg.conf

Modifiers have their own special mappings in XKB - your keymap may not be setting these correctly.
e.g. You sometimes find lines like the following in XKB keymaps:
Code:
modifier_map Mod2  { ISO_Level3_Shift };
modifier_map Mod4   { Super_L, Super_R };

The xkbwatch util will show (more or less) which modifiers are activated when you press the keys.
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Nov 16, 2006 2:16 am    Post subject: Reply with quote

Look at the files in /proc/sys/dev/mac_hid and see if mouse_button_emulation has a 1, then look in /etc/sysctl.conf and see if mac_hid is there.
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Thu Nov 16, 2006 2:04 pm    Post subject: Reply with quote

Thank you both, my problem is now solved. The culprit was the mouse emulation thing, the shortcuts I chose were conflicting. But the xev tip was great, because now I can easily complete my keyboard mapping (F13, F14, etc.). There is no keyboard mapping for this kind of layout (pt), so I just do it with xmodmap.
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