Skip to content
Commit 3b77fd8e authored by Matthew Garrett's avatar Matthew Garrett Committed by Dmitry Torokhov
Browse files

Input: add KEY_RFKILL



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: default avatarMatthew Garrett <mjg@redhat.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent c2d1a2a1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment