Return-path: Received: from cavan.codon.org.uk ([93.93.128.6]:45831 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751887AbZHASyg (ORCPT ); Sat, 1 Aug 2009 14:54:36 -0400 From: Matthew Garrett To: linux-input@vger.kernel.org Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org, dmitry.torokhov@gmail.com, Matthew Garrett Subject: [PATCH 1/2] input: Add KEY_RFKILL_ALL Date: Sat, 1 Aug 2009 19:54:18 +0100 Message-Id: <1249152859-14769-1-git-send-email-mjg@redhat.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: 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_ALL. It indicates that the system should toggle the state of all rfkillable devices. Signed-off-by: Matthew Garrett --- include/linux/input.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/input.h b/include/linux/input.h index 8b3bc3e..0eff8ff 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -595,6 +595,8 @@ struct input_absinfo { #define KEY_NUMERIC_STAR 0x20a #define KEY_NUMERIC_POUND 0x20b +#define KEY_RFKILL_ALL 0x20c + /* We avoid low common keys in module aliases so they don't get huge. */ #define KEY_MIN_INTERESTING KEY_MUTE #define KEY_MAX 0x2ff -- 1.6.2.5