Lines Matching +full:timeout +full:- +full:minutes

2 How to conserve battery power using laptop-mode
12 ------------
31 ------------
41 located in /etc/default/laptop-mode on Debian-based systems, or in
42 /etc/sysconfig/laptop-mode on other systems.
52 -------
55 minutes of work. If you cannot afford this, don't use it! The supplied ACPI
64 * If you mount some of your ext3/reiserfs filesystems with the -n option, then
67 wrong options -- or it will fail because it cannot write to /etc/mtab.
80 -----------
95 /proc/sys/vm to about 10 minutes (by default), which means that pages that are
98 is not done anymore. Combined with a higher commit value (also 10 minutes) for
101 occurs only once every 10 minutes, or whenever the disk is forced to spin up by
106 -------------
108 The laptop mode configuration file is located in /etc/default/laptop-mode on
109 Debian-based systems, or in /etc/sysconfig/laptop-mode on other systems. It
120 Automatically disable laptop mode if the remaining number of minutes of
121 battery power is less than this value. Default is 10 minutes.
125 The idle timeout that should be set on your hard drive when laptop mode
129 "-S" option.
133 The devices for which the spindown timeout should be adjusted by laptop mode.
138 Disk readahead, in 512-byte sectors, while laptop mode is active. A large
178 See Documentation/admin-guide/pm/cpufreq.rst for more info. Disabled by default.)
188 -------------
190 * Bartek Kania reports getting up to 50 minutes of extra battery life (on top
203 * In syslog.conf, you can prefix entries with a dash `-` to omit syncing the
204 file after every logging. When you're using laptop-mode and your disk doesn't
208 (http://noflushd.sourceforge.net/), it seems that noflushd prevents laptop-mode
219 -------------------------------------------------------
224 It should be installed as /etc/default/laptop-mode on Debian, and as
225 /etc/sysconfig/laptop-mode on Red Hat, SUSE, Mandrake, and other work-alikes.
234 # Automatically disable laptop mode when the number of minutes of battery
238 # Read-ahead, in 512-byte sectors. You can spin down the disk while playing MP3/OGG
282 # See Documentation/admin-guide/pm/cpufreq.rst for more info
292 # Idle timeout for your hard drive (man hdparm for valid values, -S option)
297 # The drives for which to adjust the idle timeout. Separate them by a space,
301 # Set the spindown timeout on a hard drive?
306 --------------
332 if [ -f /etc/default/laptop-mode ] ; then
334 . /etc/default/laptop-mode
335 elif [ -f /etc/sysconfig/laptop-mode ] ; then
337 . /etc/sysconfig/laptop-mode
346 MAX_AGE=${MAX_AGE:-'600'}
348 # Read-ahead, in kilobytes
349 READAHEAD=${READAHEAD:-'4096'}
352 DO_REMOUNTS=${DO_REMOUNTS:-'1'}
355 DO_REMOUNT_NOATIME=${DO_REMOUNT_NOATIME:-'1'}
357 # Shall we adjust the idle timeout on a hard drive?
358 DO_HD=${DO_HD:-'1'}
360 # Adjust idle timeout on which hard drive?
361 HD="${HD:-'/dev/hda'}"
363 # spindown time for HD (hdparm -S values)
364 AC_HD=${AC_HD:-'244'}
365 BATT_HD=${BATT_HD:-'4'}
369 DIRTY_RATIO=${DIRTY_RATIO:-'40'}
372 # See Documentation/admin-guide/pm/cpufreq.rst for more info
373 DO_CPU=${CPU_MANAGE:-'0'}
374 CPU_MAXFREQ=${CPU_MAXFREQ:-'slowest'}
382 DIRTY_BACKGROUND_RATIO=${DIRTY_BACKGROUND_RATIO:-'5'}
385 DEF_AGE=${DEF_AGE:-'30'}
386 DEF_UPDATE=${DEF_UPDATE:-'5'}
387 DEF_DIRTY_BACKGROUND_RATIO=${DEF_DIRTY_BACKGROUND_RATIO:-'10'}
388 DEF_DIRTY_RATIO=${DEF_DIRTY_RATIO:-'40'}
389 DEF_XFS_AGE_BUFFER=${DEF_XFS_AGE_BUFFER:-'15'}
390 DEF_XFS_SYNC_INTERVAL=${DEF_XFS_SYNC_INTERVAL:-'30'}
391 DEF_XFS_BUFD_INTERVAL=${DEF_XFS_BUFD_INTERVAL:-'1'}
399 XFS_HZ=${XFS_HZ:-'100'}
403 KLEVEL="$(uname -r |
413 echo "Unhandled kernel version: $KLEVEL ('uname -r' = '$(uname -r)')" >&2
418 if [ ! -e /proc/sys/vm/laptop_mode ] ; then
423 if [ ! -w /proc/sys/vm/laptop_mode ] ; then
434 -e 's/,'"$OPT"'=[0-9]*,/,/g' \
435 -e 's/,,*/,/g' \
436 -e 's/^,//' \
437 -e 's/,$//'
446 -e 's/,'"$OPT"',/,/g' \
447 -e 's/,,*/,/g' \
448 -e 's/^,//' \
449 -e 's/,$//'
478 # no$OPT not found -- so we must have $OPT.
482 # option not specified in fstab -- choose the default.
509 echo -n "$PARSEDOPTS1,$OPT="
511 -e 's/.*,'"$OPT"'=//' \
512 -e 's/,.*//'
525 grep -v '^#' |
534 if [ $DO_REMOUNT_NOATIME -eq 1 ] ; then
542 echo -n "Starting laptop_mode"
544 if [ -d /proc/sys/vm/pagebuf ] ; then
546 # This only needs to be set, not reset -- it is only used when
550 elif [ -f /proc/sys/fs/xfs/lm_age_buffer ] ; then
555 elif [ -f /proc/sys/fs/xfs/age_buffer ] ; then
557 # But not for these -- they are also used in normal
561 elif [ -f /proc/sys/fs/xfs/age_buffer_centisecs ] ; then
583 if [ $DO_REMOUNTS -eq 1 ]; then
592 mount $DEV -t $FST $MP -o remount,$PARSEDOPTS,commit=$MAX_AGE$NOATIME_OPT
595 mount $DEV -t $FST $MP -o remount,$OPTS$NOATIME_OPT
598 if [ -b $DEV ] ; then
599 blockdev --setra $(($READAHEAD * 2)) $DEV
603 if [ $DO_HD -eq 1 ] ; then
605 /sbin/hdparm -S $BATT_HD $THISHD > /dev/null 2>&1
606 /sbin/hdparm -B 1 $THISHD > /dev/null 2>&1
609 if [ $DO_CPU -eq 1 -a -e /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq ]; then
620 echo -n "Stopping laptop_mode"
622 if [ -f /proc/sys/fs/xfs/age_buffer -a ! -f /proc/sys/fs/xfs/lm_age_buffer ] ; then
626 elif [ -f /proc/sys/fs/xfs/age_buffer_centisecs ] ; then
643 if [ $DO_REMOUNTS -eq 1 ] ; then
653 mount $DEV -t $FST $MP -o remount,$PARSEDOPTS
657 mount $DEV -t $FST $MP -o remount,$PARSEDOPTS
660 if [ -b $DEV ] ; then
661 blockdev --setra 256 $DEV
665 if [ $DO_HD -eq 1 ] ; then
667 /sbin/hdparm -S $AC_HD $THISHD > /dev/null 2>&1
668 /sbin/hdparm -B 255 $THISHD > /dev/null 2>&1
671 if [ $DO_CPU -eq 1 -a -e /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq ]; then
687 ----------------
713 "on-line")
717 "off-line")
732 if [[ -f /proc/sys/vm/laptop_mode ]]
735 if [[ $LM -gt 0 ]]
737 if [[ -f $BATT_INFO ]]
740 if [ -f /etc/default/laptop-mode ] ; then
742 . /etc/default/laptop-mode
743 elif [ -f /etc/sysconfig/laptop-mode ] ; then
745 . /etc/sysconfig/laptop-mode
747 MINIMUM_BATTERY_MINUTES=${MINIMUM_BATTERY_MINUTES:-'10'}
749 ACTION="`cat $BATT_INFO | grep charging | cut -c 26-`"
750 if [[ ACTION -eq "discharging" ]]
752 … PRESENT_RATE=`cat $BATT_INFO | grep "present rate:" | sed "s/.* \([0-9][0-9]* \).*/\1/" `
753 … REMAINING=`cat $BATT_INFO | grep "remaining capacity:" | sed "s/.* \([0-9][0-9]* \).*/\1/" `
760 …logger -p daemon.warning "You are using laptop mode and your battery interface $BATT_INFO is missi…
767 ---------------