{"action":"created","issue":{"url":"https://api.github.com/repos/linrunner/TLP/issues/147","labels_url":"https://api.github.com/repos/linrunner/TLP/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/linrunner/TLP/issues/147/comments","events_url":"https://api.github.com/repos/linrunner/TLP/issues/147/events","html_url":"https://github.com/linrunner/TLP/issues/147","id":92338998,"number":147,"title":"TLP does not switch CPU Governor when plugged in.","user":{"login":"duschendestroyer","id":458301,"avatar_url":"https://avatars.githubusercontent.com/u/458301?v=3","gravatar_id":"","url":"https://api.github.com/users/duschendestroyer","html_url":"https://github.com/duschendestroyer","followers_url":"https://api.github.com/users/duschendestroyer/followers","following_url":"https://api.github.com/users/duschendestroyer/following{/other_user}","gists_url":"https://api.github.com/users/duschendestroyer/gists{/gist_id}","starred_url":"https://api.github.com/users/duschendestroyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duschendestroyer/subscriptions","organizations_url":"https://api.github.com/users/duschendestroyer/orgs","repos_url":"https://api.github.com/users/duschendestroyer/repos","events_url":"https://api.github.com/users/duschendestroyer/events{/privacy}","received_events_url":"https://api.github.com/users/duschendestroyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"linrunner","id":794121,"avatar_url":"https://avatars.githubusercontent.com/u/794121?v=3","gravatar_id":"","url":"https://api.github.com/users/linrunner","html_url":"https://github.com/linrunner","followers_url":"https://api.github.com/users/linrunner/followers","following_url":"https://api.github.com/users/linrunner/following{/other_user}","gists_url":"https://api.github.com/users/linrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/linrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linrunner/subscriptions","organizations_url":"https://api.github.com/users/linrunner/orgs","repos_url":"https://api.github.com/users/linrunner/repos","events_url":"https://api.github.com/users/linrunner/events{/privacy}","received_events_url":"https://api.github.com/users/linrunner/received_events","type":"User","site_admin":false},"milestone":null,"comments":17,"created_at":"2015-07-01T10:16:37Z","updated_at":"2015-07-06T21:19:35Z","closed_at":null,"body":"Below is the output of tlp stat after plugging in the ac adapter.\r\ntlp knows that I'm on ac power but the governor is still powersave even though the configuration states that it should switch to performance.\r\nWhen I use tlp ac to switch to ac mode manually, everything works as expected.\r\nBut disconnecting the AC adapter afterwards does not change the governor either, so it stays at performance.\r\n\r\nDistribution: Archlinux\r\nHardware: Thinkpad X250, intel i5 5200U\r\n\r\n\r\n--- TLP 0.7 --------------------------------------------\r\n\r\n+++ Configured Settings: /etc/default/tlp\r\nTLP_ENABLE=1\r\nDISK_IDLE_SECS_ON_AC=0\r\nDISK_IDLE_SECS_ON_BAT=2\r\nMAX_LOST_WORK_SECS_ON_AC=15\r\nMAX_LOST_WORK_SECS_ON_BAT=60\r\nCPU_SCALING_GOVERNOR_ON_AC=performance\r\nCPU_SCALING_GOVERNOR_ON_BAT=powersave\r\nCPU_BOOST_ON_AC=1\r\nCPU_BOOST_ON_BAT=0\r\nSCHED_POWERSAVE_ON_AC=0\r\nSCHED_POWERSAVE_ON_BAT=1\r\nNMI_WATCHDOG=0\r\nENERGY_PERF_POLICY_ON_AC=performance\r\nENERGY_PERF_POLICY_ON_BAT=powersave\r\nDISK_DEVICES=\"sda sdb\"\r\nDISK_APM_LEVEL_ON_AC=\"254 254\"\r\nDISK_APM_LEVEL_ON_BAT=\"128 128\"\r\nSATA_LINKPWR_ON_AC=max_performance\r\nSATA_LINKPWR_ON_BAT=min_power\r\nPCIE_ASPM_ON_AC=performance\r\nPCIE_ASPM_ON_BAT=powersave\r\nRADEON_POWER_PROFILE_ON_AC=high\r\nRADEON_POWER_PROFILE_ON_BAT=low\r\nRADEON_DPM_STATE_ON_AC=performance\r\nRADEON_DPM_STATE_ON_BAT=battery\r\nRADEON_DPM_PERF_LEVEL_ON_AC=auto\r\nRADEON_DPM_PERF_LEVEL_ON_BAT=auto\r\nWIFI_PWR_ON_AC=1\r\nWIFI_PWR_ON_BAT=5\r\nWOL_DISABLE=Y\r\nSOUND_POWER_SAVE_ON_AC=0\r\nSOUND_POWER_SAVE_ON_BAT=1\r\nSOUND_POWER_SAVE_CONTROLLER=Y\r\nBAY_POWEROFF_ON_BAT=0\r\nBAY_DEVICE=\"sr0\"\r\nRUNTIME_PM_ON_AC=on\r\nRUNTIME_PM_ON_BAT=auto\r\nRUNTIME_PM_ALL=1\r\nRUNTIME_PM_DRIVER_BLACKLIST=\"radeon nouveau\"\r\nUSB_AUTOSUSPEND=1\r\nUSB_DRIVER_BLACKLIST=\"usbhid\"\r\nUSB_BLACKLIST_WWAN=1\r\nRESTORE_DEVICE_STATE_ON_STARTUP=0\r\n\r\n+++ System Info\r\nSystem         = LENOVO ThinkPad X250 20CLS06A00\r\nBIOS           = N10ET28W (1.05 )\r\nKernel         = 4.0.5-1-ARCH x86_64\r\n/proc/cmdline  = initrd=\\initramfs-linux.img cryptdevice=/dev/sda6:vgroup:allow-discards resume=/dev/mapper/vgroup-swap video.use_native_backlight=1 root=/dev/mapper/vgroup-root ro\r\nInit system    = systemd\r\n\r\n+++ System Status\r\nTLP power save = enabled\r\npower source   = ac\r\n\r\n+++ Processor\r\nCPU Model      = Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz\r\n\r\n/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver    = intel_pstate\r\n/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor  = powersave\r\n/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq  =   500000 [kHz]\r\n/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq  =  2700000 [kHz]\r\n\r\n/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver    = intel_pstate\r\n/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor  = powersave\r\n/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq  =   500000 [kHz]\r\n/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq  =  2700000 [kHz]\r\n\r\n/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver    = intel_pstate\r\n/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor  = powersave\r\n/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq  =   500000 [kHz]\r\n/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq  =  2700000 [kHz]\r\n\r\n/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver    = intel_pstate\r\n/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor  = powersave\r\n/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq  =   500000 [kHz]\r\n/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq  =  2700000 [kHz]\r\n\r\n/sys/devices/system/cpu/intel_pstate/min_perf_pct      = 18\r\n/sys/devices/system/cpu/intel_pstate/max_perf_pct      = 100\r\n/sys/devices/system/cpu/intel_pstate/no_turbo          = 1\r\n\r\nx86_energy_perf_policy.cpu0                            = powersave\r\nx86_energy_perf_policy.cpu1                            = powersave\r\nx86_energy_perf_policy.cpu2                            = powersave\r\nx86_energy_perf_policy.cpu3                            = powersave\r\n\r\n/proc/sys/kernel/nmi_watchdog                          = 0\r\n\r\n+++ Undervolting\r\nPHC kernel not available.\r\n\r\n+++ Temperatures\r\nCPU temp               =    45 [°C]\r\n/proc/acpi/ibm/fan     =  2565 [/min]\r\n\r\n+++ File System\r\n/proc/sys/vm/laptop_mode               =     2\r\n/proc/sys/vm/dirty_writeback_centisecs =  6000\r\n/proc/sys/vm/dirty_expire_centisecs    =  6000\r\n/proc/sys/vm/dirty_ratio               =    20\r\n/proc/sys/vm/dirty_background_ratio    =    10\r\n/proc/sys/fs/xfs/age_buffer_centisecs  = (not available)\r\n/proc/sys/fs/xfs/xfssyncd_centisecs    = (not available)\r\n/proc/sys/fs/xfs/xfsbufd_centisecs     = (not available)\r\n\r\n+++ Storage Devices\r\n/dev/sda:\r\n          Model     = Samsung SSD 850 EVO 250GB               \r\n          Firmware  = EMT01B6Q\r\n          APM Level = none/disabled\r\n          Status    = active/idle\r\n          TRIM      = supported\r\n          Scheduler = cfq\r\n\r\n        SMART info:\r\n            5 Reallocated_Sector_Ct     =        0 \r\n            9 Power_On_Hours            =      856 [h]\r\n          177 Wear_Leveling_Count       =       99 [%]\r\n          179 Used_Rsvd_Blk_Cnt_Tot     =        0 \r\n          190 Airflow_Temperature_Cel   =       32 [°C]\r\n          241 Total_LBAs_Written        =    1.333 [TB]\r\n\r\n\r\n+++ SATA Aggressive Link Power Management\r\n/sys/class/scsi_host/host0/link_power_management_policy  = min_power\r\n/sys/class/scsi_host/host1/link_power_management_policy  = min_power\r\n/sys/class/scsi_host/host2/link_power_management_policy  = min_power\r\n\r\n+++ PCIe Active State Power Management\r\n/sys/module/pcie_aspm/parameters/policy = default (using bios preferences)\r\n\r\n+++ Intel Graphics\r\n/sys/module/i915/parameters/powersave        =  1 (enabled)\r\n/sys/module/i915/parameters/enable_rc6       =  1 (enabled)\r\n/sys/module/i915/parameters/enable_fbc       = -1 (use per-chip default)\r\n/sys/module/i915/parameters/lvds_downclock   =  0 (disabled)\r\n/sys/module/i915/parameters/semaphores       = -1 (use per-chip default)\r\n\r\n+++ Wireless\r\nbluetooth = on\r\nwifi      = on\r\nwwan      = none (no device)\r\n\r\nhci0(btusb)         : not connected\r\nwlp3s0(iwlwifi)     : connected, power management = on\r\n\r\n+++ Audio\r\n/sys/module/snd_hda_intel/parameters/power_save            = 1\r\n/sys/module/snd_hda_intel/parameters/power_save_controller = Y\r\n\r\n+++ Docks and Device Bays\r\n/sys/devices/platform/dock.0: battery_bay   = battery present\r\n\r\n+++ Runtime Power Management\r\ndevice classes   = all\r\ndevice blacklist = (not configured)\r\ndriver blacklist = radeon nouveau\r\n\r\n/sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000, Host bridge, no driver)\r\n/sys/bus/pci/devices/0000:00:02.0/power/control = auto (0x030000, VGA compatible controller, i915)\r\n/sys/bus/pci/devices/0000:00:03.0/power/control = auto (0x040300, Audio device, snd_hda_intel)\r\n/sys/bus/pci/devices/0000:00:14.0/power/control = auto (0x0c0330, USB controller, xhci_hcd)\r\n/sys/bus/pci/devices/0000:00:16.0/power/control = auto (0x078000, Communication controller, mei_me)\r\n/sys/bus/pci/devices/0000:00:19.0/power/control = auto (0x020000, Ethernet controller, e1000e)\r\n/sys/bus/pci/devices/0000:00:1b.0/power/control = auto (0x040300, Audio device, snd_hda_intel)\r\n/sys/bus/pci/devices/0000:00:1c.0/power/control = auto (0x060400, PCI bridge, pcieport)\r\n/sys/bus/pci/devices/0000:00:1c.1/power/control = auto (0x060400, PCI bridge, pcieport)\r\n/sys/bus/pci/devices/0000:00:1d.0/power/control = auto (0x0c0320, USB controller, ehci-pci)\r\n/sys/bus/pci/devices/0000:00:1f.0/power/control = auto (0x060100, ISA bridge, lpc_ich)\r\n/sys/bus/pci/devices/0000:00:1f.2/power/control = auto (0x010601, SATA controller, ahci)\r\n/sys/bus/pci/devices/0000:00:1f.3/power/control = auto (0x0c0500, SMBus, i801_smbus)\r\n/sys/bus/pci/devices/0000:00:1f.6/power/control = auto (0x118000, Signal processing controller, no driver)\r\n/sys/bus/pci/devices/0000:02:00.0/power/control = auto (0xff0000, Unassigned class [ff00], rtsx_pci)\r\n/sys/bus/pci/devices/0000:03:00.0/power/control = auto (0x028000, Network controller, iwlwifi)\r\n\r\n+++ USB\r\nautosuspend        = enabled\r\ndevice whitelist   = (not configured)\r\ndevice blacklist   = (not configured)\r\ndriver blacklist   = usbhid\r\nwwan blacklist     = enabled (cdc_acm cdc_wdm cdc_ether hso qcserial sierra)\r\n\r\nBus 001 Device 002 ID 8087:8001 control = auto, autosuspend_delay_ms =     0 -- Intel Corp.  (hub)\r\nBus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =     0 -- Linux Foundation 2.0 root hub (hub)\r\nBus 003 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =     0 -- Linux Foundation 3.0 root hub (hub)\r\nBus 002 Device 005 ID 04ca:703c control = auto, autosuspend_delay_ms =  2000 -- Lite-On Technology Corp.  (uvcvideo)\r\nBus 002 Device 004 ID 8087:0a2a control = auto, autosuspend_delay_ms =  2000 -- Intel Corp.  (btusb)\r\nBus 002 Device 003 ID 138a:0017 control = auto, autosuspend_delay_ms =  2000 -- Validity Sensors, Inc. Fingerprint Reader (no driver)\r\nBus 002 Device 002 ID 058f:9540 control = auto, autosuspend_delay_ms =  2000 -- Alcor Micro Corp. AU9540 Smartcard Reader (no driver)\r\nBus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =     0 -- Linux Foundation 2.0 root hub (hub)\r\n\r\n+++ ThinkPad Extended Battery Functions\r\ntp-smapi   = inactive (kernel module 'tp_smapi' not installed)\r\ntpacpi-bat = inactive (kernel module 'acpi_call' not installed)\r\n\r\n+++ Battery Status\r\n/sys/class/power_supply/BAT0/manufacturer                   = SANYO\r\n/sys/class/power_supply/BAT0/model_name                     = 45N1773\r\n/sys/class/power_supply/BAT0/cycle_count                    = (not supported)\r\n/sys/class/power_supply/BAT0/energy_full_design             =  23200 [mWh]\r\n/sys/class/power_supply/BAT0/energy_full                    =  18270 [mWh]\r\n/sys/class/power_supply/BAT0/energy_now                     =  14540 [mWh]\r\n/sys/class/power_supply/BAT0/power_now                      =      0 [mW]\r\n/sys/class/power_supply/BAT0/status                         = Unknown\r\n\r\n+++ Battery Status\r\n/sys/class/power_supply/BAT1/manufacturer                   = SANYO\r\n/sys/class/power_supply/BAT1/model_name                     = 45N1775\r\n/sys/class/power_supply/BAT1/cycle_count                    = (not supported)\r\n/sys/class/power_supply/BAT1/energy_full_design             =  23200 [mWh]\r\n/sys/class/power_supply/BAT1/energy_full                    =  20540 [mWh]\r\n/sys/class/power_supply/BAT1/energy_now                     =  11980 [mWh]\r\n/sys/class/power_supply/BAT1/power_now                      =  26500 [mW]\r\n/sys/class/power_supply/BAT1/status                         = Charging\r\n\r\n+++ Suggestions\r\n* Install tp-smapi kernel modules for ThinkPad advanced battery functions\r\n"},"comment":{"url":"https://api.github.com/repos/linrunner/TLP/issues/comments/119001190","html_url":"https://github.com/linrunner/TLP/issues/147#issuecomment-119001190","issue_url":"https://api.github.com/repos/linrunner/TLP/issues/147","id":119001190,"user":{"login":"linrunner","id":794121,"avatar_url":"https://avatars.githubusercontent.com/u/794121?v=3","gravatar_id":"","url":"https://api.github.com/users/linrunner","html_url":"https://github.com/linrunner","followers_url":"https://api.github.com/users/linrunner/followers","following_url":"https://api.github.com/users/linrunner/following{/other_user}","gists_url":"https://api.github.com/users/linrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/linrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linrunner/subscriptions","organizations_url":"https://api.github.com/users/linrunner/orgs","repos_url":"https://api.github.com/users/linrunner/repos","events_url":"https://api.github.com/users/linrunner/events{/privacy}","received_events_url":"https://api.github.com/users/linrunner/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T21:19:35Z","updated_at":"2015-07-06T21:19:35Z","body":"OK, this was the easy part. The difficult part will be to find out why the subshell fails ... :("}}