Skip to content

Instantly share code, notes, and snippets.

@taylor
Created September 19, 2014 18:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save taylor/8701482603d44a7c0057 to your computer and use it in GitHub Desktop.
Save taylor/8701482603d44a7c0057 to your computer and use it in GitHub Desktop.
my laptop-mode config differences from working x230 to new x230
ac97-powersave.conf
auto-hibernate.conf
--- /etc/laptop-mode/conf.d/auto-hibernate.conf 2014-09-07 13:38:23.000000000 -0500
+++ auto-hibernate.conf 2013-09-25 21:09:36.603610468 -0500
@@ -8,21 +8,21 @@
# Auto-hibernation settings
# -------------------------
#
-#__COMMENT Using these settings, you can make laptop mode tools automatically put your
-#__COMMENT computer into hibernation when the battery level goes critically low.
-#__COMMENT
-#__COMMENT This feature only works on ACPI, and only works on computers whose batteries
-#__COMMENT give off battery events often enough.
-#__COMMENT
-#__COMMENT NOTE: If your battery does NOT give off battery events often enough, you can
-#__COMMENT enable the battery-level-polling module to make this work after all. See
-#__COMMENT battery-level-polling.conf for more information.
-#__COMMENT
-#__COMMENT
-#__COMMENT IMPORTANT: In versions 1.36 and earlier, these settings were included in the
-#__COMMENT main laptop-mode.conf configuration file. If they are still present, they
-#__COMMENT overrule the settings in this file. To fix this, simply delete the settings
-#__COMMENT from the main config file.
+# Using these settings, you can make laptop mode tools automatically put your
+# computer into hibernation when the battery level goes critically low.
+#
+# This feature only works on ACPI, and only works on computers whose batteries
+# give off battery events often enough.
+#
+# NOTE: If your battery does NOT give off battery events often enough, you can
+# enable the battery-level-polling module to make this work after all. See
+# battery-level-polling.conf for more information.
+#
+#
+# IMPORTANT: In versions 1.36 and earlier, these settings were included in the
+# main laptop-mode.conf configuration file. If they are still present, they
+# overrule the settings in this file. To fix this, simply delete the settings
+# from the main config file.
#
###############################################################################
@@ -33,7 +33,7 @@
#
# Should laptop mode tools perform auto-hibernation?
#
-ENABLE_AUTO_HIBERNATION=0
+ENABLE_AUTO_HIBERNATION=1
#
auto-hibernate.conf.pacnew
--- /etc/laptop-mode/conf.d/auto-hibernate.conf.pacnew 1969-12-31 18:00:00.000000000 -0600
+++ auto-hibernate.conf.pacnew 2013-09-11 07:00:49.000000000 -0500
@@ -0,0 +1,57 @@
+#
+# Configuration file for Laptop Mode Tools module auto-hibernate.
+#
+# For more information, consult the laptop-mode.conf(8) manual page.
+#
+
+###############################################################################
+# Auto-hibernation settings
+# -------------------------
+#
+#__COMMENT Using these settings, you can make laptop mode tools automatically put your
+#__COMMENT computer into hibernation when the battery level goes critically low.
+#__COMMENT
+#__COMMENT This feature only works on ACPI, and only works on computers whose batteries
+#__COMMENT give off battery events often enough.
+#__COMMENT
+#__COMMENT NOTE: If your battery does NOT give off battery events often enough, you can
+#__COMMENT enable the battery-level-polling module to make this work after all. See
+#__COMMENT battery-level-polling.conf for more information.
+#__COMMENT
+#__COMMENT
+#__COMMENT IMPORTANT: In versions 1.36 and earlier, these settings were included in the
+#__COMMENT main laptop-mode.conf configuration file. If they are still present, they
+#__COMMENT overrule the settings in this file. To fix this, simply delete the settings
+#__COMMENT from the main config file.
+#
+###############################################################################
+
+# Enable debug mode for this module
+# Set to 1 if you want to debug this module
+DEBUG=0
+
+#
+# Should laptop mode tools perform auto-hibernation?
+#
+ENABLE_AUTO_HIBERNATION=0
+
+
+#
+# The hibernation command that is to be executed when auto-hibernation
+# is triggered.
+#
+HIBERNATE_COMMAND=/usr/share/laptop-mode-tools/module-helpers/pm-hibernate
+
+
+#
+# Auto-hibernation battery level threshold, in percentage of the battery's
+# total capacity.
+#
+AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=4
+
+
+#
+# Enable this to auto-hibernate if the battery reports that its level is
+# "critical".
+#
+AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1
battery-level-polling.conf
bluetooth.conf
configuration-file-control.conf
cpufreq.conf
dpms-standby.conf
eee-superhe.conf
ethernet.conf
--- /etc/laptop-mode/conf.d/ethernet.conf 2014-09-07 13:38:23.000000000 -0500
+++ ethernet.conf 2013-09-11 07:00:49.000000000 -0500
@@ -25,7 +25,7 @@
# Control Ethernet settings?
CONTROL_ETHERNET="auto"
-# Handle throttling of the ethernet device under specific circumstances
+# Handle throttling of the ethernet deivce under specific circumstances
BATT_THROTTLE_ETHERNET=1
LM_AC_THROTTLE_ETHERNET=0
NOLM_AC_THROTTLE_ETHERNET=0
@@ -60,10 +60,7 @@
# In practise, most of the times a user is on battery, she is using the wireless device
-# Under such cases, you might want to disable your ethernet interface completely, when
+# Under such cases, you might want to disable your ethernet device completely, when
# on battery.
-#
-# Set below setting to 1, to disable ethernet interface when on battery and
-# when no carrier is detected on the interface (e.g., no active cable is
-# plugged in).
-DISABLE_ETHERNET_ON_BATTERY=1
+# If that is the case, set below setting to 1
+DISABLE_ETHERNET_ON_BATTERY=0
exec-commands.conf
hal-polling.conf
intel-hda-powersave.conf
intel-sata-powermgmt.conf
lcd-brightness.conf
nmi-watchdog.conf
pcie-aspm.conf
runtime-pm.conf
--- /etc/laptop-mode/conf.d/runtime-pm.conf 2014-09-07 13:38:23.000000000 -0500
+++ runtime-pm.conf 2013-09-11 07:00:49.000000000 -0500
@@ -6,62 +6,22 @@
###############################################################################
-# Runtime Power Management Settings
-# ---------------------------------
+# Linux Runtime Power Management
+# -------------------------------
#
-#__COMMENT If you enable this setting, laptop mode tools will automatically enable
-#__COMMENT the Runtime Power Management feature for all devices.
+#__COMMENT If you enable this setting, laptop mode tools will automatically set the
+#__COMMENT Runtime Power Management framework of the Linux Kernel.
+#__COMMENT This setting does not hurt, so there are no AC vs. battery settings:
+#__COMMENT if CONTROL_RUNTIME_PM is set to 1, the powersave mode is always enabled.
+#__COMMENT Set to 0 to disable.
#__COMMENT
-#__COMMENT NOTE: Some devices claim they support autosuspend, but implement it in a
-#__COMMENT broken way. This can mean keyboards losing keypresses, or optical mice
-#__COMMENT turning their LED completely off. If you have a device that misbehaves,
-#__COMMENT add its DEVICE ID to the blacklist section below and complain to your
-#__COMMENT hardware / device driver contact
+#__COMMENT Default is "auto"
#
-################################################################################
+###############################################################################
+
+# Control Runtime Power Management ?
+CONTROL_RUNTIME_PM="auto"
# Enable debug mode for this module
# Set to 1 if you want to debug this module
DEBUG=0
-
-# Enable Runtime autosuspend feature?
-# Set to 0 to disable
-CONTROL_RUNTIME_AUTOSUSPEND=1
-
-# Set this to use opt-in/whitelist instead of opt-out/blacklist for deciding
-# which devices should be autosuspended.
-# AUTOSUSPEND_USE_WHITELIST=0 means AUTOSUSPEND_*_BLACKLIST will be used.
-# AUTOSUSPEND_USE_WHITELIST=1 means AUTOSUSPEND_*_WHITELIST will be used.
-AUTOSUSPEND_USE_WHITELIST=0
-
-# The list of Device IDs that should not use autosuspend. Use system commands or
-# look into sysfs to find out the IDs of your devices.
-# Example: AUTOSUSPEND_DEVID_BLACKLIST="046d:c025 0123:abcd"
-AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST=""
-
-# The list of device driver types that should not use autosuspend. The driver
-# type is given by "DRIVER=..." in a device's uevent file.
-# Example: AUTOSUSPEND_DEVID_BLACKLIST="usbhid usb-storage"
-AUTOSUSPEND_RUNTIME_DEVTYPE_BLACKLIST=""
-
-# The list of Device IDs that should use autosuspend. Use system commands or
-# look into sysfs to find out the IDs of your devices.
-# Example: AUTOSUSPEND_DEVID_WHITELIST="046d:c025 0123:abcd"
-AUTOSUSPEND_RUNTIME_DEVID_WHITELIST=""
-
-# The list of device driver types that should use autosuspend. The driver
-# type is given by "DRIVER=..." in a device's uevent file.
-# Example: AUTOSUSPEND_DEVTYPE_WHITELIST="usbhid usb-storage"
-AUTOSUSPEND_RUNTIME_DEVTYPE_WHITELIST=""
-
-# Trigger auto-suspension of the deivce under conditional circumstances
-# Warning: DO NOT CHANGE THESE DEFAUTLS UNLESS YOU KNOW
-BATT_SUSPEND_RUNTIME=1
-LM_AC_SUSPEND_RUNTIME=1
-NOLM_AC_SUSPEND_RUNTIME=1
-
-# Auto-Suspend timeout in seconds
-# Number of seconds after which the USB devices should suspend
-AUTOSUSPEND_TIMEOUT=2
-
-
sched-mc-power-savings.conf
sched-smt-power-savings.conf
start-stop-programs.conf
terminal-blanking.conf
usb-autosuspend.conf
--- /etc/laptop-mode/conf.d/usb-autosuspend.conf 1969-12-31 18:00:00.000000000 -0600
+++ usb-autosuspend.conf 2013-09-11 07:00:49.000000000 -0500
@@ -0,0 +1,65 @@
+#
+# Configuration file for Laptop Mode Tools module usb-autosuspend.
+#
+# For more information, consult the laptop-mode.conf(8) manual page.
+#
+
+
+###############################################################################
+# USB autosuspend settings
+# ------------------------
+#
+#__COMMENT If you enable this setting, laptop mode tools will automatically enable the
+#__COMMENT USB autosuspend feature for all devices.
+#__COMMENT
+#__COMMENT NOTE: Some USB devices claim they support autosuspend, but implement it in a
+#__COMMENT broken way. This can mean keyboards losing keypresses, or optical mice turning
+#__COMMENT their LED completely off. If you have a device that misbehaves, add its USB ID
+#__COMMENT to the blacklist below and complain to your hardware vendor.
+#
+################################################################################
+
+# Enable debug mode for this module
+# Set to 1 if you want to debug this module
+DEBUG=0
+
+# Enable USB autosuspend feature?
+# Set to 0 to disable
+CONTROL_USB_AUTOSUSPEND="auto"
+
+# Set this to use opt-in/whitelist instead of opt-out/blacklist for deciding
+# which USB devices should be autosuspended.
+# AUTOSUSPEND_USE_WHITELIST=0 means AUTOSUSPEND_*_BLACKLIST will be used.
+# AUTOSUSPEND_USE_WHITELIST=1 means AUTOSUSPEND_*_WHITELIST will be used.
+AUTOSUSPEND_USE_WHITELIST=0
+
+# The list of USB IDs that should not use autosuspend. Use lsusb to find out the
+# IDs of your USB devices.
+# Example: AUTOSUSPEND_USBID_BLACKLIST="046d:c025 0123:abcd"
+AUTOSUSPEND_USBID_BLACKLIST=""
+
+# The list of USB driver types that should not use autosuspend. The driver
+# type is given by "DRIVER=..." in a USB device's uevent file.
+# Example: AUTOSUSPEND_USBID_BLACKLIST="usbhid usb-storage"
+AUTOSUSPEND_USBTYPE_BLACKLIST=""
+
+# The list of USB IDs that should use autosuspend. Use lsusb to find out the
+# IDs of your USB devices.
+# Example: AUTOSUSPEND_USBID_WHITELIST="046d:c025 0123:abcd"
+AUTOSUSPEND_USBID_WHITELIST=""
+
+# The list of USB driver types that should use autosuspend. The driver
+# type is given by "DRIVER=..." in a USB device's uevent file.
+# Example: AUTOSUSPEND_USBTYPE_WHITELIST="usbhid usb-storage"
+AUTOSUSPEND_USBTYPE_WHITELIST=""
+
+# Trigger auto-suspension of the USB deivce under conditional circumstances
+BATT_SUSPEND_USB=1
+LM_AC_SUSPEND_USB=0
+NOLM_AC_SUSPEND_USB=0
+
+# USB Auto-Suspend timeout in seconds
+# Number of seconds after which the USB devices should suspend
+AUTOSUSPEND_TIMEOUT=2
+
+
video-out.conf
wireless-ipw-power.conf
wireless-iwl-power.conf
--- /etc/laptop-mode/conf.d/wireless-iwl-power.conf 2014-09-07 13:38:23.000000000 -0500
+++ wireless-iwl-power.conf 2013-09-11 07:00:49.000000000 -0500
@@ -13,9 +13,7 @@
#__COMMENT the powersave mode of Intel wireless adapters supported by the
#__COMMENT iwlagn driver (including 4965, 5100, 5300, 5350, 5150, 1000, and
#__COMMENT 6000).
-#__COMMENT
-#__COMMENT Please ensure proper Power Savings feature is enabled in your device
-#__COMMENT driver.
+#
#
###############################################################################
wireless-power.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment