Skip to content

Instantly share code, notes, and snippets.

@arseto
Created August 15, 2017 04:19
Show Gist options
  • Save arseto/db2e0c8d6101b5ece3f339daa429f3fc to your computer and use it in GitHub Desktop.
Save arseto/db2e0c8d6101b5ece3f339daa429f3fc to your computer and use it in GitHub Desktop.
TLP not charging with thinkpad X230 and docking connector
--- TLP 1.0 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
CPU_HWP_ON_AC=balance_performance
CPU_HWP_ON_BAT=balance_power
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
ENERGY_PERF_POLICY_ON_AC=performance
ENERGY_PERF_POLICY_ON_BAT=powersave
DISK_DEVICES="sda sdb"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power
AHCI_RUNTIME_PM_TIMEOUT=15
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
RADEON_DPM_STATE_ON_AC=performance
RADEON_DPM_STATE_ON_BAT=battery
RADEON_DPM_PERF_LEVEL_ON_AC=auto
RADEON_DPM_PERF_LEVEL_ON_BAT=auto
WIFI_PWR_ON_AC=off
WIFI_PWR_ON_BAT=on
WOL_DISABLE=Y
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_AC=0
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
USB_AUTOSUSPEND=1
USB_BLACKLIST_BTUSB=0
USB_BLACKLIST_PHONE=0
USB_BLACKLIST_WWAN=1
RESTORE_DEVICE_STATE_ON_STARTUP=0
START_CHARGE_THRESH_BAT0=80
STOP_CHARGE_THRESH_BAT0=100
+++ System Info
System = LENOVO ThinkPad X230 2325A65
BIOS = G2ET32WW (1.12 )
Release = "Arch Linux"
Kernel = 4.12.6-1-ARCH #1 SMP PREEMPT Sat Aug 12 09:16:22 CEST 2017 x86_64
/proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=42dfab38-9f51-42f1-9955-26713ff285b2 rw quiet
Init system = systemd
Boot mode = BIOS (CSM, Legacy)
+++ TLP Status
State = enabled
Last run = 11:02:59 AM, 746 sec(s) ago
Mode = AC
Power source = AC
+++ Processor
CPU model = Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 1200000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 3300000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 1200000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 3300000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 1200000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 3300000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 1200000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 3300000 [kHz]
/sys/devices/system/cpu/intel_pstate/min_perf_pct = 37 [%]
/sys/devices/system/cpu/intel_pstate/max_perf_pct = 100 [%]
/sys/devices/system/cpu/intel_pstate/no_turbo = 0
/sys/devices/system/cpu/intel_pstate/turbo_pct = 33 [%]
/sys/devices/system/cpu/intel_pstate/num_pstates = 22
x86_energy_perf_policy: program not installed.
/sys/module/workqueue/parameters/power_efficient = Y
/proc/sys/kernel/nmi_watchdog = 0
+++ Undervolting
PHC kernel not available.
+++ Temperatures
CPU temp = 59 [°C]
/proc/acpi/ibm/fan = 3770 [/min]
+++ File System
/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 = 20
/proc/sys/vm/dirty_background_ratio = 10
/proc/sys/fs/xfs/xfssyncd_centisecs = 1500
+++ Storage Devices
/dev/sda:
Model = Samsung SSD 850 EVO 250GB
Firmware = EMT02B6Q
APM Level = none/disabled
Status = active/idle
TRIM = supported
Scheduler = cfq
Runtime PM: control = on, autosuspend_delay = -1
SMART info:
5 Reallocated_Sector_Ct = 0
9 Power_On_Hours = 3033 [h]
12 Power_Cycle_Count = 1110
177 Wear_Leveling_Count = 99 [%]
179 Used_Rsvd_Blk_Cnt_Tot = 0
190 Airflow_Temperature_Cel = 39 [°C]
241 Total_LBAs_Written = 1.717 [TB]
+++ SATA Aggressive Link Power Management
/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
+++ AHCI Host Controller Runtime Power Management
/sys/bus/pci/devices/0000:00:1f.2/ata1/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata2/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata3/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata4/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata5/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata6/power/control = on
+++ Docks and Device Bays
/sys/devices/platform/dock.0: battery_bay = no battery
/sys/devices/platform/dock.1: ata_bay = no drive (or powered off)
/sys/devices/platform/dock.2: dock_station = docked
+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = default (using bios preferences)
+++ Intel Graphics
/sys/module/i915/parameters/enable_rc6 = 3 (enabled + deep)
/sys/module/i915/parameters/enable_dc = -1 (use per-chip default)
/sys/module/i915/parameters/enable_fbc = 0 (disabled)
/sys/module/i915/parameters/enable_psr = 0 (disabled)
/sys/module/i915/parameters/modeset = -1 (use per-chip default)
/sys/module/i915/parameters/semaphores = 1 (enabled)
+++ Wireless
bluetooth = none (no device)
wifi = on
wwan = none (no device)
wlp3s0(iwlwifi) : wifi, connected, power management = off
+++ Audio
/sys/module/snd_hda_intel/parameters/power_save = 0
/sys/module/snd_hda_intel/parameters/power_save_controller = N
+++ Runtime Power Management
Device blacklist = (not configured)
Driver blacklist = amdgpu nouveau nvidia radeon (default)
/sys/bus/pci/devices/0000:00:00.0/power/control = on (0x060000, Host bridge, ivb_uncore)
/sys/bus/pci/devices/0000:00:02.0/power/control = on (0x030000, VGA compatible controller, i915)
/sys/bus/pci/devices/0000:00:14.0/power/control = on (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:00:16.0/power/control = on (0x078000, Communication controller, mei_me)
/sys/bus/pci/devices/0000:00:16.3/power/control = on (0x070002, Serial controller, serial)
/sys/bus/pci/devices/0000:00:19.0/power/control = on (0x020000, Ethernet controller, e1000e)
/sys/bus/pci/devices/0000:00:1a.0/power/control = on (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:00:1b.0/power/control = on (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:00:1c.0/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.1/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.2/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1d.0/power/control = on (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:00:1f.0/power/control = on (0x060100, ISA bridge, lpc_ich)
/sys/bus/pci/devices/0000:00:1f.2/power/control = on (0x010601, SATA controller, ahci)
/sys/bus/pci/devices/0000:00:1f.3/power/control = on (0x0c0500, SMBus, i801_smbus)
/sys/bus/pci/devices/0000:02:00.0/power/control = on (0x088001, System peripheral, sdhci-pci)
/sys/bus/pci/devices/0000:03:00.0/power/control = on (0x028000, Network controller, iwlwifi)
+++ USB
Autosuspend = enabled
Device whitelist = (not configured)
Device blacklist = (not configured)
Bluetooth blacklist = disabled
Phone blacklist = disabled
WWAN blacklist = enabled
Bus 002 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 003 ID 5986:02d2 control = auto, autosuspend_delay_ms = 2000 -- Acer, Inc (uvcvideo)
Bus 001 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 003 Device 004 ID 046d:c31d control = on, autosuspend_delay_ms = 2000 -- Logitech, Inc. Media Keyboard K200 (usbhid)
Bus 003 Device 003 ID 046d:c016 control = on, autosuspend_delay_ms = 2000 -- Logitech, Inc. Optical Wheel Mouse (usbhid)
Bus 003 Device 002 ID 0424:2514 control = auto, autosuspend_delay_ms = 0 -- Standard Microsystems Corp. USB 2.0 Hub (hub)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
+++ ThinkPad Battery Features
tp-smapi = inactive (unsupported hardware)
tpacpi-bat = active
+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer = SANYO
/sys/class/power_supply/BAT0/model_name = 45N1023
/sys/class/power_supply/BAT0/cycle_count = (not supported)
/sys/class/power_supply/BAT0/energy_full_design = 62160 [mWh]
/sys/class/power_supply/BAT0/energy_full = 46690 [mWh]
/sys/class/power_supply/BAT0/energy_now = 15170 [mWh]
/sys/class/power_supply/BAT0/power_now = 0 [mW]
/sys/class/power_supply/BAT0/status = Charging
tpacpi-bat.BAT0.startThreshold = 80 [%]
tpacpi-bat.BAT0.stopThreshold = 100 [%]
tpacpi-bat.BAT0.forceDischarge = 0
Charge = 32.5 [%]
Capacity = 75.1 [%]
+++ Suggestions
* Install ethtool to disable Wake On LAN (WOL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment