ambient light sensor for dell latitude

Matthew Garrett mjg59 at srcf.ucam.org
Sat Mar 14 09:56:34 PDT 2009


On Sat, Mar 14, 2009 at 05:52:09PM +0100, Nicolò Chieffo wrote:

> Though I don't have a really concrete case of use, I thought of this:
> totem could disable the ALS when playing movies, because lots of times
> you are in a dark room, but you need a higher brightness.

Totem has no way of knowing whether you'd want the als enabled or not, 
so you'd need to tell it - at which point you might as well just hit the 
key.

> I've got another question about the ALS, maybe you don't know the
> answer, because I don't think it is tided to HAL, but I will try: when
> I hit the un&down keys to change brightness I see that
> gnome-power-manager pops un an on-screen notification. This does not
> happen when I hit left& right (for ALS and keyboard backlit). Do you
> know what is needed to show notifications also for them?

Make sure the keys are mapped to a meaningful event, then catch them in 
a daemon and show something appropriate.

-- 
Matthew Garrett | mjg59 at srcf.ucam.org


More information about the hal mailing list