mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
keymap: Unite laptop models needing common volume-key release quirk
Many laptop models need the same volume-key release quirk. Currently, two models have identical force-release-maps/ keymap files (dell-studio-1557 and fujitsu-amilo-si1848) and two more need to be added (Mitac and Coolbox QBook). This replaces the identical force-release-maps files with one 'common-volume-keys' file to make adding new models easier. There is no obvious DMI commonality between the models needing the quirk (i.e. they do not all share the same BIOS), so it will remain necessary to scan for each model separately in 95-keyboard-force-release.rules. https://launchpad.net/bugs/565459 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
This commit is contained in:
parent
bc913ce478
commit
db57bdda04
@ -540,8 +540,7 @@ dist_udevkeymap_DATA = \
|
||||
udevkeymapforcereldir = $(libexecdir)/keymaps/force-release
|
||||
dist_udevkeymapforcerel_DATA = \
|
||||
extras/keymap/force-release-maps/samsung-other \
|
||||
extras/keymap/force-release-maps/fujitsu-amilo-si1848 \
|
||||
extras/keymap/force-release-maps/dell-studio-1557
|
||||
extras/keymap/force-release-maps/common-volume-keys
|
||||
|
||||
extras/keymap/keys.txt: $(INCLUDE_PREFIX)/linux/input.h
|
||||
mkdir -p extras/keymap
|
||||
|
@ -21,8 +21,8 @@ ENV{DMI_VENDOR}="$attr{[dmi/id]sys_vendor}"
|
||||
|
||||
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"
|
||||
|
||||
ENV{DMI_VENDOR}=="Dell Inc.", ATTR{[dmi/id]product_name}=="Studio 1557|Studio 1558", RUN+="keyboard-force-release.sh $devpath dell-studio-1557"
|
||||
ENV{DMI_VENDOR}=="Dell Inc.", ATTR{[dmi/id]product_name}=="Studio 1557|Studio 1558", RUN+="keyboard-force-release.sh $devpath common-volume-keys"
|
||||
|
||||
ENV{DMI_VENDOR}=="FUJITSU SIEMENS", ATTR{[dmi/id]product_name}=="AMILO Si 1848+u", RUN+="keyboard-force-release.sh $devpath fujitsu-amilo-si1848"
|
||||
ENV{DMI_VENDOR}=="FUJITSU SIEMENS", ATTR{[dmi/id]product_name}=="AMILO Si 1848+u", RUN+="keyboard-force-release.sh $devpath common-volume-keys"
|
||||
|
||||
LABEL="force_release_end"
|
||||
|
3
extras/keymap/force-release-maps/common-volume-keys
Normal file
3
extras/keymap/force-release-maps/common-volume-keys
Normal file
@ -0,0 +1,3 @@
|
||||
0xa0 #mute
|
||||
0xae #volume down
|
||||
0xb0 #volume up
|
@ -1,3 +0,0 @@
|
||||
0xa0 #mute
|
||||
0xae #volume up
|
||||
0xb0 #volume down
|
@ -1,3 +0,0 @@
|
||||
0xa0 #mute
|
||||
0xae #volume up
|
||||
0xb0 #volume down
|
Loading…
Reference in New Issue
Block a user