[support-gang] XO brightness key operation

Chris Ball cjb at laptop.org
Mon Apr 9 19:01:28 EDT 2012


Hi,

On Mon, Apr 09 2012, Nicholas Doiron wrote:
> Is there a way to read the current value of the 1.75's ambient light sensor?
> It'd be neat if that could be displayed by an activity.

Yes, /sys/devices/platform/olpc-ols.0/level

You can read powerd's source on the XO; it uses a more complicated API
involving setting limits of high and low light to change the backlight.

- Chris.
-- 
Chris Ball   <cjb at laptop.org>   <http://printf.net/>
One Laptop Per Child



More information about the Devel mailing list