LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
setting up a key


Hi,
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



edit:

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 12:01 PM.
 
Old 04-29-2008, 11:26 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

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


Reply


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 04:30 PM
setting up windows key for gnome hypermegachi Linux - General 4 07-15-2004 02:23 AM
error setting wep key laclac01 Linux - Wireless Networking 1 05-17-2004 03:57 PM
error setting wep key laclac01 Linux - Wireless Networking 1 05-17-2004 02:29 PM
error setting wep key laclac01 Linux - Wireless Networking 1 05-17-2004 01:35 PM


All times are GMT -5. The time now is 06:19 AM.

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