Linked Questions
10 questions linked to/from keyboard hard remap keys?
1 vote
0 answers
73 views
Keyboard shortcut keys with no scancode? [duplicate]
I have a Microsoft Wireless Keyboard 2000, model #1477, running on Ubuntu 16.04 32-bit with a strange issue. It has a row of shortcut keys along the top (one of the reasons I chose it), but only half ...
27 votes
4 answers
79k views
How to inject keystrokes via a shell script?
I'm trying to inject keystrokes into the input daemon so as to simulate typing from a Bash script. Is this possible, and if so, how can I make it happen?
18 votes
2 answers
17k views
How to make SysRq working on laptop?
My /proc/sys/kernel/sysrq contains the number 502, but Alt+SysRq+... seems not to work on my HP Pavilion laptop. How can I fix that? Update 1: By the way: neither my print-screen-key nor any other ...
11 votes
1 answer
6k views
Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?
I've been able to change the keyboard layout/mapping when the X Window System is running using ~/.Xmodmap (and I suppose you could also do it through the X protocol directly, eg. using libxcb as a ...
11 votes
1 answer
13k views
How does the Linux kernel handle keyboards inputs/outputs?
I don't understand virtual terminal devices (eg. /dev/tty1), but I know I can "switch" to tty1 if I press ctrl + alt + f1. I've got a custom keyboard layout, which is in /usr/share/X11/xkb/symbols/us ...
4 votes
2 answers
3k views
Udev hwdb rule does not work
I am switching from Ubuntu to Arch Linux and encountering the issue that a udev hwdb rule that has worked until now does not work anymore. The only obvious difference between the systems is that ...
1 vote
1 answer
2k views
Fedora: Selected Lenovo Hotkeys not working on Fedora 26 (keycode > 255)
The Lenovo "Enhanced Performance" USB keyboard has some useful quick start hotkeys in the top row. Strangely, on my Fedora 26 system with XFCE, some of these keys work but others don't -- without any ...
2 votes
2 answers
944 views
How to remap Caps_Lock to F12?
I tried these: First I tried with xmodmap clear Lock keycode 66 = F12 but the issue is that it would reset my custom mapping after every reboot or log out. Therefore I had to run the command ...
3 votes
0 answers
1k views
OpenSUSE - Apple Wireless Keyboard - Switch "fn" and "ctrl" key?
I'm trying to configure the Apple Keyboard so that the "fn" key and the "ctrl" key are swapped. So far I swapped the "cmd" and "alt" key, the "°" and "<" key using xmodmap. Information for that can ...
0 votes
1 answer
557 views
Remap CapsLock and make it not lock capital letters
I wanted to remap CapsLock to work as escape, and I did it. What I did was: setxkbmap -option caps:escape But that method has a problem. Whenever I press CapsLock, on top it of working as escape, it ...