[Wayland-bugs] [Bug 106057] Unwanted brightness events from ACPI video device on Dell Vostro 1520

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Apr 15 18:52:05 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106057

            Bug ID: 106057
           Summary: Unwanted brightness events from ACPI video device on
                    Dell Vostro 1520
           Product: Wayland
           Version: unspecified
          Hardware: All
                OS: Linux (All)
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: libinput
          Assignee: wayland-bugs at lists.freedesktop.org
          Reporter: sam at robots.org.uk

On the Dell Vostro 1520, each event from the brightness up/down keys triggers
an event from two different keyboards:

# libinput-debug-events
WARNING: This compatibility wrapper will be removed in the future. Please run
'libinput debug-events' instead
-event4   DEVICE_ADDED     Power Button                      seat0 default
group1  cap:k
-event5   DEVICE_ADDED     Video Bus                         seat0 default
group2  cap:k
-event2   DEVICE_ADDED     Power Button                      seat0 default
group3  cap:k
-event1   DEVICE_ADDED     Lid Switch                        seat0 default
group4  cap:S
-event3   DEVICE_ADDED     Sleep Button                      seat0 default
group5  cap:k
-event9   DEVICE_ADDED     HDA Intel Mic                     seat0 default
group6  cap:
-event10  DEVICE_ADDED     HDA Intel Front Headphone         seat0 default
group6  cap:
-event0   DEVICE_ADDED     AT Translated Set 2 keyboard      seat0 default
group7  cap:k
-event6   DEVICE_ADDED     AlpsPS/2 ALPS GlidePoint          seat0 default
group8  cap:p  size 73x51mm tap(dl off) left scroll-nat scroll-edge dwt-on
-event0   KEYBOARD_KEY      +5.62s      KEY_BRIGHTNESSDOWN (224) pressed
 event0   KEYBOARD_KEY      +5.62s      KEY_BRIGHTNESSDOWN (224) released
-event5   KEYBOARD_KEY      +5.63s      KEY_BRIGHTNESSDOWN (224) pressed
 event5   KEYBOARD_KEY      +5.63s      KEY_BRIGHTNESSDOWN (224) released
 event5   KEYBOARD_KEY      +6.43s      KEY_BRIGHTNESSDOWN (224) pressed
 event5   KEYBOARD_KEY      +6.43s      KEY_BRIGHTNESSDOWN (224) released
-event0   KEYBOARD_KEY      +6.43s      KEY_BRIGHTNESSDOWN (224) pressed
 event0   KEYBOARD_KEY      +6.43s      KEY_BRIGHTNESSDOWN (224) released
-event5   KEYBOARD_KEY      +7.11s      KEY_BRIGHTNESSDOWN (224) pressed
 event5   KEYBOARD_KEY      +7.11s      KEY_BRIGHTNESSDOWN (224) released
-event0   KEYBOARD_KEY      +7.11s      KEY_BRIGHTNESSDOWN (224) pressed
 event0   KEYBOARD_KEY      +7.11s      KEY_BRIGHTNESSDOWN (224) released
 event0   KEYBOARD_KEY      +8.38s      KEY_BRIGHTNESSUP (225) pressed
 event0   KEYBOARD_KEY      +8.38s      KEY_BRIGHTNESSUP (225) released
-event5   KEYBOARD_KEY      +8.38s      KEY_BRIGHTNESSUP (225) pressed
 event5   KEYBOARD_KEY      +8.38s      KEY_BRIGHTNESSUP (225) released
-event0   KEYBOARD_KEY      +9.01s      KEY_BRIGHTNESSUP (225) pressed
 event0   KEYBOARD_KEY      +9.01s      KEY_BRIGHTNESSUP (225) released
-event5   KEYBOARD_KEY      +9.01s      KEY_BRIGHTNESSUP (225) pressed
 event5   KEYBOARD_KEY      +9.01s      KEY_BRIGHTNESSUP (225) released
-event0   KEYBOARD_KEY      +9.61s      KEY_BRIGHTNESSUP (225) pressed
 event0   KEYBOARD_KEY      +9.61s      KEY_BRIGHTNESSUP (225) released
-event5   KEYBOARD_KEY      +9.61s      KEY_BRIGHTNESSUP (225) pressed
 event5   KEYBOARD_KEY      +9.61s      KEY_BRIGHTNESSUP (225) released

The following hwdb entry tells libinput to ignore events from the unwanted
device:

libinput:name:Video Bus:dmi:*svnDellInc.:pnVostro1520:*
  LIBINPUT_IGNORE_DEVICE=1

According to evtest, this device is capable of generating some other events:

# evtest /dev/input/event5
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x6 version 0x0
Input device name: "Video Bus"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 224 (KEY_BRIGHTNESSDOWN)
    Event code 225 (KEY_BRIGHTNESSUP)
    Event code 227 (KEY_SWITCHVIDEOMODE)
    Event code 241 (KEY_VIDEO_NEXT)
    Event code 242 (KEY_VIDEO_PREV)
    Event code 243 (KEY_BRIGHTNESS_CYCLE)
    Event code 244 (KEY_BRIGHTNESS_ZERO)
    Event code 245 (KEY_DISPLAY_OFF)

Fn+F8 generates KEY_SWITCHVIDEOMODE on the normal keyboard device, so this too
is redundant. The other events do not correspond to any key combination that I
know of, so it's probably safe to ignore this device entirely.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20180415/2be22ea0/attachment.html>


More information about the wayland-bugs mailing list