]> err.no Git - systemd/commitdiff
keymap: Add Samsung 90X3A
authorVaidas Jablonskis <jablonskis@gmail.com>
Wed, 21 Mar 2012 13:51:39 +0000 (14:51 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Wed, 21 Mar 2012 13:51:39 +0000 (14:51 +0100)
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Makefile.am
src/keymap/95-keyboard-force-release.rules
src/keymap/95-keymap.rules
src/keymap/force-release-maps/samsung-90x3a [new file with mode: 0644]
src/keymap/keymaps/samsung-90x3a [new file with mode: 0644]

index 3a5f3b5f76dc821a6df42e94f9f7eec94360082e..fa8060b55d22e9d53654a11a36648618e889af90 100644 (file)
@@ -577,6 +577,7 @@ dist_udevkeymap_DATA = \
        src/keymap/keymaps/onkyo \
        src/keymap/keymaps/oqo-model2 \
        src/keymap/keymaps/samsung-other \
+       src/keymap/keymaps/samsung-90x3a \
        src/keymap/keymaps/samsung-sq1us \
        src/keymap/keymaps/samsung-sx20s \
        src/keymap/keymaps/toshiba-satellite_a100 \
@@ -589,6 +590,7 @@ dist_udevkeymapforcerel_DATA = \
        src/keymap/force-release-maps/dell-touchpad \
        src/keymap/force-release-maps/hp-other \
        src/keymap/force-release-maps/samsung-other \
+       src/keymap/force-release-maps/samsung-90x3a \
        src/keymap/force-release-maps/common-volume-keys
 
 src/keymap/keys.txt: $(INCLUDE_PREFIX)/linux/input.h
index 79a1bc1cc41f66666a269e2b67383c1b17ed29e6..03d56e8aa434fcca6dc412c440eedb904d63204f 100644 (file)
@@ -19,6 +19,7 @@ DRIVER!="atkbd", GOTO="force_release_end"
 ENV{DMI_VENDOR}="$attr{[dmi/id]sys_vendor}"
 
 ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", RUN+="keyboard-force-release.sh $devpath samsung-other"
+ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="*90X3A*", RUN+="keyboard-force-release.sh $devpath samsung-90x3a"
 
 ENV{DMI_VENDOR}=="Dell Inc.", ATTR{[dmi/id]product_name}=="Studio 1557|Studio 1558", RUN+="keyboard-force-release.sh $devpath common-volume-keys"
 ENV{DMI_VENDOR}=="Dell Inc.", ATTR{[dmi/id]product_name}=="Latitude E*|Precision M*", RUN+="keyboard-force-release.sh $devpath dell-touchpad"
index 26de03dcc7a279e2d0eb6c275edfbf81726842ad..bbf311a17a289cc04c43b2cb2fa9c740e25d374d 100644 (file)
@@ -143,6 +143,7 @@ ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", RUN+="keymap $name samsung-oth
 ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="*SX20S*", RUN+="keymap $name samsung-sx20s"
 ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="SQ1US", RUN+="keymap $name samsung-sq1us"
 ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="*700Z*", RUN+="keymap $name 0xBA ejectcd 0x96 keyboardbrightnessup 0x97 keyboardbrightnessdown"
+ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="*90X3A*", RUN+="keymap $name samsung-90x3a"
 
 ENV{DMI_VENDOR}=="TOSHIBA", ATTR{[dmi/id]product_name}=="SATELLITE A100", RUN+="keymap $name toshiba-satellite_a100"
 ENV{DMI_VENDOR}=="TOSHIBA", ATTR{[dmi/id]product_name}=="Satellite A110", RUN+="keymap $name toshiba-satellite_a110"
diff --git a/src/keymap/force-release-maps/samsung-90x3a b/src/keymap/force-release-maps/samsung-90x3a
new file mode 100644 (file)
index 0000000..65707ef
--- /dev/null
@@ -0,0 +1,6 @@
+# list of scancodes (hex or decimal), optional comment
+0xCE # Fn+F8 keyboard backlit up
+0x8D # Fn+F7 keyboard backlit down
+0x97 # Fn+F12 wifi on/off
+0x96 # Fn+F1 performance mode (?)
+0xD5 # Fn+F6 battery life extender
diff --git a/src/keymap/keymaps/samsung-90x3a b/src/keymap/keymaps/samsung-90x3a
new file mode 100644 (file)
index 0000000..8b65eb6
--- /dev/null
@@ -0,0 +1,5 @@
+0x96 kbdillumup         # Fn+F8 keyboard backlit up
+0x97 kbdillumdown       # Fn+F7 keyboard backlit down
+0xD5 wlan               # Fn+F12 wifi on/off
+0xCE prog1              # Fn+F1 performance mode
+0x8D prog2              # Fn+F6 battery life extender