* AppleSMC: Support inotify on light sensor to adjust keyboard backlight
@ 2011-10-13 17:56 Nico Schottelius
0 siblings, 0 replies; only message in thread
From: Nico Schottelius @ 2011-10-13 17:56 UTC (permalink / raw)
To: LKML
Cc: Henrik Rydberg, Nicolas Boichat, Jesper Juhl, Robert Love,
Nico Schottelius
Hello LKML,
I've written a small utility to adjust the keyboard backlight
on the Mac Book Air 4,2 depending on the information on the light
sensor [0].
Now is my problem that
/sys/bus/platform/drivers/applesmc/applesmc.768/light
seems not to emit inotify events, if the content changes.
This feature would be great, so I do not need to do a
"while true; sleep X; done"-loop.
As I've no clue about inotify support in kernel, I'd be happy
if someone of you would implement this or else give me a pointer
on how to do so.
Secondly, having this feature for
/sys/bus/platform/drivers/applesmc/applesmc.768/leds/smc::kbd_backlight/brightness
as well, might be useful for other tools monitoring the keyboard
backlight brightness.
Cheers,
Nico
[0] http://git.schottelius.org/?p=kbsd;a=summary
git://git.schottelius.org/kbsd
--
PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-13 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-13 17:56 AppleSMC: Support inotify on light sensor to adjust keyboard backlight Nico Schottelius
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®