hal: Branch 'origin' - 5 commits

David Zeuthen david at kemper.freedesktop.org
Tue Jul 17 08:29:55 PDT 2007


 fdi/information/10freedesktop/20-video-quirk-pm-ibm.fdi          |   10 +--
 fdi/information/10freedesktop/30-keymap-acer.fdi                 |   32 ++++++++++
 fdi/information/10freedesktop/30-keymap-dell.fdi                 |   23 +++++++
 fdi/information/10freedesktop/30-keymap-module-thinkpad-acpi.fdi |   13 ++++
 fdi/information/10freedesktop/Makefile.am                        |    3 
 5 files changed, 75 insertions(+), 6 deletions(-)

New commits:
diff-tree f1d80599c70258db2013b52e8fb1e785fb5f1a6a (from a5ab35b496cc990cc82c53664ad3d129fdd60dee)
Author: Zack Cerza <zcerza at redhat.com>
Date:   Tue Jul 17 13:32:13 2007 +0100

    add keymap for X41
    
    Attached is a patch for the X41 keymap. I don't have the tablet version,
    though, so we'll see if that matters later...

diff --git a/fdi/information/10freedesktop/30-keymap-module-thinkpad-acpi.fdi b/fdi/information/10freedesktop/30-keymap-module-thinkpad-acpi.fdi
index 479a087..947b315 100644
--- a/fdi/information/10freedesktop/30-keymap-module-thinkpad-acpi.fdi
+++ b/fdi/information/10freedesktop/30-keymap-module-thinkpad-acpi.fdi
@@ -129,6 +129,19 @@
           <append key="input.keymap.data" type="strlist">0x17:vendor</append> <!-- ThinkPad/ThinkVantage button -->
           <append key="info.capabilities" type="strlist">input.keymap</append>
         </match>
+        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.version" contains="X4">
+          <append key="input.keymap.data" type="strlist">0x02:lock</append> <!-- Fn+F3 lock -->
+          <append key="input.keymap.data" type="strlist">0x03:sleep</append> <!-- Fn+F4 suspend -->
+          <append key="input.keymap.data" type="strlist">0x04:radio</append> <!-- Fn+F5 switch radio -->
+          <append key="input.keymap.data" type="strlist">0x06:switchvideomode</append> <!-- Fn+F7 switch video output device -->
+          <append key="input.keymap.data" type="strlist">0x08:f24</append> <!-- Fn+F9 undock -->
+          <append key="input.keymap.data" type="strlist">0x0b:suspend</append> <!-- Fn+F12 hibernate -->
+          <append key="input.keymap.data" type="strlist">0x0f:brightnessup</append> <!-- Fn+Home -->
+          <append key="input.keymap.data" type="strlist">0x10:brightnessdown</append> <!-- Fn+End -->
+          <append key="input.keymap.data" type="strlist">0x13:zoom</append> <!-- Fn+Space -->
+          <append key="input.keymap.data" type="strlist">0x17:vendor</append> <!-- ThinkPad/ThinkVantage button -->
+          <append key="info.capabilities" type="strlist">input.keymap</append>
+        </match>
       </match>
 
       <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" prefix="LENOVO">
diff-tree a5ab35b496cc990cc82c53664ad3d129fdd60dee (from bb938b95aa3395f5840c0b7f0d10fd89fbb78995)
Author: Mads Kiilerich <mads at kiilerich.com>
Date:   Tue Jul 17 10:14:44 2007 +0100

    add keymap for dell d610
    
    As requested on
    http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-report.html
    a patch for Dell Latitude D-610, captured on Fedora 7.
    
      system.hardware.product = 'Latitude D610'  (string)
      system.hardware.vendor = 'Dell Inc.'  (string)

diff --git a/fdi/information/10freedesktop/30-keymap-dell.fdi b/fdi/information/10freedesktop/30-keymap-dell.fdi
index cf4110d..da5e2b3 100644
--- a/fdi/information/10freedesktop/30-keymap-dell.fdi
+++ b/fdi/information/10freedesktop/30-keymap-dell.fdi
@@ -18,6 +18,16 @@
             <append key="input.keymap.data" type="strlist">e00a:suspend</append> <!-- Fn+F1 hibernate -->
             <append key="info.capabilities" type="strlist">input.keymap</append>
           </match>
