← Back to team overview

kernel-packages team mailing list archive

[Bug 959106] Re: ASUS WMI driver does not emit brightness key events

 

** Changed in: linux (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/959106

Title:
  ASUS WMI driver does not emit brightness key events

Status in Gnome Settings Daemon:
  New
Status in “linux” package in Ubuntu:
  Fix Released

Bug description:
  For all ASUS machines, it will only notify the userspace app by udev event
  while the brightness value is changed, instead of keyevent.

  The procedure in the asus-wmi kernel module is as described below
  1. receive the keyevent from WMI
  2. if the brightness event is not handled by ACPI, then update the brightness
  value through WMI
  3. call backlight_force_update(), it will
    1. send a change notification on  the actual_brightness file (userspace can
  monitor it using inotify or related), and
    2. send a uevent which can be catched by udev or others (with SOURCE
  being an env variable containing the source of this change)

  The problem is that it won't report keyevent, so g-s-d won't show the
  brightness OSD. But it actually reports the event, uevent.

  It won't harm to monitor the uevent and read the brightness value from
  actual_brightness and shows the OSD, even if there is already a keyevent
  reported.
  Please consider to add this feature, thanks.

  The brightness uevent looks like this
  ==
  KERNEL[16407.000334] change  
  /devices/pci0000:00/0000:00:02.0/backlight/acpi_video0 (backlight)
  KERNEL[16407.000555] change  
  /devices/pci0000:00/0000:00:02.0/backlight/acpi_video0 (backlight)
  UDEV  [16407.000605] change  
  /devices/pci0000:00/0000:00:02.0/backlight/acpi_video0 (backlight)
  KERNEL[16407.000730] change  
  /devices/pci0000:00/0000:00:02.0/backlight/acpi_video0 (backlight)
  UDEV  [16407.000997] change  
  /devices/pci0000:00/0000:00:02.0/backlight/acpi_video0 (backlight)
  UDEV  [16407.001164] change  
  /devices/pci0000:00/0000:00:02.0/backlight/acpi_video0 (backlight)
  KERNEL[16407.002040] change  
  /devices/pci0000:00/0000:00:02.0/backlight/acpi_video0 (backlight)
  UDEV  [16407.002212] change  
  /devices/pci0000:00/0000:00:02.0/backlight/acpi_video0 (backlight)
  ==

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-settings-daemon/+bug/959106/+subscriptions