On Sun, 2005-04-03 at 22:52 +0200, shrek-m@xxxxxx wrote: > <snip> > /*telinit 4*/ > I continue to ponder if we ought to have init level 4 in Fedora, meaning > "running on battery". Although I start and stop a bunch of services > going between 4 and 5, in reality most of them have no connection to the > battery status. For instance, I run ntpd and cups at level 5 but not 4, > because when I'm on battery, I'm away from home and naturally I do not > want either of them. This is, of course, bogus. However, there's one > service which may make the whole idea worthwhile: *crond*. > > This sucker runs a whole bunch of things which definitely depend on AC > power and not on network status: makewhatis, prelink, logrotate, and so > on. Switching it on and off makes perfect sense. If only I were able to > figure how to make a hysteresis. If I plug and unplug power quickly, > apmd fires, init flips on and off, gazillion freaking scripts run. Or, > more realistically, I unplug and replug when migrating between outlets. > So, there must be some sort of a delay. > </snip> > I'm not sure that tricks like runlevel 4 is the way to go. For the FC5 timeframe we'll probably integrate something like this project http://gnome-power.sourceforge.net/ which is under development. But there's some work left to get it right for the system-wide case. David