linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add led_notify_brightness_change led-core function and use in dell-wmi driver
@ 2016-10-19 13:33 Hans de Goede
  2016-10-19 13:33 ` [PATCH 1/2] leds: core: Add led_notify_brightness_change helper function Hans de Goede
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Hans de Goede @ 2016-10-19 13:33 UTC (permalink / raw)
  To: Darren Hart, Matthew Garrett, Pali Rohár, Richard Purdie,
	Jacek Anaszewski
  Cc: platform-driver-x86, linux-leds

Hi All,

I was annoyed by the kbd-backlight on my Dell XPS 9550 not working well
together with the GNOME3 ui for kbd-backlight control.

Part of the problem here is that the hotkey on the laptop's keyboard to
control the kbd backlight is fully handled in firmware. So dell-wmi does
not send any key-presses for it. This is the right thing todo since
sending such key-presses will result in userspace adjusting the backlight,
while this has already been done by the firmware.

OTOH userspace should really still get some sort of event when this happens,
just like e.g. on some systems with hardwired volume-up/down buttons the
alsa mixer interface will send events to notify userspace about the changed
volume.

Checking other sysfs drivers, there is a standard way to notify userspace
about changes to a sysfs attributes underlying value. This patch-set adds
a led_notify_brightness_change led-core function using this standard
mechanism and makes the dell-wmi driver call led_notify_brightness_change
on the kbd_backlight led_classdev when the firmware has changed the
brightness. Together with some userspace changes / fixes this leads to
a much nicer / more integrated experience wrt kbd backlight control.

Currently this patch-set introduces only 1 user (dell-wmi) of the new
led_notify_brightness_change function, but I plan to also fix the same
issue on thinkpads (soon), and also one some HP models (when I can borrow
one, hopefully also soon).

Regards,

Hans

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-10-20 20:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-19 13:33 [PATCH 0/2] Add led_notify_brightness_change led-core function and use in dell-wmi driver Hans de Goede
2016-10-19 13:33 ` [PATCH 1/2] leds: core: Add led_notify_brightness_change helper function Hans de Goede
2016-10-19 13:59   ` Pali Rohár
2016-10-19 16:07     ` Hans de Goede
2016-10-20  6:42       ` Jacek Anaszewski
2016-10-20  8:41         ` Hans de Goede
2016-10-20  9:15           ` Jacek Anaszewski
2016-10-20 10:02             ` Hans de Goede
2016-10-20 20:31               ` Jacek Anaszewski
2016-10-20  7:40       ` Pali Rohár
2016-10-19 13:33 ` [PATCH 2/2] platform: x86: dell-*: Call led_notify_brightness_change on kbd brightness change Hans de Goede
2016-10-19 14:06   ` Pali Rohár
2016-10-19 16:09     ` Hans de Goede
2016-10-20  7:48       ` Pali Rohár
2016-10-20  8:42         ` Hans de Goede
2016-10-19 14:10 ` [PATCH 0/2] Add led_notify_brightness_change led-core function and use in dell-wmi driver Pali Rohár

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).