Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
An alternative is to simply modify your keyboard driver. The key-codes are set out in the file /usr/share/X11/xkb/keycodes/evdev
That contains the lines
<DOWN>=116;
<INS>=118;
Edit the file as root: swap the numbers and the keys swap functions. If you don't want a key to work, comment-out the entry with # at the start of the line and that key is no longer recognised. Changes take effect after the next log-in.
A simple solution to remapping a couple of keys, but it didn't work for me. It's as if the altered evdev file is not being read at boot up. What am I missing?
There is a chance that it IS working, but some other device messes with it.
My whole keyboard layout settings get borked whenever I turn on my wacom tablet, to the point where I have written udev rules that re-run the script I use to set all the things.
The set-up looks fine. Let's check that the two keys are 116 and 118. Run the program xev in a terminal. That tells you what the keys are doing when you press them. When I press DOWN and INS, the third line of the output reads
state 0x0, keycode 116 (keysym 0xff54, Down), same_screen YES,
and
state 0x0, keycode 118 (keysym 0xff63, Insert), same_screen YES,
Do you get that, or something else?
When I press DOWN, I get state 0x0, keycode 116 (keysym 0xff54, Down), same_screen YES,
When I press INS, I get: state 0x0, keycode 90 (keysym 0xff9e, KP_Insert), same_screen YES,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.