Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hello guys! Well, I would like to make a use for my extra keyboard keys (windows logo left, windows logo right, mute, stop, play, etc.). I know it can be done on X, but I would like to know how can it be done on console? If I already know the keycode, what file can I edit to assign it supposing I'm using bash? I began to think about it after seeing PC Linux OS Distribution assigning the windows logo to switch terminals (tty1, tty2, tty3...) so I'm curious to know how can it be made in another dists.
It prints the alert "Loading /etc/mykeys" on login, and doesn't print any error, but the keys simply don't work...? At first I thought there could have something to do with my system not understanding "Decr_Console" and "Incr_Console", but not even "find / -name " worked. Do you have any ideas about what could be wrong? I've already tried to set different codes like 91, 92...201, 202...but no results! :/
Last edited by icmp_request; 07-05-2007 at 09:52 AM.
These keycode values I received using the showkey command. Instead of appending a setkeycodes value for them, I just used the raw values themselves I received and bingo! As far as I could understand, showkey already displays the keycode value of a pressed key by default. So it's just use this value!
I don't need to mention that I created symlinks in /etc/rcX.d/S80keyb2 to /etc/init.d/keyb2 where X are the runlevels from 2 to 5.
'showkey' also prints the message "kb mode was XLATE", dunno if it is relevant but...
Whoa! No, I've got no idea why you get hex - I think those are scancodes. If you convert the hex to decimal, and use that in the setting up o fthe keys, does it work? I. e. key 0x7d in he = 125 in decimal? I. e. use 125 as the code?