hal: Branch 'master'

Richard Hughes hughsient at kemper.freedesktop.org
Tue Jun 5 09:23:06 PDT 2007


 fdi/information/10freedesktop/30-keymap-lenovo.fdi |   30 +++++++++++++++++++++
 1 files changed, 30 insertions(+)

New commits:
diff-tree 8e51fc7898707934079be1c74ce6f5e03ceb3dd5 (from c8b6c3084c79fe0853befa2795e1738fb11fa5c2)
Author: Richard Hughes <richard at hughsie.com>
Date:   Tue Jun 5 16:52:15 2007 +0100

    add keymap capabilities into hal-info
    
    Add keymapping data into hal-info so we can remap scancode->keycodes
    at boot time, fixing many multimedia keyboards.

diff --git a/fdi/information/10freedesktop/30-keymap-lenovo.fdi b/fdi/information/10freedesktop/30-keymap-lenovo.fdi
new file mode 100644
index 0000000..1262a8e
--- /dev/null
+++ b/fdi/information/10freedesktop/30-keymap-lenovo.fdi
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
+
+<deviceinfo version="0.2">
+  <device>
+
+    <!-- These are raw scancodes produced by the atkbd driver -->
+    <match key="@input.originating_device:info.linux.driver" string="atkbd">
+
+      <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" prefix="LENOVO">
+        <match key="/org/freedesktop/Hal/devices/computer:smbios.system.version" contains="3000">
+          <append key="input.keymap.data" type="strlist">e016:wlan</append> <!-- Fn+F5 wireless -->
+          <append key="input.keymap.data" type="strlist">e017:sleep</append> <!-- Fn+F4 suspend -->
+          <append key="input.keymap.data" type="strlist">e018:suspend</append> <!-- Fn+F12 hibernate -->
+          <append key="info.capabilities" type="strlist">input.keymap</append>
+        </match>
+      </match>
+
+    </match>
+
+    <!-- These are buttons synthesized in other kernel drivers -->
+    <match key="input.product" string="ThinkPad Extra Buttons">
+      <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" prefix="LENOVO">
+        <append key="input.keymap.data" type="strlist">007f:coffee</append> <!-- thinkvantage -->
+        <append key="info.capabilities" type="strlist">input.keymap</append>
+      </match>
+    </match>
+
+  </device>
+</deviceinfo>
+


More information about the hal-commit mailing list