<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sun, Apr 29, 2018 at 6:49 PM Sam Morris <<a href="mailto:sam@robots.org.uk">sam@robots.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Pressing the brightness keys on my Dell Vostro 1520 results in events<br>
coming from both the atkbd and the acpi-video input devices, resulting<br>
in double-stepped brightness changes. Based on <br>
I'm trying to arrange for the brightness key events for the atkbd<br>
device in my laptop (Dell Vostro 1520) to be ignored, as the acpi-video <br>
input device also generates them, resulting in double-stepped<br>
brightness changes. Based on the output of libinput-debug-events:<br>
<br>
-event0   KEYBOARD_KEY      +5.62s      KEY_BRIGHTNESSDOWN (224) pressed<br>
 event0   KEYBOARD_KEY      +5.62s      KEY_BRIGHTNESSDOWN (224) released<br>
-event0   KEYBOARD_KEY      +9.61s      KEY_BRIGHTNESSUP (225) pressed<br>
 event0   KEYBOARD_KEY      +9.61s      KEY_BRIGHTNESSUP (225) released<br>
<br>
I've got the following:<br>
<br>
# Dell Vostro 1520<br>
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnDellInc.:pnVostro1520:pvr*<br>
 KEYBOARD_KEY_e0=unknown # Brightness Down, also emitted by acpi-video, ignore<br>
 KEYBOARD_KEY_e1=unknown # Brightness Up, also emitted by acpi-video, ignore<br>
<br>
... which has applied OK:<br>
<br>
$ /sbin/udevadm info --path=/sys/class/input/event0 | grep KEYBOARD_KEY_e[01]<br>
E: KEYBOARD_KEY_e0=unknown<br>
E: KEYBOARD_KEY_e1=unknown<br></blockquote><div><br></div><div>Wait, I thought the mappings are "scan code → evdev code"? 224/225 as shown by <span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">libinput-debug-events</span> would be the evdev codes (i.e. the mapping <i>result</i>), not scan codes.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>