Advertisement
Guest User

Untitled

a guest
Apr 7th, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.51 KB | None | 0 0
  1. ###############################################################################
  2. #
  3. # Configuration for Laptop Mode Tools
  4. # -----------------------------------
  5. #
  6. # There is a "system" to the configuration setting names:
  7. # CONTROL_something=0/1 Determines whether Laptop Mode Tools controls
  8. # something
  9. # LM_something=value Value of "something" when laptop mode is active
  10. # NOLM_something=value Value of "something" when laptop mode is NOT
  11. # active
  12. # AC_something=value Value of "something" when the computer is running
  13. # on AC power
  14. # BATT_something=value Value of "something when the computer is running
  15. # on battery power
  16. #
  17. # There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
  18. # available prefixes are different for each setting. The available ones are
  19. # documented in the manual page, laptop-mode.conf(8). If there is no LM_/
  20. # NOLM_ in a setting name, then the value is used independently of laptop
  21. # mode state, and similarly, if there is no AC_/BATT_, then the value is used
  22. # independently of power state.
  23. #
  24. # Some options only work on ACPI systems. They are marked ACPI-ONLY.
  25. #
  26. # Note that this configuration file is a fragment of shell script: you
  27. # can use all the features of the shell scripting language to achieve your
  28. # desired configuration.
  29. #
  30. #
  31. # Modules
  32. # -------
  33. #
  34. # Laptop Mode Tools modules have separate configuration files, that can be
  35. # found in /etc/laptop-mode/conf.d. Please look through these configuration
  36. # files as well, there are many useful power saving tools in there!
  37. #
  38. ###############################################################################
  39.  
  40.  
  41. ###############################################################################
  42. # Enable/Disable laptop-mode-tools execution
  43. # ------------------------------------------
  44. # Set it to 0 to completely disable laptop-mode-tools from running
  45. ###############################################################################
  46. #
  47. ENABLE_LAPTOP_MODE_TOOLS=1
  48.  
  49.  
  50. ###############################################################################
  51. # Configuration debugging
  52. # -----------------------
  53. ###############################################################################
  54.  
  55. #
  56. # Set this to 1 if you want to see a lot of information when you start/stop
  57. # laptop_mode.
  58. #
  59. VERBOSE_OUTPUT=0
  60.  
  61. # Set this to 1 if you want to log messages to syslog
  62. LOG_TO_SYSLOG=1
  63.  
  64. # Run in shell debug mode
  65. # Enable this if you would like to execute the entire laptop-mode-tools program
  66. # in shell debug mode. Warning: This will create a lot of text output
  67. # If you are debugging an individual module, perhaps you would want to enable
  68. # each module specific debug mode (available in module conf files)
  69. DEBUG=0
  70.  
  71. ###############################################################################
  72. # When to enable laptop mode
  73. # --------------------------
  74. #
  75. # "Laptop mode" is the mode in which laptop mode tools makes the computer
  76. # consume less power. This includes the kernel "laptop_mode" feature, which
  77. # allows your hard drives to spin down, as well as various other settings which
  78. # can be tweaked by laptop mode tools. You can enable or disable all of these
  79. # settings using the CONTROL_... options further down in this config file.
  80. ###############################################################################
  81.  
  82.  
  83. #
  84. # Enable laptop mode when on battery power.
  85. #
  86. ENABLE_LAPTOP_MODE_ON_BATTERY=1
  87.  
  88.  
  89. #
  90. # Enable laptop mode when on AC power.
  91. #
  92. ENABLE_LAPTOP_MODE_ON_AC=1
  93.  
  94.  
  95. #
  96. # Enable laptop mode when the laptop's lid is closed, even when we're on AC
  97. # power? (ACPI-ONLY)
  98. #
  99. ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1
  100.  
  101.  
  102. #
  103. # Enable all simple zero-configuration auto modules
  104. # This option enables all simple modules (listed below) without requiring
  105. # the user to enable each module individually
  106. #
  107. # List of modules which can be automatically enabled with this setting are:
  108. #
  109. # ac97-powersave
  110. # cpufreq
  111. # dpms-standby
  112. # eee-superhe
  113. # ethernet
  114. # exec-commands
  115. # hal-polling
  116. # hdparm
  117. # intel-hda-powersave
  118. # intel-sata-powermgmt
  119. # nmi-watchdog
  120. # runtime-pm
  121. # sched-mc-power-savings
  122. # sched-smt-power-savings
  123. # terminal-blanking
  124. # usb-autosuspend
  125. # wireless-ipw-power
  126. # wireless-iwl-power
  127. # wireless-power
  128. #
  129. # Set this to 1 to enable all simple zero-configuration auto modules listed above.
  130. #
  131. # NOTE: You can explicitly enable/disable any of the above modules by changing their
  132. # values in the individual settings file
  133. #
  134. ENABLE_AUTO_MODULES=1
  135.  
  136.  
  137.  
  138. ###############################################################################
  139. # When to enable data loss sensitive features
  140. # -------------------------------------------
  141. #
  142. # When data loss sensitive features are disabled, laptop mode tools acts as if
  143. # laptop mode were disabled, for those features only.
  144. #
  145. # Data loss sensitive features include:
  146. # - laptop_mode (i.e., delayed writes)
  147. # - hard drive write cache
  148. #
  149. # All of the options that follow can be set to 0 in order to prevent laptop
  150. # mode tools from using them to stop data loss sensitive features. Use this
  151. # when you have a battery that reports the wrong information, that confuses
  152. # laptop mode tools.
  153. #
  154. # Disabling data loss sensitive features is ACPI-ONLY, and it only works if
  155. # your battery gives off frequent ACPI events to indicate a change in battery
  156. # level.
  157. #
  158. # NOTE: If your battery does NOT give off battery events often enough, you can
  159. # enable the battery-level-polling module to make this work. Look at the
  160. # file /etc/laptop-mode/conf.d/battery-level-polling.conf for more information.
  161. #
  162. ###############################################################################
  163.  
  164.  
  165. #
  166. # Disable all data loss sensitive features when the battery level (in % of the
  167. # battery capacity) reaches this value.
  168. #
  169. MINIMUM_BATTERY_CHARGE_PERCENT=3
  170.  
  171.  
  172. #
  173. # Disable data loss sensitive features when the battery reports its state
  174. # as "critical".
  175. #
  176. DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
  177.  
  178.  
  179.  
  180. ###############################################################################
  181. # Controlled hard drives and partitions
  182. # -------------------------------------
  183. #
  184. # For spinning down your hard drives, laptop mode will remount file systems and
  185. # adjust hard drive spindown timeouts. These parameters specify which
  186. # devices and partitions are affected by laptop mode.
  187. ###############################################################################
  188.  
  189.  
  190. #
  191. # The drives that laptop mode controls.
  192. # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
  193. # wildcard, which will get you all your IDE and SCSI/SATA drives.
  194. #
  195. HD="/dev/[hs]d[abcdefgh]"
  196.  
  197.  
  198. #
  199. # The partitions (or mount points) that laptop mode controls.
  200. # Separate the values by spaces. Use "auto" to indicate all partitions on drives
  201. # listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
  202. # also specify mount points, e.g. "/mnt/data".
  203. #
  204. PARTITIONS="auto /dev/mapper/*"
  205.  
  206.  
  207. #
  208. # If this is enabled, laptop mode tools will assume that SCSI drives are
  209. # really SATA drives that only _look_ like SCSI drives, and will use hdparm
  210. # to control them. Set this to 0 if you have /dev/sd devices and you want
  211. # laptop mode tools to use the "sdparm" command to control them.
  212. #
  213. ASSUME_SCSI_IS_SATA=1
  214.  
  215.  
  216. ###############################################################################
  217. # Hard drive behaviour settings
  218. # -----------------------------
  219. #
  220. # These settings specify how laptop mode tools will adjust the various
  221. # parameters of your hard drives and file systems.
  222. ###############################################################################
  223.  
  224.  
  225. #
  226. # Maximum time, in seconds, of work that you are prepared to lose when your
  227. # system crashes or power runs out. This is the maximum time that Laptop Mode
  228. # will keep unsaved data waiting in memory before spinning up your hard drive.
  229. #
  230. LM_BATT_MAX_LOST_WORK_SECONDS=600
  231. LM_AC_MAX_LOST_WORK_SECONDS=360
  232.  
  233.  
  234. #
  235. # Should laptop mode tools control readahead?
  236. #
  237. CONTROL_READAHEAD=1
  238.  
  239.  
  240. #
  241. # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
  242. # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
  243. # Effectively, the disk will read a complete MP3 at once, and will then spin
  244. # down while the MP3/OGG is playing. Don't set this too high, because the
  245. # readahead is applied to _all_ files that are read from disk.
  246. #
  247. LM_READAHEAD=3072
  248. NOLM_READAHEAD=128
  249.  
  250.  
  251. #
  252. # Should laptop mode tools add the "noatime" option to the mount options when
  253. # laptop mode is enabled?
  254. #
  255. CONTROL_NOATIME=0
  256.  
  257. # Should laptop use relatime instead of noatime? The "relatime" mount option has
  258. # more standards-compliant semantics, and allows more applications to work,
  259. # while retaining a low level of atime updates (i.e., disk writes).
  260. USE_RELATIME=1
  261.  
  262.  
  263. #
  264. # Should laptop mode tools control the hard drive idle timeout settings?
  265. #
  266. CONTROL_HD_IDLE_TIMEOUT=1
  267.  
  268.  
  269. #
  270. # Idle timeout values. (hdparm -S)
  271. # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
  272. # for battery and for AC with laptop mode on.
  273. #
  274. LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
  275. LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
  276. NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
  277.  
  278.  
  279. #
  280. # Should laptop mode tools control the hard drive power management settings?
  281. #
  282. # Set to 0 to disable
  283. CONTROL_HD_POWERMGMT="auto"
  284.  
  285.  
  286. #
  287. # Power management for HD (hdparm -B values)
  288. #
  289. BATT_HD_POWERMGMT=1
  290. LM_AC_HD_POWERMGMT=254
  291. NOLM_AC_HD_POWERMGMT=254
  292.  
  293.  
  294. #
  295. # Should laptop mode tools control the hard drive write cache settings?
  296. #
  297. CONTROL_HD_WRITECACHE=0
  298.  
  299.  
  300. #
  301. # Write cache settings for HD (hdparm -W values)
  302. #
  303. NOLM_AC_HD_WRITECACHE=1
  304. NOLM_BATT_HD_WRITECACHE=0
  305. LM_HD_WRITECACHE=0
  306.  
  307.  
  308.  
  309.  
  310. ###############################################################################
  311. # Settings you probably don't want to touch
  312. # -----------------------------------------
  313. #
  314. # It is usually not necessary to change these parameters. They are included
  315. # for completeness' sake.
  316. ###############################################################################
  317.  
  318.  
  319. #
  320. # Change mount options on partitions in PARTITIONS? You don't really want to
  321. # disable this. If you do, then your hard drives will probably not spin down
  322. # anymore.
  323. #
  324. CONTROL_MOUNT_OPTIONS=1
  325.  
  326.  
  327. #
  328. # Dirty synchronous ratio. At this percentage of dirty pages the process
  329. # which calls write() does its own writeback.
  330. #
  331. LM_DIRTY_RATIO=60
  332. NOLM_DIRTY_RATIO=40
  333.  
  334.  
  335. #
  336. # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been
  337. # exceeded, the kernel will wake pdflush which will then reduce the amount
  338. # of dirty memory to dirty_background_ratio. Set this nice and low, so once
  339. # some writeout has commenced, we do a lot of it.
  340. #
  341. LM_DIRTY_BACKGROUND_RATIO=1
  342. NOLM_DIRTY_BACKGROUND_RATIO=10
  343.  
  344.  
  345. #
  346. # kernel default settings -- don't touch these unless you know what you're
  347. # doing.
  348. #
  349. DEF_UPDATE=5
  350. DEF_XFS_AGE_BUFFER=15
  351. DEF_XFS_SYNC_INTERVAL=30
  352. DEF_XFS_BUFD_INTERVAL=1
  353. DEF_MAX_AGE=30
  354.  
  355.  
  356. #
  357. # This must be adjusted manually to the value of HZ in the running kernel
  358. # on 2.4, until the XFS people change their 2.4 external interfaces to work in
  359. # centisecs. This can be automated, but it's a work in progress that still
  360. # needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
  361. # external interfaces, and that is currently always set to 100. So you don't
  362. # need to change this on 2.6.
  363. #
  364. XFS_HZ=100
  365.  
  366.  
  367. #
  368. # Seconds laptop mode has to to wait after the disk goes idle before doing
  369. # a sync.
  370. #
  371. LM_SECONDS_BEFORE_SYNC=2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement