Skip to content

Commit

Permalink
Input: add KEY_RFKILL
Browse files Browse the repository at this point in the history
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 <mjg@redhat.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Matthew Garrett authored and Dmitry Torokhov committed Feb 18, 2010
1 parent c2d1a2a commit 3b77fd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 3b77fd8

Please sign in to comment.