From: Eric Piel <Eric.Piel@tremplin-utc.net>
To: dmitry.torokhov@gmail.com
Cc: mitr@volny.cz, otauber@web.de, linux-kernel@vger.kernel.org
Subject: [PATCH] Wistron button support for TravelMate 610
Date: Tue, 06 Mar 2007 00:05:30 +0100 [thread overview]
Message-ID: <45ECA23A.5010503@tremplin-utc.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 747 bytes --]
Hello,
Here is a patch adding support to wistron button for Acer TravelMate
610. This is tested and works fine with the exception of the leds which
cannot be controlled (yet, that would require writing a led interface
for them when I've got time ;-) )
I'm sending just this one for now (as I can test it) but if you like it,
I would like to try to add all the database of keyboards available in
acerhk (that Olaf has written).
See you,
Eric
---
From: Eric Piel <eric.piel@tremplin-utc.net>
TM610 support for wistron_btns.
Adds support for Acer TravelMate 610 to wistron_btns, coming from info
of acer_hk. All special keys are detected, but the 2 leds are not
handled (yet).
Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net>
---
[-- Attachment #2: wistron_btns-tm610-from-acerhk-2.6.21.patch --]
[-- Type: text/x-patch, Size: 1497 bytes --]
diff -urpN -X linux-2.6.21/Documentation/dontdiff linux-2.6.21-rc2.bak/drivers/input/misc/wistron_btns.c linux-2.6.21/drivers/input/misc/wistron_btns.c
--- linux-2.6.21-rc2.bak/drivers/input/misc/wistron_btns.c 2007-03-03 12:33:41.000000000 +0100
+++ linux-2.6.21/drivers/input/misc/wistron_btns.c 2007-03-03 12:35:53.000000000 +0100
@@ -324,6 +324,21 @@ static struct key_entry keymap_acer_trav
{ KE_END, 0 }
};
+/* Wifi subsystem only activate the led. Therefore we need to pass
+ * wifi event as a normal key, then userspace can really change the wifi state.
+ * TODO we need to export led state to userspace (wifi and mail) */
+static struct key_entry keymap_acer_travelmate_610[] = {
+ { KE_KEY, 0x01, KEY_HELP },
+ { KE_KEY, 0x02, KEY_CONFIG },
+ { KE_KEY, 0x11, KEY_PROG1 },
+ { KE_KEY, 0x12, KEY_PROG2 },
+ { KE_KEY, 0x13, KEY_PROG3 },
+ { KE_KEY, 0x14, KEY_MAIL },
+ { KE_KEY, 0x15, KEY_WWW },
+ { KE_KEY, 0x40, KEY_XFER }, /* Wifi */
+ { KE_END, 0 }
+};
+
static struct key_entry keymap_aopen_1559as[] = {
{ KE_KEY, 0x01, KEY_HELP },
{ KE_KEY, 0x06, KEY_PROG3 },
@@ -408,6 +423,15 @@ static struct dmi_system_id dmi_ids[] __
},
{
.callback = dmi_matched,
+ .ident = "Acer TravelMate 610",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ACER"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 610"),
+ },
+ .driver_data = keymap_acer_travelmate_610
+ },
+ {
+ .callback = dmi_matched,
.ident = "AOpen 1559AS",
.matches = {
DMI_MATCH(DMI_PRODUCT_NAME, "E2U"),
next reply other threads:[~2007-03-05 23:06 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-05 23:05 Eric Piel [this message]
2007-03-06 13:36 ` [PATCH] Wistron button support for TravelMate 610 Dmitry Torokhov
2007-03-06 15:26 ` Éric Piel
2007-03-13 23:01 ` [PATCH 0/2] wistron_btns: More keymaps Eric Piel
2007-03-14 13:54 ` Dmitry Torokhov
2007-03-14 15:20 ` Éric Piel
2007-03-14 15:44 ` Dmitry Torokhov
2007-03-14 18:25 ` Vojtech Pavlik
2007-03-14 18:58 ` Dmitry Torokhov
2007-03-14 19:02 ` Dmitry Torokhov
2007-03-14 19:12 ` Éric Piel
2007-03-14 19:02 ` Vojtech Pavlik
2007-03-15 10:26 ` Éric Piel
2007-03-18 21:10 ` [PATCH 0/3] wistron_btns: More keymaps, take 2 Éric Piel
2007-03-27 3:39 ` Dmitry Torokhov
2007-03-18 21:10 ` [PATCH 1/3] wriston_btns: Add acerhk laptop database Éric Piel
2007-03-18 21:10 ` [PATCH 2/3] wistron_btns: Generic keymap Éric Piel
2007-03-18 21:10 ` [PATCH 3/3] wistron_btns: Declare keymaps as initdata Éric Piel
2007-03-19 21:28 ` [PATCH 0/2] wistron_btns: More keymaps Dmitry Torokhov
2007-03-20 0:06 ` Éric Piel
2007-03-13 23:05 ` [PATCH 1/2] wriston_btns: Add acerhk laptop database Eric Piel
2007-03-13 23:07 ` [PATCH 2/2] wistron_btns: Generic keymap Eric Piel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45ECA23A.5010503@tremplin-utc.net \
--to=eric.piel@tremplin-utc.net \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mitr@volny.cz \
--cc=otauber@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox