View previous topic :: View next topic |
Author |
Message |
MartinB Apprentice
Joined: 12 Feb 2003 Posts: 222 Location: Apeldoorn, Netherlands
|
Posted: Sun Oct 18, 2009 2:46 pm Post subject: [SOLVED] Enabling unmapped keys in Xorg on my keyboard? |
|
|
Hi everyone,
I'm using a Logitech G15 keyboard with the extra G1 to G18 keys on the left-hand side. I've got the g15daemon installed and running, which appears to be working fine.
Today, I decided to map the 18 G-keys to various compiz functions. However, some of the keys do not work. The current mapping appears to be as follows:
G1 -> XF86AudioRecord
G2 -> XF86AudioRewind
G3 -> XF86Phone
G4
G5 -> XF86Tools
G6 -> XF86HomePage
G7 -> XF86Reload
G8 -> XF86Close
G9
G10
G11 -> XF86ScrollUp
G12 -> XF86ScrollDown
G13 -> (
G14 -> )
G15 -> XF86New
G16 -> Redo
G17
G18
In other words, the keys G4, G9, G10, G17 and G18 do not respond at all when attempting to assign them to functions in Compiz, KDE Control Center or other applications. They seem to be completely dead. The mapped keys show the corresponding text when mapped to a function in compiz and work correctly as expected.
Can someone please suggest how I might enable the remaining unmapped keys?
I recently installed the new Xorg-server using HID for input, so I no longer have input devices configured in xorg.conf if that makes any difference.
A general pointer in the right direction will suffice!
Cheers,
Martin _________________ Intel i7 3820 - 16GB Corsair DDR3 - GeForce GTX 660 2GB - SBLive - 13TB - Gentoo - KDE4
Last edited by MartinB on Sun Oct 18, 2009 6:48 pm; edited 1 time in total |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Sun Oct 18, 2009 3:03 pm Post subject: |
|
|
emerge both x11-apps/xev and x11-apps/xmodmap if you don't already have them, run xev, and test the keys which don't seem to be mapped, noting the "keycode" value for each key.
Then create a file of keyboard mappings for each keycode, for example this is what I have in /etc/X11/Xmodmap; Code: | keycode 133 = F13
keycode 135 = F14 | Then you just need to add `xmodmap /etc/X11/Xmodmap` to your .xinitrc or whatever x11 start up scripts you use.
You'll probably need to read up on xmodmap a little to see all it can do.
HTH. _________________ "You have to invite me in" |
|
Back to top |
|
|
MartinB Apprentice
Joined: 12 Feb 2003 Posts: 222 Location: Apeldoorn, Netherlands
|
Posted: Sun Oct 18, 2009 6:48 pm Post subject: |
|
|
Thanks very much! That did the trick. _________________ Intel i7 3820 - 16GB Corsair DDR3 - GeForce GTX 660 2GB - SBLive - 13TB - Gentoo - KDE4 |
|
Back to top |
|
|
|
|
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
|
|