lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 24 Dec 2014 21:06:09 +0100
From:	Pali Rohár <>
To:	Bryan Wu <>, Richard Purdie <>,
	Darren Hart <>,,,
Subject: LED: inform userspace about brightness change


What is preferred way from kernel driver to inform userspace 
about LED device brightness change? In /sys/class/leds/<device>/ 
is file brightness which can be used to read current brightness 
or set write new value. But sometimes also firmware (or device) 
can change value on its own and thus userspace software which 
provides slider for setting brightness will be incorrect.

For example on Dell laptops there is driver which support setting 
and reading keyboard backlight (via leds kernel interface). But 
firmware/BIOS can change brightness (when something happen) and 
it can inform running system about this change via ACPI/WMI event 
interface. But how to use kernel led interface to inform userpace 
about this change? It is possible?

Pali Rohár

Download attachment "signature.asc " of type "application/pgp-signature" (199 bytes)

Powered by blists - more mailing lists