linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add keymap for Lenovo IdeaPad S10-3
@ 2010-08-12 16:04 David Woodhouse
  2010-08-12 18:14 ` Martin Pitt
  0 siblings, 1 reply; 2+ messages in thread
From: David Woodhouse @ 2010-08-12 16:04 UTC (permalink / raw)
  To: linux-hotplug

Tested on S10-3, but presumably applicable to all IdeaPads.

---
 extras/keymap/95-keymap.rules        |    2 ++
 extras/keymap/keymaps/lenovo-ideapad |    7 +++++++
 2 files changed, 9 insertions(+), 0 deletions(-)
 create mode 100644 extras/keymap/keymaps/lenovo-ideapad

diff --git a/extras/keymap/95-keymap.rules b/extras/keymap/95-keymap.rules
index 13b5571..2241422 100644
--- a/extras/keymap/95-keymap.rules
+++ b/extras/keymap/95-keymap.rules
@@ -65,6 +65,8 @@ ENV{DMI_VENDOR}="Compaq*", ATTR{[dmi/id]product_name}="*E500*|*Evo N*", RUN+="
 ENV{DMI_VENDOR}="LENOVO*", ATTR{[dmi/id]product_version}="*3000*", RUN+="keymap $name lenovo-3000"
 ENV{DMI_VENDOR}="LENOVO*", ATTR{[dmi/id]product_version}="ThinkPad X6*", ATTR{[dmi/id]product_version}="* Tablet" RUN+="keymap $name lenovo-thinkpad_x6_tablet"
 ENV{DMI_VENDOR}="LENOVO*", ATTR{[dmi/id]product_version}="ThinkPad X200 Tablet*", ATTR{[dmi/id]product_version}="* Tablet" RUN+="keymap $name lenovo-thinkpad_x200_tablet"
+ENV{DMI_VENDOR}="LENOVO*", ATTR{[dmi/id]product_version}="*IdeaPad*", RUN+="keymap $name lenovo-ideapad"
+ENV{DMI_VENDOR}="LENOVO*", ATTR{[dmi/id]product_name}="S10-*", RUN+="keymap $name lenovo-ideapad"
 
 ENV{DMI_VENDOR}="Hewlett-Packard*", RUN+="keymap $name hewlett-packard"
 ENV{DMI_VENDOR}="Hewlett-Packard*", ATTR{[dmi/id]product_name}="*[tT][aA][bB][lL][eE][tT]*", RUN+="keymap $name hewlett-packard-tablet"
diff --git a/extras/keymap/keymaps/lenovo-ideapad b/extras/keymap/keymaps/lenovo-ideapad
new file mode 100644
index 0000000..9f241fb
--- /dev/null
+++ b/extras/keymap/keymaps/lenovo-ideapad
@@ -0,0 +1,7 @@
+# Key codes observed on S10-3, assumed valid on other IdeaPad models
+0xB9 brightnessup		# does nothing in BIOS
+0xBA brightnessdown		# does nothing in BIOS
+0xF1 camera			# BIOS toggles camera power
+0x83 display_off		# BIOS toggles screen state
+0x81 rfkill			# does nothing in BIOS
+0xf2 unknown			# trackpad enable/disable (does nothing in BIOS)
-- 
1.7.2.1


-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation


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

* Re: [PATCH] Add keymap for Lenovo IdeaPad S10-3
  2010-08-12 16:04 [PATCH] Add keymap for Lenovo IdeaPad S10-3 David Woodhouse
@ 2010-08-12 18:14 ` Martin Pitt
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Pitt @ 2010-08-12 18:14 UTC (permalink / raw)
  To: linux-hotplug

Hello David,

David Woodhouse [2010-08-12 17:04 +0100]:
> Tested on S10-3, but presumably applicable to all IdeaPads.

Thank you! Committed with some adaptions (add to Makefile.am and sort
the list).

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-08-12 18:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-12 16:04 [PATCH] Add keymap for Lenovo IdeaPad S10-3 David Woodhouse
2010-08-12 18:14 ` Martin Pitt

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).