lkml.org 
[lkml]   [2011]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectAppleSMC: Support inotify on light sensor to adjust keyboard backlight
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


\
 
 \ /
  Last update: 2011-10-13 20:07    [W:0.057 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site