* firstname.lastname@example.org <email@example.com> [2001-04-17 16:33+0200]
> I plan to add more features in the future, like allowing change of the
> brightness value safely while this daemon is running (currently, there may
> be race conditions if you want to run another program accessing the same
> part of the BIOS, like the small program that just sets the brightness).
> Automatic change when more power is used on DC (like when the fan is
This should be the job of apmd. apmd's job is to monitor APM events
and to do stuff when things happen. From apmd(8):
Most uses of this daemon will use the proxy command to
support power conservation activities. This command is
searched for by default in /etc/apmd_proxy and is invoked
with one or two arguments:
This presents a subset of the APM driver "power
change" events, specifically those where AC power
was added or removed. This will often modify the
system wide power policy; for example, so that IDE
hard drives aggressively enter standby mode when
only battery power is available.
You just need to call a program to change the brightness (a strip down
version of your program is attached) and to make the apmd proxy run
the appropriate script in /etc/apm/events.d (attached too).
Here's the catch though: it doesn't work on my Vaio. :-)
It seems that the apmd doesn't receive any event (except "Event
0xad03: Unknown") when the power status changes. I am not that
surprised, because the remaining time indicator is broken too (see
). Maybe it will work on others though...
* Yves Lafon <firstname.lastname@example.org> [2001-04-17 19:09+0200]
> > Here's the catch though: it doesn't work on my Vaio. :-)
> Hum, did they change some calls? It is supposed to work on PC1 and 505
> serie. It's time for you to give me a bios dump ;)
I was talking about the apmd solution, not the brightness setting
functions. I was hoping that it would work on other Vaios; apparently