lists.openwall.net   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  linux-cve-announce  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]
Message-Id: <201412242106.09959@pali>
Date:	Wed, 24 Dec 2014 21:06:09 +0100
From:	Pali Rohár <pali.rohar@...il.com>
To:	Bryan Wu <cooloney@...il.com>, Richard Purdie <rpurdie@...ys.net>,
	Darren Hart <dvhart@...radead.org>, linux-leds@...r.kernel.org,
	platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: LED: inform userspace about brightness change

Hello!

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
pali.rohar@...il.com

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