summaryrefslogtreecommitdiff
path: root/source/l/hal-info/patches/quirk-LG_X110-keyboard.patch
blob: 330b86999534dee47754d818b240ee8e9c815dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
commit 1a3c7c28d028c0952404d6d45b58138849c09ff1
Author: Ozan Çağlayan <ozan@pardus.org.tr>
Date:   Wed Dec 23 10:13:26 2009 +0200

    Add keymap quirks for LG X110
    
    The patch adds keyboard quirks for LG X110 (An MSI Wind clone) which has
    the following DMI informations:
    
    system.hardware.primary_video.product = 10158  (0x27ae)  (int)
    system.hardware.primary_video.vendor = 32902  (0x8086)  (int)
    system.hardware.product = 'X110-L.A7M3F3'  (string)
    system.hardware.serial = '812MSVJ025279'  (string)
    system.hardware.uuid = '00000000-0000-0000-0000-002185569235' (string)
    system.hardware.vendor = 'LG Electronics'  (string)
    system.hardware.version = 'Ver.001'  (string)
    
    Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>

diff --git a/fdi/information/10freedesktop/30-keymap-misc.fdi b/fdi/information/10freedesktop/30-keymap-misc.fdi
index c4e527e..39d71ed 100644
--- a/fdi/information/10freedesktop/30-keymap-misc.fdi
+++ b/fdi/information/10freedesktop/30-keymap-misc.fdi
@@ -103,6 +103,22 @@
         </match>
       </match>
 
+      <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" prefix="LG">
+        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains="X110">
+          <append key="input.keymap.data" type="strlist">e020:mute</append> <!-- Fn-F9   Sound On/Off -->
+          <append key="input.keymap.data" type="strlist">e02e:volumedown</append> <!-- Fn-Left   Volume down -->
+          <append key="input.keymap.data" type="strlist">e02f:search</append> <!-- Fn-F3   Search -->
+          <append key="input.keymap.data" type="strlist">e030:volumeup</append> <!-- Fn-Right   Volume up -->
+          <append key="input.keymap.data" type="strlist">e031:battery</append> <!-- Fn-F10   Info -->
+          <append key="input.keymap.data" type="strlist">e033:suspend</append> <!-- Fn-F12   Hibernate -->
+          <append key="input.keymap.data" type="strlist">e05f:sleep</append> <!-- Fn-F4   Sleep -->
+          <append key="input.keymap.data" type="strlist">e064:f22</append> <!-- Fn-F5   Touchpad disable -->
+          <append key="input.keymap.data" type="strlist">e076:wlan</append> <!-- Fn-F6   satellite dish1 -->
+          <append key="input.keymap.data" type="strlist">e077:brightnessdown</append> <!-- Fn-Down   Brightness down -->
+          <append key="input.keymap.data" type="strlist">e078:brightnessup</append> <!-- Fn-Up   Brightness up -->
+        </match>
+      </match>
+
       <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" string="MEDIONNB">
         <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" prefix="A555">
           <append key="input.keymap.data" type="strlist">63:www</append> <!-- N button -->