From: Nico Schottelius <nico-linux-20111013@schottelius.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Henrik Rydberg <rydberg@euromail.se>,
Nicolas Boichat <nicolas@boichat.ch>,
Jesper Juhl <jesper.juhl@gmail.com>, Robert Love <rml@novell.com>,
Nico Schottelius <nico-linux-20111013@schottelius.org>
Subject: AppleSMC: Support inotify on light sensor to adjust keyboard backlight
Date: Thu, 13 Oct 2011 19:56:49 +0200 [thread overview]
Message-ID: <20111013175649.GB4563@schottelius.org> (raw)
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
reply other threads:[~2011-10-13 18:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20111013175649.GB4563@schottelius.org \
--to=nico-linux-20111013@schottelius.org \
--cc=jesper.juhl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas@boichat.ch \
--cc=rml@novell.com \
--cc=rydberg@euromail.se \
/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
all inboxes | Powered by JetHome®