+          <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains="D610">
+            <append key="input.keymap.data" type="strlist">e007:battery</append> <!-- Fn+F3 battery icon -->
+            <append key="input.keymap.data" type="strlist">e00b:displaytoggle</append> <!-- Fn+F8 CRT/LCD -->
+            <append key="input.keymap.data" type="strlist">e006:brightnessup</append> <!-- Fn+Up arrow Brightness Up -->
+            <append key="input.keymap.data" type="strlist">e005:brightnessdown</append> <!-- Fn+Down arrow Brightness Down -->
+            <append key="input.keymap.data" type="strlist">e00a:suspend</append> <!-- Fn+F1 hibernate -->
+            <append key="input.keymap.data" type="strlist">e008:wlan</append> <!-- Fn+F2 Turn On/Off Wireless -->
+            <append key="input.keymap.data" type="strlist">e009:ejectclosecd</append> <!-- Fn+F10 Eject CD -->
+            <append key="info.capabilities" type="strlist">input.keymap</append>
+          </match>
           <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains="D620">
             <append key="input.keymap.data" type="strlist">e007:battery</append> <!-- Fn+F3 battery icon -->
             <append key="input.keymap.data" type="strlist">e00f:switchvideomode</append> <!-- Fn+F7 aspect ratio -->
diff-tree bb938b95aa3395f5840c0b7f0d10fd89fbb78995 (from eb2ae3c6b0cbe31b37c21a5e494185bf692e3b7f)
Author: Juan Pablo Salazar Bertín <snifer_ at hotmail.com>
Date:   Mon Jul 16 18:19:39 2007 +0100

    add keymap for Dell Inspiron 9400
    
    Keymap for Dell Inspiron 9400 laptop.
    
    Some notes:
    
    * These keys work, even with the unknown key pressed message: wifi/bluetooth, brightness up, brightness down.
    * The media direct key generates 2 events (same scancode), 1 when pressing it and 1 when releasing it.

diff --git a/fdi/information/10freedesktop/30-keymap-dell.fdi b/fdi/information/10freedesktop/30-keymap-dell.fdi
index c316de8..cf4110d 100644
--- a/fdi/information/10freedesktop/30-keymap-dell.fdi
+++ b/fdi/information/10freedesktop/30-keymap-dell.fdi
@@ -53,6 +53,19 @@
           </match>
         </match> <!-- prefix="Latitude" -->
 
+        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" prefix="MP061"> <!-- Dell Inspiron 9400 -->
+          <append key="input.keymap.data" type="strlist">e005:brightnessdown</append> <!-- Fn+Down arrow Brightness Down -->
+          <append key="input.keymap.data" type="strlist">e006:brightnessup</append> <!-- Fn+Up arrow Brightness Up -->
+          <append key="input.keymap.data" type="strlist">e007:battery</append> <!-- Fn+F3 battery icon -->
+          <append key="input.keymap.data" type="strlist">e008:wlan</append> <!-- Fn+F2 Toggle WiFi -->
+          <append key="input.keymap.data" type="strlist">e008:bluetooth</append> <!-- FIXME Bluetooth switch (same as wireless) -->
+          <append key="input.keymap.data" type="strlist">e009:ejectclosecd</append> <!-- Fn+F10 Eject CD -->
+          <append key="input.keymap.data" type="strlist">e00a:suspend</append> <!-- Fn+F1 hibernate -->
+          <append key="input.keymap.data" type="strlist">e00b:switchvideomode</append> <!-- Fn+F8 CRT/LCD -->
+          <append key="input.keymap.data" type="strlist">e012:media</append> <!-- MediaDirect button (house icon) -->
+          <append key="info.capabilities" type="strlist">input.keymap</append>
+        </match>
+
         <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" prefix="MXC061"> <!-- Dell Inspiron 640m -->
           <append key="input.keymap.data" type="strlist">e00a:suspend</append> <!-- Fn+F1 hibernate -->
           <append key="input.keymap.data" type="strlist">e008:wlan</append> <!-- Fn+F2 Toggle WiFi -->
diff-tree eb2ae3c6b0cbe31b37c21a5e494185bf692e3b7f (from 7628f625f4e3d64357885b07643bf20f264246b4)
Author: Jason Merrill <jason at redhat.com>
Date:   Mon Jul 16 18:13:25 2007 +0100

    add suspend quirks for the t43
    
    This patch just adjusts the existing quirks for the ATI and Intel
    variants of the T43 to cover all the relevant model numbers.  With this
    change, my T43 (a 2669) suspends and hibernates cleanly.

