From: "Pali Rohár" <pali.rohar@gmail.com>
To: Bryan Wu <cooloney@gmail.com>, Richard Purdie <rpurdie@rpsys.net>,
Darren Hart <dvhart@infradead.org>,
linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: LED: inform userspace about brightness change
Date: Wed, 24 Dec 2014 21:06:09 +0100 [thread overview]
Message-ID: <201412242106.09959@pali> (raw)
[-- Attachment #1: Type: Text/Plain, Size: 811 bytes --]
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@gmail.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next reply other threads:[~2014-12-24 20:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-24 20:06 Pali Rohár [this message]
2015-01-06 17:55 ` LED: inform userspace about brightness change Bryan Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201412242106.09959@pali \
--to=pali.rohar@gmail.com \
--cc=cooloney@gmail.com \
--cc=dvhart@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox