N900 light meter

(Software: Removed MacHow spam)
(Software)
Line 12: Line 12:
  cat /sys/class/i2c-adapter/i2c-2/2-0029/lux
  cat /sys/class/i2c-adapter/i2c-2/2-0029/lux
  21
  21
 +
 +
Under MeeGo it's available as
 +
<pre>
 +
cat /sys/class/i2c-adapter/i2c-2/2-0029/device0/illuminance0_input
 +
</pre>
Third party applications that use this sensor include [http://www.tuug.fi/~toni/serendipity/index.php?/archives/14-Luxus-Light-Meter-v0.2-for-N900,-as-a-real-homescreen-widget.html Luxus Light Meter] and [http://norayr.arnet.am/weblog/?p=1710 photographic light meter].
Third party applications that use this sensor include [http://www.tuug.fi/~toni/serendipity/index.php?/archives/14-Luxus-Light-Meter-v0.2-for-N900,-as-a-real-homescreen-widget.html Luxus Light Meter] and [http://norayr.arnet.am/weblog/?p=1710 photographic light meter].

Revision as of 13:58, 18 February 2011

The light meter lets the software on the N900 sense ambient light levels.

Hardware

The device is a TAOS TSL2563.

Software

It is handled by the kernel module tsl2563.

The kernel driver exposes the lux value in the sysfs file

cat /sys/class/i2c-adapter/i2c-2/2-0029/lux
21

Under MeeGo it's available as

cat /sys/class/i2c-adapter/i2c-2/2-0029/device0/illuminance0_input

Third party applications that use this sensor include Luxus Light Meter and photographic light meter.

The sensor is also used to modulate the backlight in response to ambient light.