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>] [day] [month] [year] [list]
Message-ID: <20111013175649.GB4563@schottelius.org>
Date:	Thu, 13 Oct 2011 19:56:49 +0200
From:	Nico Schottelius <nico-linux-20111013@...ottelius.org>
To:	LKML <linux-kernel@...r.kernel.org>
Cc:	Henrik Rydberg <rydberg@...omail.se>,
	Nicolas Boichat <nicolas@...chat.ch>,
	Jesper Juhl <jesper.juhl@...il.com>,
	Robert Love <rml@...ell.com>,
	Nico Schottelius <nico-linux-20111013@...ottelius.org>
Subject: AppleSMC: 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