diff --git a/fdi/information/10freedesktop/20-video-quirk-pm-ibm.fdi b/fdi/information/10freedesktop/20-video-quirk-pm-ibm.fdi
index 89eeda5..05fe19a 100644
--- a/fdi/information/10freedesktop/20-video-quirk-pm-ibm.fdi
+++ b/fdi/information/10freedesktop/20-video-quirk-pm-ibm.fdi
@@ -49,14 +49,14 @@
         </match>
       </match>
       <!-- T43 -->
-      <match key="system.hardware.product" prefix="2668">
-        <match key="system.hardware.version" string="ThinkPad T43">
+      <match key="system.hardware.version" string="ThinkPad T43">
+        <!-- Models 2668, 2669, 2678, 2679, 2686, 2687 use ATI graphics -->
+        <match key="system.hardware.product" prefix="26">
           <merge key="power_management.quirk.vbe_post" type="bool">true</merge>
           <merge key="power_management.quirk.vbemode_restore" type="bool">true</merge>
         </match>
-      </match>
-      <match key="system.hardware.product" prefix="1871">
-        <match key="system.hardware.version" string="ThinkPad T43">
+        <!-- Models 1871, 1872, 1873, 1874, 1875, 1876 use Intel graphics -->
+        <match key="system.hardware.product" prefix="18">
           <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
           <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
         </match>
diff-tree 7628f625f4e3d64357885b07643bf20f264246b4 (from fd31e8c2c7268bfefbe3fd2383ef7757a1b7b52d)
Author: Carlos Corbacho <cathectic at gmail.com>
Date:   Thu Jul 12 21:08:27 2007 +0100

    keymap for Acer Aspire 5020
    
    This patch:
    
    1) Adds a new file for Acer entries
    2) Adds an entry for Aspire 5020

diff --git a/fdi/information/10freedesktop/30-keymap-acer.fdi b/fdi/information/10freedesktop/30-keymap-acer.fdi
new file mode 100644
index 0000000..1474bc4
--- /dev/null
+++ b/fdi/information/10freedesktop/30-keymap-acer.fdi
@@ -0,0 +1,32 @@
+<?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="Acer">
+        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" prefix="Aspire">
+          <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains="5020">
+            <append key="input.keymap.data" type="strlist">e025:help</append> <!-- Fn+F1 Hotkey help -->
+            <append key="input.keymap.data" type="strlist">e026:setup</append> <!-- Fn+F2 Acer eSettings -->
+            <append key="input.keymap.data" type="strlist">e027:power2</append> <!-- Fn+F3 Power Management -->
+            <append key="input.keymap.data" type="strlist">e029:switchvideomode</append> <!-- Fn+F5 Display toggle -->
+            <append key="input.keymap.data" type="strlist">e033:f14</append> <!-- Euro sign -->
+            <append key="input.keymap.data" type="strlist">e034:f15</append> <!-- Dollar sign -->
+            <append key="input.keymap.data" type="strlist">e055:wlan</append> <!-- Wireless (toggle) on-to-off -->
+            <append key="input.keymap.data" type="strlist">e056:wlan</append> <!-- Wireless (toggle) off-to-on -->
+            <append key="input.keymap.data" type="strlist">e057:bluetooth</append> <!-- Bluetooth (toggle) on-to-off -->
+            <append key="input.keymap.data" type="strlist">e058:bluetooth</append> <!-- Bluetooth (toggle) off-to-on -->
+            <append key="input.keymap.data" type="strlist">e071:f22</append> <!-- Fn+F7 Touchpad toggle (off-to-on) -->
+            <append key="input.keymap.data" type="strlist">e072:f22</append> <!-- Fn+F7 Touchpad toggle (on-to-off) -->
+            <append key="input.keymap.data" type="strlist">e073:prog2</append> <!-- "P" programmable button -->
+            <append key="input.keymap.data" type="strlist">e074:prog1</append> <!-- "e" Acer eManager button -->
+            <append key="info.capabilities" type="strlist">input.keymap</append>
+          </match>
+        </match>
+      </match>
+    </match>
+  </device>
+</deviceinfo>
diff --git a/fdi/information/10freedesktop/Makefile.am b/fdi/information/10freedesktop/Makefile.am
index 40ef358..f8c4811 100644
--- a/fdi/information/10freedesktop/Makefile.am
+++ b/fdi/information/10freedesktop/Makefile.am
@@ -60,7 +60,8 @@ dist_fdi_DATA +=					\
 		30-keymap-hp.fdi			\
 		30-keymap-compaq.fdi			\
 		30-keymap-lenovo.fdi			\
-		30-keymap-dell.fdi
+		30-keymap-dell.fdi			\
+		30-keymap-acer.fdi
 endif
 
 check:


More information about the hal-commit mailing list