Tag Info

Hot answers tagged

6

I found the solution myself just after asking this question. To switch back the console in which X is running (usually tty7), from ASCII mode to RAW mode execute the following command: sudo kbd_mode -s -C /dev/tty7 And now everything works as expected again. :) More information available in the question: What does raw/unraw keyboard mode mean?


6

When you press a key on your keyboard, it sends a numeric code to the computer, called a scan code. The scan code tells the computer which key was pressed; for example, on a typical US keyboard, the A key sends the scan code 30 when you press it (and 158 when you release it). The keyboard driver reports these codes directly to applications when the keyboard ...


4

On a typical laptop, you need to press the Fn key to press SysRq. If you also press the letter in the same movement, you end up pressing Fn+Alt+SysRq+letter. But several letters are mapped to numeric keypad keys when combined with Fn. For example, if you try to press Alt+SysRq+U, you end up pressing Alt+SysRq+Num4 instead. To avoid this pitfall, press and ...


3

Apparently, it can be enabled/disabled using /proc/sys/kernel/sysrq if the kernel supports it, i.e., CONFIG_MAGIC_SYSRQ is enabled in the kernel config what should be the case for Slackware, according to this.


3

You can define which type of code your keyboard sends. This is done via the keyboard mode. You can change the mode of a keyboard with kbd_mode. These are the options from the manpage: -s: scancode mode (RAW), -k: keycode mode (MEDIUMRAW), -a: ASCII mode (XLATE), -u: UTF-8 mode (UNICODE). Its much easier for a developer to catch key events ...



Only top voted, non community-wiki answers of a minimum length are eligible