chiark / gitweb /
keymap: Add force-release quirk for Coolbox QBook 270-02
[elogind.git] / extras / keymap / 95-keyboard-force-release.rules
1 # Set model specific atkbd force_release quirk
2 #
3 # Several laptops have hotkeys which don't generate release events,
4 # which can cause problems with software key repeat.
5 # The atkbd driver has a quirk handler for generating synthetic
6 # release events, which can be configured via sysfs since 2.6.32.
7 # Simply add a file with a list of scancodes for your laptop model
8 # in /lib/udev/keymaps, and add a rule here.
9 # If the hotkeys also need a keymap assignment you can copy the
10 # scancodes from the keymap file, otherwise you can run
11 # /lib/udev/keymap -i /dev/input/eventX
12 # on a Linux vt to find out.
13
14 ACTION=="remove", GOTO="force_release_end"
15 SUBSYSTEM!="serio", GOTO="force_release_end"
16 KERNEL!="serio*", GOTO="force_release_end"
17 DRIVER!="atkbd", GOTO="force_release_end"
18
19 ENV{DMI_VENDOR}="$attr{[dmi/id]sys_vendor}"
20
21
22 ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="*N130*|*N140*|*SR70S/SR71S*|*Q210/P210*", RUN+="keyboard-force-release.sh $devpath samsung-other"
23
24 ENV{DMI_VENDOR}=="Dell Inc.", ATTR{[dmi/id]product_name}=="Studio 1557|Studio 1558", RUN+="keyboard-force-release.sh $devpath common-volume-keys"
25
26 ENV{DMI_VENDOR}=="FUJITSU SIEMENS", ATTR{[dmi/id]product_name}=="AMILO Si 1848+u", RUN+="keyboard-force-release.sh $devpath common-volume-keys"
27
28 ENV{DMI_VENDOR}=="FOXCONN", ATTR{[dmi/id]product_name}=="QBOOK", RUN+="keyboard-force-release.sh $devpath common-volume-keys"
29
30 LABEL="force_release_end"