chiark / gitweb /
keymap: Add Sony VGN
authorMartin Pitt <martinpitt@gnome.org>
Wed, 15 Aug 2012 06:46:03 +0000 (08:46 +0200)
committerMartin Pitt <martinpitt@gnome.org>
Wed, 15 Aug 2012 06:46:03 +0000 (08:46 +0200)
https://launchpad.net/bugs/939868

keymaps/module-sony-vpc [new file with mode: 0644]
src/udev/keymap/95-keymap.rules

diff --git a/keymaps/module-sony-vpc b/keymaps/module-sony-vpc
new file mode 100644 (file)
index 0000000..681082c
--- /dev/null
@@ -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
index 2dae13b..f98f2b8 100644 (file)
@@ -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"
 
 
 #