linrunner/TLP — Issue #1: TLP, ArchLinux and Power Source Change
Author: arguser
Created: 2011-12-14 01:48:44+00:00
State: open

I think that the normal behavior of TLP is to set configurations according to the Power Source. With TLP on rc.conf as a DEAMON I plug/unplug my Laptop and nothing changes, for settings to be made I have to do `sudo tlp start`.

```bash
--- tlp 0.3.3 --------------------------------------------
System = LENOVO ThinkPad T410 25379YY
BIOS = 6IET76WW (1.36 )
Release = "Arch Linux"
Kernel = 3.1.5-1-ARCH x86_64

tlp power save = enabled
power source = ac

/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = performance
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = performance
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = performance
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = performance

/sys/devices/system/cpu/sched_smt_power_savings = 0
/proc/sys/kernel/nmi_watchdog = 0

/sys/devices/system/cpu/cpu?/cpufreq/phc_controls = (phc kernel not available)

/proc/acpi/ibm/thermal = temperatures:	50 0 0 0 0 0 0 0

/proc/sys/vm/laptop_mode = 0
/proc/sys/vm/dirty_writeback_centisecs = 1500
/proc/sys/vm/dirty_expire_centisecs = 1500
/proc/sys/vm/dirty_ratio = 60
/proc/sys/vm/dirty_background_ratio = 1
/proc/sys/fs/xfs/age_buffer_centisecs = (not available)
/proc/sys/fs/xfs/xfssyncd_centisecs = (not available)
/proc/sys/fs/xfs/xfsbufd_centisecs = (not available)

/dev/sda:
Model = WDC WD5000BEVT-08A0RT1
Firmware = 02.01A02
APM Level = 254
scheduler = cfq

SMART info:
4 Start_Stop_Count = 3374
5 Reallocated_Sector_Ct = 0
9 Power_On_Hours = 1878 [h]
193 Load_Cycle_Count = 83478
194 Temperature_Celsius = 40 [°C]

/sys/class/scsi_host/host0/link_power_management_policy = max_performance
/sys/class/scsi_host/host1/link_power_management_policy = max_performance
/sys/class/scsi_host/host2/link_power_management_policy = max_performance
/sys/class/scsi_host/host3/link_power_management_policy = max_performance
/sys/class/scsi_host/host4/link_power_management_policy = max_performance
/sys/class/scsi_host/host5/link_power_management_policy = max_performance

/sys/module/pcie_aspm/parameters/policy = performance

bluetooth = off (software)
wifi = on
wwan = none (no device)

wlan0(iwlagn): power management = off

/sys/module/snd_hda_intel/parameters/power_save = 1
/sys/module/snd_hda_intel/parameters/power_save_controller = Y

/sys/devices/platform/smapi/BAT0/manufacturer = SANYO
/sys/devices/platform/smapi/BAT0/manufacture_date = 2011-02-17
/sys/devices/platform/smapi/BAT0/first_use_date = 2011-07-02
/sys/devices/platform/smapi/BAT0/cycle_count = 139
/sys/devices/platform/smapi/BAT0/design_capacity = 56160 [mWh]
/sys/devices/platform/smapi/BAT0/last_full_capacity = 55490 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_capacity = 43210 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_percent = 78 [%]
/sys/devices/platform/smapi/BAT0/remaining_running_time_now = not_discharging [min]
/sys/devices/platform/smapi/BAT0/remaining_charging_time = not_charging [min]

/sys/devices/platform/smapi/BAT0/start_charge_thresh = 75 [%]
/sys/devices/platform/smapi/BAT0/stop_charge_thresh = 80 [%]

tlp usb autosuspend = enabled
tlp usb blacklist = (not configured)

/sys/bus/usb/devices/1-1/power/autosuspend_delay_ms = 2000, control = auto -- 8087:0020 unknown device (hub)
/sys/bus/usb/devices/1-1.3/power/autosuspend_delay_ms = 2000, control = auto -- 147e:2016 Biometric Coprocessor (no driver)
/sys/bus/usb/devices/1-1.6/power/autosuspend_delay_ms = 2000, control = auto -- 17ef:480f Integrated Camera (uvcvideo)
/sys/bus/usb/devices/2-1/power/autosuspend_delay_ms = 2000, control = auto -- 8087:0020 unknown device (hub)
/sys/bus/usb/devices/usb1/power/autosuspend_delay_ms = 2000, control = auto -- 1d6b:0002 EHCI Host Controller (hub)
/sys/bus/usb/devices/usb2/power/autosuspend_delay_ms = 2000, control = auto -- 1d6b:0002 EHCI Host Controller (hub)
```

