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.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Hello Stefan! I thank you so much for your help, but unfortunately it didn't work. I've got the following codes for the following keys using the 'showkey' command:
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! :/
Thanks again!
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.
Hello Stefan! I thank you so much for your help, but unfortunately it didn't work. I've got the following codes for the following keys using the 'showkey' command:
'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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.