chiark / gitweb /
keymap: Find alternate Lenovo module
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 7 Jul 2010 21:17:11 +0000 (23:17 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Wed, 7 Jul 2010 21:17:11 +0000 (23:17 +0200)
Newer Lenovos apparently have a lower case "extra buttons" module, cover this
as well.

Sent by Quentin Denis <quentin.denis@gmail.com> via private mail.

extras/keymap/findkeyboards

index acff534056bbad0501768c6ba8bb74b21113aa7e..5a22649ec9caf52411589c17ad0815e844935734 100755 (executable)
@@ -34,6 +34,8 @@ keyboard_devices() {
     # modules
     module=`udevadm trigger --verbose --dry-run --subsystem-match=input --attr-match=name='*Extra Buttons'`
     module="$module
+`udevadm trigger --verbose --dry-run --subsystem-match=input --attr-match=name='*extra buttons'`"
+    module="$module
 `udevadm trigger --verbose --dry-run --subsystem-match=input --attr-match=name='Sony Vaio Keys'`"
     for m in $module; do
        evdev=`ls -d $m/event* 2>/dev/null`