Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-27-2008, 09:41 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 16

Rep: Reputation: 0
setting up a key

on my Laptop I got special keys for € and $ right at the arrowkeys.
Now I would like to set them up, as I always get the message "use setkeycodes e033 <keycode> to make it known."
in /usr/include/linux/input.h I found the keycodes for $(0x1b2) and € (0x1b3).
the manpage of setkeycodes tells me that the keycode should be in decimal.
but if I do
setkeycodes e033 435 for the €-key I get:
KDSETKEYCODE: Invalid argument.

and if I use the hex value:
setkeycodes e033 1b3
it is set to the escape char.

yet another question:
If I use xev, what is the connection between the keycodes of setkeycodes and the ones that are displayed by xev, as they are different. it seems like they are the ones of /usr/include/linux/input.h plus 8, a beeing 38 instead of 30 etc.

thx in advance


I have set the scancodes to keys below 255 now(202 and 203)
xev tells me now keycodes of 171 and 172, thats really confusing.

nevertheless when entering "xmodmap xmodmapfile" in /etc/X11/xinit/xinitrc the keys will not be loaded.
executing xmodmap manually works fine.
is there another way to modify the keytable with xmodmap on startup, for all users?

Last edited by okar; 04-27-2008 at 11:01 AM.
Old 04-29-2008, 10:26 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,893

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
These instructions might help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting wlan0 key sublyme718 Linux - Wireless Networking 1 11-06-2005 03:30 PM
setting up windows key for gnome hypermegachi Linux - General 4 07-15-2004 01:23 AM
error setting wep key laclac01 Linux - Wireless Networking 1 05-17-2004 02:57 PM
error setting wep key laclac01 Linux - Wireless Networking 1 05-17-2004 01:29 PM
error setting wep key laclac01 Linux - Wireless Networking 1 05-17-2004 12:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration