linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] keymap: Add support for IBM-branded USB devices
@ 2010-04-01 18:22 Matthew Garrett
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Garrett @ 2010-04-01 18:22 UTC (permalink / raw)
  To: linux-hotplug

These seem to use a different layout to the Lenovo-branded devices
---
 Makefile.am                                        |    1 +
 extras/keymap/95-keymap.rules                      |    1 +
 .../keymaps/ibm-thinkpad-usb-keyboard-trackpoint   |    7 +++++++
 3 files changed, 9 insertions(+), 0 deletions(-)
 create mode 100644 extras/keymap/keymaps/ibm-thinkpad-usb-keyboard-trackpoint

diff --git a/Makefile.am b/Makefile.am
index 68a68d9..6f9a0c8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -510,6 +510,7 @@ dist_udevkeymap_DATA = \
 	extras/keymap/keymaps/hewlett-packard-presario-2100 \
 	extras/keymap/keymaps/hewlett-packard-tablet \
 	extras/keymap/keymaps/hewlett-packard-tx2 \
+	extras/keymap/keymaps/ibm-thinkpad-usb-keyboard-trackpoint \
 	extras/keymap/keymaps/inventec-symphony_6.0_7.0 \
 	extras/keymap/keymaps/lenovo-3000 \
 	extras/keymap/keymaps/lenovo-thinkpad-usb-keyboard-trackpoint \
diff --git a/extras/keymap/95-keymap.rules b/extras/keymap/95-keymap.rules
index af39c21..961e0a5 100644
--- a/extras/keymap/95-keymap.rules
+++ b/extras/keymap/95-keymap.rules
@@ -22,6 +22,7 @@ LABEL="keyboard_usbcheck"
 ENV{ID_VENDOR}="Logitech*", ATTRS{name}="Logitech USB Multimedia Keyboard", RUN+="keymap $name logitech-wave"
 ENV{ID_VENDOR}="Logitech*", ATTRS{name}="Logitech USB Receiver", RUN+="keymap $name logitech-wave-cordless"
 ENV{ID_VENDOR}="Lite-On_Technology_Corp*", ATTRS{name}="Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint", RUN+="keymap $name lenovo-thinkpad-usb-keyboard-trackpoint"
+ENV{ID_VENDOR_ID}="04b3", ENV{ID_MODEL_ID}="301[89]", RUN+="keymap $name ibm-thinkpad-usb-keyboard-trackpoint"
 
 GOTO="keyboard_end"
 
diff --git a/extras/keymap/keymaps/ibm-thinkpad-usb-keyboard-trackpoint b/extras/keymap/keymaps/ibm-thinkpad-usb-keyboard-trackpoint
new file mode 100644
index 0000000..027e50b
--- /dev/null
+++ b/extras/keymap/keymaps/ibm-thinkpad-usb-keyboard-trackpoint
@@ -0,0 +1,7 @@
+0x900f0 screenlock
+0x900f1 wlan
+0x900f2 switchvideomode
+0x900f3 suspend
+0x900f4 brightnessup
+0x900f5 brightnessdown
+0x900f8 zoom
-- 
1.7.0.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] keymap: Add support for IBM-branded USB devices
@ 2010-07-02 13:53 Martin Pitt
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Pitt @ 2010-07-02 13:53 UTC (permalink / raw)
  To: linux-hotplug

Hello Matthew,

Matthew Garrett [2010-04-01 14:22 -0400]:
> These seem to use a different layout to the Lenovo-branded devices

Whoops, sorry that this slipped through the cracks. Applied to trunk
now.

Thanks!

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-02 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-02 13:53 [PATCH] keymap: Add support for IBM-branded USB devices Martin Pitt
  -- strict thread matches above, loose matches on Subject: below --
2010-04-01 18:22 Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).