Advertisement
Guest User

/etc/laptop-mode/laptop-mode.conf

a guest
May 27th, 2012
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. # Dell XPS 13 laptop-mode.conf
  2. # (EXPERIMENTAL)
  3.  
  4. ENABLE_LAPTOP_MODE_TOOLS=1
  5.  
  6. VERBOSE_OUTPUT=0
  7. LOG_TO_SYSLOG=1
  8. DEBUG=0
  9.  
  10. # Enable laptop mode when on battery power.
  11. ENABLE_LAPTOP_MODE_ON_BATTERY=1
  12.  
  13. # Enable laptop mode when on AC power.
  14. ENABLE_LAPTOP_MODE_ON_AC=0
  15.  
  16. # Enable laptop mode when the laptop's lid is closed, even when we're on AC
  17. # power? (ACPI-ONLY)
  18. ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
  19.  
  20. # Enable all simple zero-configuration auto modules
  21. ENABLE_AUTO_MODULES=1
  22.  
  23. # Disable all data loss sensitive features when the battery level (in % of the
  24. # battery capacity) reaches this value.
  25. MINIMUM_BATTERY_CHARGE_PERCENT=3
  26.  
  27. # Disable data loss sensitive features when the battery reports its state
  28. # as "critical".
  29. DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
  30.  
  31. ###
  32. # Hard-disk
  33. #
  34.  
  35. # Should laptop mode tools control readahead?
  36. CONTROL_READAHEAD=0
  37.  
  38. # Should laptop mode tools add the "noatime" option to the mount options when
  39. # laptop mode is enabled?
  40. CONTROL_NOATIME=0
  41.  
  42. # Should laptop use relatime instead of noatime? The "relatime" mount option has
  43. # more standards-compliant semantics, and allows more applications to work,
  44. # while retaining a low level of atime updates (i.e., disk writes).
  45. USE_RELATIME=1
  46.  
  47. # Should laptop mode tools control the hard drive idle timeout settings?
  48. CONTROL_HD_IDLE_TIMEOUT=0
  49.  
  50. # Should laptop mode tools control the hard drive power management settings?
  51. # Set to 0 to disable
  52. CONTROL_HD_POWERMGMT=0
  53.  
  54. # Should laptop mode tools control the hard drive write cache settings?
  55. CONTROL_HD_WRITECACHE=0
  56.  
  57.  
  58. ###
  59. # Advanced
  60. #
  61.  
  62. # Change mount options on partitions in PARTITIONS? You don't really want to
  63. # disable this. If you do, then your hard drives will probably not spin down
  64. # anymore.
  65. CONTROL_MOUNT_OPTIONS=0
  66.  
  67. # Dirty synchronous ratio. At this percentage of dirty pages the process
  68. # which calls write() does its own writeback.
  69. LM_DIRTY_RATIO=60
  70. NOLM_DIRTY_RATIO=40
  71.  
  72. # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been
  73. # exceeded, the kernel will wake pdflush which will then reduce the amount
  74. # of dirty memory to dirty_background_ratio. Set this nice and low, so once
  75. # some writeout has commenced, we do a lot of it.
  76. LM_DIRTY_BACKGROUND_RATIO=1
  77. NOLM_DIRTY_BACKGROUND_RATIO=10
  78.  
  79. # kernel default settings -- don't touch these unless you know what you're
  80. # doing.
  81. DEF_UPDATE=5
  82. DEF_XFS_AGE_BUFFER=15
  83. DEF_XFS_SYNC_INTERVAL=30
  84. DEF_XFS_BUFD_INTERVAL=1
  85. DEF_MAX_AGE=30
  86.  
  87. # This must be adjusted manually to the value of HZ in the running kernel
  88. # on 2.4, until the XFS people change their 2.4 external interfaces to work in
  89. # centisecs. This can be automated, but it's a work in progress that still
  90. # needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
  91. # external interfaces, and that is currently always set to 100. So you don't
  92. # need to change this on 2.6.
  93. XFS_HZ=100
  94.  
  95. # Seconds laptop mode has to to wait after the disk goes idle before doing
  96. # a sync.
  97. LM_SECONDS_BEFORE_SYNC=2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement