[systemd-commits] keymaps/module-sony-vpc src/udev

Martin Pitt martin at kemper.freedesktop.org
Tue Aug 14 23:46:35 PDT 2012


 keymaps/module-sony-vpc         |    4 ++++
 src/udev/keymap/95-keymap.rules |    3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 405053fafa88022c68e7adf04c91a56c1cde7dd8
Author: Martin Pitt <martinpitt at gnome.org>
Date:   Wed Aug 15 08:46:03 2012 +0200

    keymap: Add Sony VGN
    
    https://launchpad.net/bugs/939868

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



More information about the systemd-commits mailing list