]> Git Repo - linux.git/commitdiff
Input: add KEY_RFKILL
authorMatthew Garrett <[email protected]>
Wed, 17 Feb 2010 20:21:45 +0000 (12:21 -0800)
committerDmitry Torokhov <[email protected]>
Thu, 18 Feb 2010 10:08:16 +0000 (02:08 -0800)
Most laptops have keys that are intended to toggle all device state, not
just wifi. These are currently generally mapped to KEY_WLAN. As a result,
rfkill will only kill or enable wifi in response to the key press. This
confuses users and can make it difficult for them to enable bluetooth
and wwan devices.

This patch adds a new keycode, KEY_RFKILL. It indicates that the system
should toggle the state of all rfkillable devices.

Signed-off-by: Matthew Garrett <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
include/linux/input.h

index 735ceaf1bc2d5ef1ab80eedff4a070e0a6cc5420..663208afb64ce37ed16334debe6f40a4a858418f 100644 (file)
@@ -376,6 +376,7 @@ struct input_absinfo {
 #define KEY_DISPLAY_OFF                245     /* display device to off state */
 
 #define KEY_WIMAX              246
+#define KEY_RFKILL             247     /* Key that controls all radios */
 
 /* Range 248 - 255 is reserved for special needs of AT keyboard driver */
 
This page took 0.057755 seconds and 4 git commands to generate.