1 |
On Wednesday 27 September 2006 14:47, Devon Miller wrote: |
2 |
> Thanks for the tip on laptop-mode-tools, I hadn't see that. |
3 |
> |
4 |
> You may also want to check out sys-power/powermgmt-base. It adds |
5 |
> /usr/bin/on_ac_power which simply exits with 0 if laptop's on AC and with 1 |
6 |
> if it's on battery. |
7 |
> |
8 |
> This lets you make easy changes to the scripts in /etc/cron.* such as |
9 |
> wrapping the body of /etc/cron.daily/slocate in |
10 |
> |
11 |
> if /usr/bin/on_c_power ; then |
12 |
> ... |
13 |
> fi |
14 |
|
15 |
Which is an alternative to my state file. However, this adds one more |
16 |
requirement but also would allow to make it independent of laptop-mode-tools. |
17 |
However, the state file would allow to make it more general than power |
18 |
management. |
19 |
|
20 |
Should this discussion be moved to some gentoo devel list or are their |
21 |
developers listening? |
22 |
|
23 |
Cheers, |
24 |
|
25 |
Fred |
26 |
-- |
27 |
gentoo-laptop@g.o mailing list |