Keyboard input: Difference between revisions
(moved part of intro, →Identifying scancodes: and →Mapping scancodes to keycodes: to Keyboard input) |
|||
Line 9: | Line 9: | ||
{{Related|Xmodmap}} | {{Related|Xmodmap}} | ||
{{Related articles end}} | {{Related articles end}} | ||
Many keyboards include some ''special keys'' (also called ''hotkeys'' or ''multimedia keys''), which are supposed to execute an application or print special characters (not included in the standard national keymaps). [[udev]] contains a large database of mappings specific to individual keyboards, so common keyboards usually work out of the box. If you have very recent or uncommon piece of hardware, you may need to adjust the mapping manually. | Many keyboards include some ''special keys'' (also called ''hotkeys'' or ''multimedia keys''), which are supposed to execute an application or print special characters (not included in the standard national keymaps). [[udev]] contains a large database of mappings specific to individual keyboards, so common keyboards usually work out of the box. If you have very recent or uncommon piece of hardware, you may need to adjust the mapping manually. | ||
See [[Keyboard input]]. | |||
== Laptops == | == Laptops == |
Revision as of 04:32, 1 June 2018
Many keyboards include some special keys (also called hotkeys or multimedia keys), which are supposed to execute an application or print special characters (not included in the standard national keymaps). udev contains a large database of mappings specific to individual keyboards, so common keyboards usually work out of the box. If you have very recent or uncommon piece of hardware, you may need to adjust the mapping manually.
See Keyboard input.
Laptops
Apple MacBooks
All the required information is available on the Apple Keyboard dedicated article.
Asus M series
In order to have control over the light sensor and the multimedia keys on your Asus machine, you should use the following command:
# echo 1 > /sys/devices/platform/asus_laptop/ls_switch
To have it run on boot create a Systemd tmpfile:
/etc/tmpfiles.d/local.conf
w /sys/devices/platform/asus_laptop/ls_switch - - - - 1
Asus N56VJ (or possibly others)
If most of your special keys do not work, try loading the asus-nb-wmi kernel module with
# modprobe asus-nb-wmi
then check xev again. If you combine this with the acpi_osi="!Windows 2012" boot option, you may get weird results in xev, so try not using it. If this did fix things, make sure to make the module load at boot with methods described in Kernel modules#Automatic module handling.
Lenovo T460p (or possibly others)
Out of the box, the backlight keys (on F5, F6) might not be available, even via the /dev/input
interface. To fix this, follow Backlight#Kernel command-line options.
Gaming Keyboards
Gaming keyboards have some special features which may cause them to "misbehave" in Linux.
Cooler Master CM Storm QuickFire TK
This keyboard has two features that could cause confusion in Linux: N-Key Rollover and the Win-Lock Key.
N-Key Rollover can cause problems with the Function keys. To disable N-key rollover, hold down the FN lock key (next to right-ctrl) until it lights up, then hold Escape and press 6 to switch to 6-key rollover. Hold down the FN lock key to disable the Fn lock.
The Win-Lock Key completely disables the Super (Windows) keys. Simply press the FN lock key and F12 together to toggle Win-Lock on and off.
Corsair K series keyboards
There is a winlock button on these keyboards that can disable the use of the Super (Windows) keys. This button is located at the top right of the keyboard next to the num and capslock buttons. CKB can be used to disable this functionality entirely preventing further locking. However, in a default state, simply pressing the button would enable the Super (Windows) keys again.
Logitech G series G710 and 710+
This keyboard has a row of 6 programmable G keys. In order to use them as intended by Logitech, you need to install sidewinderdAUR and start sidewinderd.service
.
See also
- Enabling Keyboard Multimedia Keys - guide on LinuxQuestions wiki
- Multimedia Keys on Gentoo Wiki Archives