summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2012-08-15 08:46:03 +0200
committerMartin Pitt <martinpitt@gnome.org>2012-08-15 08:46:03 +0200
commit405053fafa88022c68e7adf04c91a56c1cde7dd8 (patch)
tree3f06c16ad260e41a9055528ba8bd3ad17d7939ec
parentd046b20b11e78f4f52267850097e20f8221a6279 (diff)
keymap: Add Sony VGN
https://launchpad.net/bugs/939868
-rw-r--r--keymaps/module-sony-vpc4
-rw-r--r--src/udev/keymap/95-keymap.rules3
2 files changed, 6 insertions, 1 deletions
diff --git a/keymaps/module-sony-vpc b/keymaps/module-sony-vpc
new file mode 100644
index 0000000000..681082c59e
--- /dev/null
+++ b/keymaps/module-sony-vpc
@@ -0,0 +1,4 @@
+# 0x05 touchpad_toggle # fn_f1 -> KEY_TOUCHPAD_TOGGLE
+0x05 f21 # fn_f1 -> KEY_F21 (The actual touchpad toggle)
+0x0d zoomout # fn_f9
+0x0e zoomin # fn_f10
diff --git a/src/udev/keymap/95-keymap.rules b/src/udev/keymap/95-keymap.rules
index 2dae13bcc1..f98f2b849e 100644
--- a/src/udev/keymap/95-keymap.rules
+++ b/src/udev/keymap/95-keymap.rules
@@ -59,8 +59,9 @@ ENV{DMI_VENDOR}=="MICRO-STAR*|Micro-Star*", KERNELS=="input*", ATTRS{name}=="MSI
# Older Vaios have some different keys
ENV{DMI_VENDOR}=="Sony*", ATTR{[dmi/id]product_name}=="*PCG-C1*|*PCG-K25*|*PCG-F1*|*PCG-F2*|*PCG-F3*|*PCG-F4*|*PCG-F5*|*PCG-F6*|*PCG-FX*|*PCG-FRV*|*PCG-GR*|*PCG-TR*|*PCG-NV*|*PCG-Z*|*VGN-S360*", ATTRS{name}=="Sony Vaio Keys", RUN+="keymap $name module-sony-old"
-# Some Sony VGN models have yet another one
+# Some Sony VGN/VPC models have yet another one
ENV{DMI_VENDOR}=="Sony*", ATTR{[dmi/id]product_name}=="VGN-AR71*|VGN-FW*|VGN-Z21*", ATTRS{name}=="Sony Vaio Keys", RUN+="keymap $name module-sony-vgn"
+ENV{DMI_VENDOR}=="Sony*", ATTR{[dmi/id]product_name}=="VPC*", ATTRS{name}=="Sony Vaio Keys", RUN+="keymap $name /etc/udev/keymaps/module-sony-vpc"
#