```bash
--- tlp 0.3.3 --------------------------------------------
System = LENOVO ThinkPad T410 25379YY
BIOS = 6IET76WW (1.36 )
Release = "Arch Linux"
Kernel = 3.1.5-1-ARCH x86_64

tlp power save = enabled
power source = battery

/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = performance
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = performance
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = performance
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = performance

/sys/devices/system/cpu/sched_smt_power_savings = 0
/proc/sys/kernel/nmi_watchdog = 0

/sys/devices/system/cpu/cpu?/cpufreq/phc_controls = (phc kernel not available)

/proc/acpi/ibm/thermal = temperatures:	51 0 0 0 0 0 0 0

/proc/sys/vm/laptop_mode = 0
/proc/sys/vm/dirty_writeback_centisecs = 1500
/proc/sys/vm/dirty_expire_centisecs = 1500
/proc/sys/vm/dirty_ratio = 60
/proc/sys/vm/dirty_background_ratio = 1
/proc/sys/fs/xfs/age_buffer_centisecs = (not available)
/proc/sys/fs/xfs/xfssyncd_centisecs = (not available)
/proc/sys/fs/xfs/xfsbufd_centisecs = (not available)

/dev/sda:
Model = WDC WD5000BEVT-08A0RT1
Firmware = 02.01A02
APM Level = 254
scheduler = cfq

SMART info:
4 Start_Stop_Count = 3374
5 Reallocated_Sector_Ct = 0
9 Power_On_Hours = 1878 [h]
193 Load_Cycle_Count = 83478
194 Temperature_Celsius = 40 [°C]

/sys/class/scsi_host/host0/link_power_management_policy = max_performance
/sys/class/scsi_host/host1/link_power_management_policy = max_performance
/sys/class/scsi_host/host2/link_power_management_policy = max_performance
/sys/class/scsi_host/host3/link_power_management_policy = max_performance
/sys/class/scsi_host/host4/link_power_management_policy = max_performance
/sys/class/scsi_host/host5/link_power_management_policy = max_performance

/sys/module/pcie_aspm/parameters/policy = performance

bluetooth = off (software)
wifi = on
wwan = none (no device)

wlan0(iwlagn): power management = off

/sys/module/snd_hda_intel/parameters/power_save = 1
/sys/module/snd_hda_intel/parameters/power_save_controller = Y

/sys/devices/platform/smapi/BAT0/manufacturer = SANYO
/sys/devices/platform/smapi/BAT0/manufacture_date = 2011-02-17
/sys/devices/platform/smapi/BAT0/first_use_date = 2011-07-02
/sys/devices/platform/smapi/BAT0/cycle_count = 139
/sys/devices/platform/smapi/BAT0/design_capacity = 56160 [mWh]
/sys/devices/platform/smapi/BAT0/last_full_capacity = 55490 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_capacity = 43210 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_percent = 78 [%]
/sys/devices/platform/smapi/BAT0/remaining_running_time_now = not_discharging [min]
/sys/devices/platform/smapi/BAT0/remaining_charging_time = not_charging [min]

/sys/devices/platform/smapi/BAT0/start_charge_thresh = 75 [%]
/sys/devices/platform/smapi/BAT0/stop_charge_thresh = 80 [%]

tlp usb autosuspend = enabled
tlp usb blacklist = (not configured)

/sys/bus/usb/devices/1-1/power/autosuspend_delay_ms = 2000, control = auto -- 8087:0020 unknown device (hub)
/sys/bus/usb/devices/1-1.3/power/autosuspend_delay_ms = 2000, control = auto -- 147e:2016 Biometric Coprocessor (no driver)
/sys/bus/usb/devices/1-1.6/power/autosuspend_delay_ms = 2000, control = auto -- 17ef:480f Integrated Camera (uvcvideo)
/sys/bus/usb/devices/2-1/power/autosuspend_delay_ms = 2000, control = auto -- 8087:0020 unknown device (hub)
/sys/bus/usb/devices/usb1/power/autosuspend_delay_ms = 2000, control = auto -- 1d6b:0002 EHCI Host Controller (hub)
/sys/bus/usb/devices/usb2/power/autosuspend_delay_ms = 2000, control = auto -- 1d6b:0002 EHCI Host Controller (hub)
```