# Configuration for Laptop Mode Tools # # There is a "system" to the configuration setting names: # CONTROL_something=0/1 Determines whether Laptop Mode Tools controls # something # LM_something=value Value of "something" when laptop mode is active # NOLM_something=value Value of "something" when laptop mode is NOT active # AC_something=value Value of "something" when the computer is running # on AC power # BATT_something=value Value of "something when the computer is running on # battery power # # There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the # available prefixes are different for each setting. The available ones are # documented in the manual page, laptop-mode.conf(8). If there is no LM_/NOLM_ # in a setting name, then the value is used independently of laptop mode state, # and similarly, if there is no AC_/BATT_, then the value is used independently # of power state. # # NOTE: Some options only work on ACPI systems. They are marked ACPI-ONLY. # Set this to 1 if you want to see a lot of information when you start/stop # laptop_mode. VERBOSE_OUTPUT=0 ############################################################################### # When to enable laptop mode ############################################################################### # Enable laptop mode when on battery power. ENABLE_LAPTOP_MODE_ON_BATTERY=1 # Enable laptop mode when on AC power. ENABLE_LAPTOP_MODE_ON_AC=0 # Enable laptop mode when the laptop's lid is closed, even when we're on AC # power? (ACPI-ONLY) ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1 # Disable laptop mode when the number of minutes of battery that you have left # goes below this threshold. (Note that some batteries do not report a discharge # rate, and this option will not have any effect on those batteries. Use the # battery charge options instead.) (ACPI-ONLY) MINIMUM_BATTERY_MINUTES=7 # Automatically disable laptop mode when the remaining charge in your battery # goes below this value. There is a configuration value in mWh and in mAh, # the one that is used depends on how your battery reports its capacity. # (ACPI-ONLY) MINIMUM_BATTERY_CHARGE_MAH=100 MINIMUM_BATTERY_CHARGE_MWH=500 ############################################################################### # Controlled hard drives and partitions ############################################################################### # The drives that laptop mode controls. # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a # wildcard, which will get you all your IDE and SCSI/SATA drives. HD="/dev/[hs]d[abcdefgh]" # The partitions (or mount points) that laptop mode controls. # Separate the values by spaces. Use "auto" to indicate all partitions on drives # listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can # also specify mount points, e.g. "/mnt/data". PARTITIONS="auto" ############################################################################### # Hard drive behaviour settings ############################################################################### # Maximum time, in seconds, of work that you are prepared to lose when your # system crashes or power runs out. This is the maximum time that Laptop Mode # will keep unsaved data waiting in memory before spinning up your hard drive. LM_BATT_MAX_LOST_WORK_SECONDS=600 LM_AC_MAX_LOST_WORK_SECONDS=360 # Should laptop mode tools control readahead? CONTROL_READAHEAD=1 # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB). # Effectively, the disk will read a complete MP3 at once, and will then spin # down while the MP3/OGG is playing. Don't set this too high, because the # readahead is applied to _all_ files that are read from disk. LM_READAHEAD=3072 NOLM_READAHEAD=128 # Should laptop mode tools add the "noatime" option to the mount options when # laptop mode is enabled? CONTROL_NOATIME=1 # Should laptop mode tools control the hard drive idle timeout settings? CONTROL_HD_IDLE_TIMEOUT=1 # Idle timeout values. (hdparm -S) # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 5 seconds # for battery and for AC with laptop mode on. LM_AC_HD_IDLE_TIMEOUT_SECONDS=5 LM_BATT_HD_IDLE_TIMEOUT_SECONDS=5 NOLM_HD_IDLE_TIMEOUT_SECONDS=7200 # Shoudl laptop mode tools control the hard drive power management settings? CONTROL_HD_POWERMGMT=0 # Power management for HD (hdparm -B values) BATT_HD_POWERMGMT=1 LM_AC_HD_POWERMGMT=255 NOLM_AC_HD_POWERMGMT=255 # Should laptop mode tools control the hard drive write cache settings? CONTROL_HD_WRITECACHE=0 # Write cache settings for HD (hdparm -W values) NOLM_AC_HD_WRITECACHE=1 NOLM_BATT_HD_WRITECACHE=0 LM_HD_WRITECACHE=0 ############################################################################### # ACPI binding ############################################################################### # Enable this if you have a buggy ACPI implementation that doesn't send # out AC adapter events. This will make laptop mode check the AC state # on battery state change events as well. (ACPI-ONLY) ACPI_WITHOUT_AC_EVENTS=0 ############################################################################### # CPU frequency scaling and throttling ############################################################################### # Should laptop mode tools control the maximum CPU frequency? # (Only works on 2.6 kernels with appropriate sysfs entries.) CONTROL_CPU_FREQUENCY=0 # Legal values are "slowest" for the slowest speed that your # CPU is able to operate at, "highest" for the fastest speed, or a value # listed in /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies. BATT_CPU_MAXFREQ=fastest BATT_CPU_MINFREQ=slowest BATT_CPU_GOVERNOR=conservative LM_AC_CPU_MAXFREQ=fastest LM_AC_CPU_MINFREQ=slowest LM_AC_CPU_GOVERNOR=ondemand NOLM_AC_CPU_MAXFREQ=fastest NOLM_AC_CPU_MINFREQ=slowest NOLM_AC_CPU_GOVERNOR=performance # Should laptop mode tools control the CPU throttling? This is only useful # on processors that don't have frequency scaling. # (Only works when you have /proc/acpi/processor/CPU*/throttling.) CONTROL_CPU_THROTTLING=0 # Legal values are "maximum" for the maximum (slowest) throttling level, # "minimum" for minimum (fastest) throttling level, "medium" for a value # somewhere in the middle (this is usually 50% for P4s), or any value listed # in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum": # this may be _very_ slow (in fact, with P4s it slows down the processor # by a factor 8). BATT_CPU_THROTTLING=medium LM_AC_CPU_THROTTLING=minimum NOLM_AC_CPU_THROTTLING=minimum ############################################################################### # Syslog configuration control ############################################################################### # Should laptop mode tools control which syslog.conf should be used? CONTROL_SYSLOG_CONF=0 # Laptop mode tools controls syslog.conf by replacing /etc/syslog.conf (or # whatever you specify in SYSLOG_CONF) by a link to the files configured here. # NOTE: these files are NOT created by default, and if they do not # exist this feature will not work. You can run the script # /usr/sbin/lm-syslog-setup to set things up. LM_AC_SYSLOG_CONF=/etc/syslog-on-ac-with-lm.conf NOLM_AC_SYSLOG_CONF=/etc/syslog-on-ac-without-lm.conf BATT_SYSLOG_CONF=/etc/syslog-on-battery.conf # Signal this program when syslog.conf has been replaced. SYSLOG_CONF_SIGNAL_PROGRAM=syslogd # This is the syslog configuration file that should be replaced by a link to the # other files. SYSLOG_CONF=/etc/syslog.conf ############################################################################### # X-Windows settings ############################################################################### # Should laptop mode tools control xwindows dpms standby settings? CONTROL_DPMS_STANDBY=0 # These settings specify the standby timeout for the screen in X-Windows, # in seconds. BATT_DPMS_STANDBY=300 LM_AC_DPMS_STANDBY=1200 NOLM_AC_DPMS_STANDBY=1200 ############################################################################### # Start/Stop Programs settings ############################################################################### # Should laptop mode start and stop programs? CONTROL_START_STOP=0 ############################################################################### # Settings you probably don't want to touch ############################################################################### # Change mount options on partitions in PARTITIONS? You don't really want to # disable this. If you do, then your hard drives will probably not spin down # anymore. CONTROL_MOUNT_OPTIONS=1 # Dirty synchronous ratio. At this percentage of dirty pages the process # which calls write() does its own writeback. LM_DIRTY_RATIO=60 NOLM_DIRTY_RATIO=40 # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been # exceeded, the kernel will wake pdflush which will then reduce the amount # of dirty memory to dirty_background_ratio. Set this nice and low, so once # some writeout has commenced, we do a lot of it. # LM_DIRTY_BACKGROUND_RATIO=1 NOLM_DIRTY_BACKGROUND_RATIO=10 # kernel default settings -- don't touch these unless you know what you're # doing. DEF_UPDATE=5 DEF_XFS_AGE_BUFFER=15 DEF_XFS_SYNC_INTERVAL=30 DEF_XFS_BUFD_INTERVAL=1 DEF_MAX_AGE=30 # This must be adjusted manually to the value of HZ in the running kernel # on 2.4, until the XFS people change their 2.4 external interfaces to work in # centisecs. This can be automated, but it's a work in progress that still # needs# some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for # external interfaces, and that is currently always set to 100. So you don't # need to change this on 2.6. XFS_HZ=100 # Seconds laptop mode has to to wait after the disk goes idle before doing # a sync. LM_SECONDS_BEFORE_SYNC=2