diff options
author | Martin Dengler <martin@martindengler.com> | 2009-08-11 00:54:56 (GMT) |
---|---|---|
committer | Martin Dengler <martin@martindengler.com> | 2009-08-11 00:54:56 (GMT) |
commit | b86f3ddb1a9651d437df8fc0588f66bc29597fdf (patch) | |
tree | b45699d3a01dcdd096294d177a5e91f2a0309243 | |
parent | 1621fd8401bc2ef944b3d358752e47e5835a2152 (diff) |
use custom powerd timeouts (keep sleeping disabled, for now)
-rw-r--r-- | soas-xo.ks | 73 |
1 files changed, 72 insertions, 1 deletions
@@ -376,7 +376,78 @@ for service in auditd cpuspeed cups dnsmasq exim firstboot iptables ip6tables ir /sbin/chkconfig --level 2345 $service off done -mv /etc/event.d/powerd /root +mv /etc/powerd/powerd.conf /etc/powerd/standard.conf +ln -s soas.conf /etc/powerd/powerd.conf +cat > /etc/powerd/soas.conf <<FOE +# +# Config file for powerd +# +# config_BATTERY_TIME_{DIM,SLEEP,BLANK} +# config_EBOOK_TIME_{DIM,SLEEP,BLANK} +# config_PLUGGED_TIME_{DIM,SLEEP,BLANK} +# These are the time in seconds (measured from last user +# activity) until a) the laptop screen dims, b) the laptop +# sleeps, and c) the laptop screen blanks. All three can be +# scheduled in any order. +# +# config_MAX_SLEEP_BEFORE_SHUTDOWN +# Once the laptop sleeps and the screen is blank, it will shut +# down after this amount of time. +# +# config_ALLOW_SHUTDOWN_WHEN_PLUGGED +# If this is disabled, the laptop will never automatically shut +# down when using external power. (It may still sleep, however.) +# +# config_IDLE_DIM_LEVEL +# Brightness level when the screen is automatically dimmed. Set +# to 15 to prevent dimming. Set to 0 to allow the backlight to +# go off completely. +# +# config_CONFIRM_SECONDS +# How long the shutdown/suspend confirmation splash screen stays +# visible before the laptop automatically suspends. +# +# config_WAKE_ON_WLAN +# Allows wireless to continue operating when the laptop is +# sleeping. Note that the wireless configuration may allow +# shutting down the wireless entirely (e.g., with +# "echo 0 >/sys/power/wlan-enabled"), which may override this +# setting. +# +# config_CPU_IDLE_LIMIT +# If the cpu is idle less than this percentage, then the laptop +# won't suspend. +# +# config_SLEEP_WHEN_LID_CLOSED +# This is normally left enabled, and causes the laptop to go to sleep +# when closed. If disabled, it will stay awake when the lid is +# closed, and will only sleep because of other timeouts. +# +config_BATTERY_TIME_DIM="180" +#FIXME: something's broken with sleeping +#config_BATTERY_TIME_SLEEP="360" +config_BATTERY_TIME_SLEEP="99999" +config_BATTERY_TIME_BLANK="99999" +config_EBOOK_TIME_DIM="99999" +#FIXME: something's broken with sleeping +#config_EBOOK_TIME_SLEEP="20" +config_EBOOK_TIME_SLEEP="99999" +config_EBOOK_TIME_BLANK="99999" +config_PLUGGED_TIME_DIM="99999" +config_PLUGGED_TIME_SLEEP="99999" +config_PLUGGED_TIME_BLANK="99999" +config_IDLE_DIM_LEVEL="0" +config_MESH_DURING_SUSPEND="no" +config_MAX_SLEEP_BEFORE_SHUTDOWN="99999" +config_ALLOW_SHUTDOWN_WHEN_PLUGGED="no" +config_CONFIRM_SECONDS="7" +config_CPU_IDLE_LIMIT="10" +#FIXME: something's broken with sleeping +#config_SLEEP_WHEN_LID_CLOSED="yes" +config_SLEEP_WHEN_LID_CLOSED="no" +FOE + + for service in avahi-daemon sshd ; do /sbin/chkconfig --level 2345 $service on |