Re: [iPAQ] backlight ambient sensor

From: Mark G. Saye <markgsaye.a.t.yahoo.com>
Date: Sun Sep 09 2001 - 22:51:29 EDT

Devin Butterfield wrote:
>
> AFAIK, there isn't any driver for this device. Once the driver is
> written, you could easily write a daemon to read /dev/<name of device>
> and then do the ioctl() to update the frontlight brightness.
>
> I could probably write the daemon if someone else wants to write the
> driver (I don't have enough time). ;-)

Thanks for the offer, Devin. I would love to be _able_ to write the
driver, but the truth is I know very little C, let alone at a driver
level (I only know Tcl). Maybe it's time I learned! If someone could
point me in the right direction, examples etc, I could see if I can get
anywhere ...

Do you think it would be something relatively simple like the bl.c
program?

Presumably, a gui would just start and stop the bld? (bl daemon) when
you want an 'automatic' brightness setting? I'm already using a
/etc/bl.conf file (containing '1 1 255' or whatever my setting is) -
maybe the daemon would run permanently and would check if the file has
been updated (i.e. so a non-root user could turn auto-brightness on/off)

> Mark G. Saye wrote:
>
> >Is there some way to access the ambient light sensor to automatically
> >set the backlight brightness with the 'bl' program?
> >
> >Presumably there would need to be some sort of daemon running to update
> >the brightness?

-- 
Mark G. Saye
markgsaye@yahoo.com
Received on Sun Sep 9 18:54:49 2001

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:10 EDT