Dinesh_Raja

laptop-mode-tools.conf

Feb 17th, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.76 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=0
  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=0
  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. # pcie-aspm
  121. # runtime-pm
  122. # sched-mc-power-savings
  123. # sched-smt-power-savings
  124. # terminal-blanking
  125. # usb-autosuspend
  126. # wireless-ipw-power
  127. # wireless-iwl-power
  128. # wireless-power
  129. #
  130. # Set this to 1 to enable all simple zero-configuration auto modules listed above.
  131. #
  132. # NOTE: You can explicitly enable/disable any of the above modules by changing their
  133. # values in the individual settings file
  134. #
  135. ENABLE_AUTO_MODULES=1
  136.  
  137.  
  138.  
  139. ###############################################################################
  140. # When to enable data loss sensitive features
  141. # -------------------------------------------
  142. #
  143. # When data loss sensitive features are disabled, laptop mode tools acts as if
  144. # laptop mode were disabled, for those features only.
  145. #
  146. # Data loss sensitive features include:
  147. # - laptop_mode (i.e., delayed writes)
  148. # - hard drive write cache
  149. #
  150. # All of the options that follow can be set to 0 in order to prevent laptop
  151. # mode tools from using them to stop data loss sensitive features. Use this
  152. # when you have a battery that reports the wrong information, that confuses
  153. # laptop mode tools.
  154. #
  155. # Disabling data loss sensitive features is ACPI-ONLY, and it only works if
  156. # your battery gives off frequent ACPI events to indicate a change in battery
  157. # level.
  158. #
  159. # NOTE: If your battery does NOT give off battery events often enough, you can
  160. # enable the battery-level-polling module to make this work. Look at the
  161. # file /etc/laptop-mode/conf.d/battery-level-polling.conf for more information.
  162. #
  163. ###############################################################################
  164.  
  165.  
  166. #
  167. # Disable all data loss sensitive features when the battery level (in % of the
  168. # battery capacity) reaches this value.
  169. #
  170. MINIMUM_BATTERY_CHARGE_PERCENT=3
  171.  
  172.  
  173. #
  174. # Disable data loss sensitive features when the battery reports its state
  175. # as "critical".
  176. #
  177. DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
  178.  
  179.  
  180. #
  181. # Ignore the alarm value reported by your batteries. In some instances a
  182. # a battery will report an abnormally high alarm value, resulting in data-loss
  183. # sensitive features being disabled prematurely.
  184. #
  185. DISABLE_BATTERY_ALARM_CHECK=0
  186.  
  187.  
  188. ###############################################################################
  189. # Controlled hard drives and partitions
  190. # -------------------------------------
  191. #
  192. # For spinning down your hard drives, laptop mode will remount file systems and
  193. # adjust hard drive spindown timeouts. These parameters specify which
  194. # devices and partitions are affected by laptop mode.
  195. ###############################################################################
  196.  
  197.  
  198. #
  199. # The drives that laptop mode controls.
  200. # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
  201. # wildcard, which will get you all your IDE and SCSI/SATA drives.
  202. #
  203. HD="/dev/[hs]d[abcdefgh]"
  204.  
  205.  
  206. #
  207. # The partitions (or mount points) that laptop mode controls.
  208. # Separate the values by spaces. Use "auto" to indicate all partitions on drives
  209. # listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
  210. # also specify mount points, e.g. "/mnt/data".
  211. #
  212. PARTITIONS="auto /dev/mapper/*"
  213.  
  214.  
  215. #
  216. # If this is enabled, laptop mode tools will assume that SCSI drives are
  217. # really SATA drives that only _look_ like SCSI drives, and will use hdparm
  218. # to control them. Set this to 0 if you have /dev/sd devices and you want
  219. # laptop mode tools to use the "sdparm" command to control them.
  220. #
  221. ASSUME_SCSI_IS_SATA=1
  222.  
  223.  
  224. ###############################################################################
  225. # Hard drive behaviour settings
  226. # -----------------------------
  227. #
  228. # These settings specify how laptop mode tools will adjust the various
  229. # parameters of your hard drives and file systems.
  230. ###############################################################################
  231.  
  232.  
  233. #
  234. # Maximum time, in seconds, of work that you are prepared to lose when your
  235. # system crashes or power runs out. This is the maximum time that Laptop Mode
  236. # will keep unsaved data waiting in memory before spinning up your hard drive.
  237. #
  238. LM_BATT_MAX_LOST_WORK_SECONDS=600
  239. LM_AC_MAX_LOST_WORK_SECONDS=360
  240.  
  241.  
  242. #
  243. # Should laptop mode tools control readahead?
  244. #
  245. CONTROL_READAHEAD=1
  246.  
  247.  
  248. #
  249. # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
  250. # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
  251. # Effectively, the disk will read a complete MP3 at once, and will then spin
  252. # down while the MP3/OGG is playing. Don't set this too high, because the
  253. # readahead is applied to _all_ files that are read from disk.
  254. #
  255. LM_READAHEAD=3072
  256. NOLM_READAHEAD=128
  257.  
  258.  
  259. #
  260. # Should laptop mode tools add the "noatime" option to the mount options when
  261. # laptop mode is enabled?
  262. #
  263. CONTROL_NOATIME=0
  264.  
  265. # Should laptop use relatime instead of noatime? The "relatime" mount option has
  266. # more standards-compliant semantics, and allows more applications to work,
  267. # while retaining a low level of atime updates (i.e., disk writes).
  268. USE_RELATIME=1
  269.  
  270.  
  271. #
  272. # Should laptop mode tools control the hard drive idle timeout settings?
  273. #
  274. CONTROL_HD_IDLE_TIMEOUT=1
  275.  
  276.  
  277. #
  278. # Idle timeout values. (hdparm -S)
  279. # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
  280. # for battery and for AC with laptop mode on.
  281. #
  282. LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
  283. LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
  284. NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
  285.  
  286.  
  287. #
  288. # Should laptop mode tools control the hard drive power management settings?
  289. #
  290. # Set to 0 to disable
  291. CONTROL_HD_POWERMGMT="auto"
  292.  
  293.  
  294. #
  295. # Power management for HD (hdparm -B values)
  296. #
  297. BATT_HD_POWERMGMT=1
  298. LM_AC_HD_POWERMGMT=254
  299. NOLM_AC_HD_POWERMGMT=254
  300.  
  301.  
  302. #
  303. # Should laptop mode tools control the hard drive write cache settings?
  304. #
  305. CONTROL_HD_WRITECACHE=0
  306.  
  307.  
  308. #
  309. # Write cache settings for HD (hdparm -W values)
  310. #
  311. NOLM_AC_HD_WRITECACHE=1
  312. NOLM_BATT_HD_WRITECACHE=0
  313. LM_HD_WRITECACHE=0
  314.  
  315.  
  316.  
  317.  
  318. ###############################################################################
  319. # Settings you probably don't want to touch
  320. # -----------------------------------------
  321. #
  322. # It is usually not necessary to change these parameters. They are included
  323. # for completeness' sake.
  324. ###############################################################################
  325.  
  326.  
  327. #
  328. # Change mount options on partitions in PARTITIONS? You don't really want to
  329. # disable this. If you do, then your hard drives will probably not spin down
  330. # anymore.
  331. #
  332. CONTROL_MOUNT_OPTIONS=1
  333.  
  334.  
  335. #
  336. # Dirty synchronous ratio. At this percentage of dirty pages the process
  337. # which calls write() does its own writeback.
  338. #
  339. LM_DIRTY_RATIO=60
  340. NOLM_DIRTY_RATIO=40
  341.  
  342.  
  343. #
  344. # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been
  345. # exceeded, the kernel will wake pdflush which will then reduce the amount
  346. # of dirty memory to dirty_background_ratio. Set this nice and low, so once
  347. # some writeout has commenced, we do a lot of it.
  348. #
  349. LM_DIRTY_BACKGROUND_RATIO=1
  350. NOLM_DIRTY_BACKGROUND_RATIO=10
  351.  
  352.  
  353. #
  354. # kernel default settings -- don't touch these unless you know what you're
  355. # doing.
  356. #
  357. DEF_UPDATE=5
  358. DEF_XFS_AGE_BUFFER=15
  359. DEF_XFS_SYNC_INTERVAL=30
  360. DEF_XFS_BUFD_INTERVAL=1
  361. DEF_MAX_AGE=30
  362.  
  363.  
  364. #
  365. # This must be adjusted manually to the value of HZ in the running kernel
  366. # on 2.4, until the XFS people change their 2.4 external interfaces to work in
  367. # centisecs. This can be automated, but it's a work in progress that still
  368. # needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
  369. # external interfaces, and that is currently always set to 100. So you don't
  370. # need to change this on 2.6.
  371. #
  372. XFS_HZ=100
  373.  
  374.  
  375. #
  376. # Seconds laptop mode has to to wait after the disk goes idle before doing
  377. # a sync.
  378. #
  379. LM_SECONDS_BEFORE_SYNC=2
Advertisement
Add Comment
Please, Sign In to add comment