Excessive power consumption in sleep mode since recent updates

Since the last major update the laptop consumption during sleep mode has increased a fair bit (going from 20% to 30% in 24h or so). The USB devices hooked on the USB now remain powered despite the bios specifying that power to USB ports should be turned off when sleeping. That’s also a new behaviour since the update.

My inxi -Fza output:

       System:    Kernel: 5.8.18-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
               parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 root=UUID=4fc9ec4c-2db3-4009-89d9-131f97cbc022 rw quiet 
               resume=UUID=12be5ddb-10e3-4ad8-ae1e-164a24687f25 apparmor=1 security=apparmor sysrq_always_enabled=1 
               Desktop: KDE Plasma 5.20.3 tk: Qt 5.15.1 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
    Machine:   Type: Laptop System: SAMSUNG product: 700Z3C/700Z5C v: 0.1 serial: <filter> Chassis: type: 9 v: 0.1 
               serial: <filter> 
               Mobo: SAMSUNG model: 700Z3C/700Z5C v: FAB1 serial: <filter> UEFI [Legacy]: Phoenix v: P02AAG date: 04/26/2012 
    Battery:   ID-1: BAT1 charge: 41.4 Wh condition: 51.8/65.1 Wh (80%) volts: 15.7/14.8 model: SAMSUNG Electronics type: Li-ion 
               serial: N/A status: Unknown 
    CPU:       Info: Dual Core model: Intel Core i5-3210M bits: 64 type: MT MCP arch: Ivy Bridge family: 6 model-id: 3A (58) 
               stepping: 9 microcode: 21 L2 cache: 3072 KiB 
               flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19963 
               Speed: 1358 MHz min/max: 1200/3100 MHz Core speeds (MHz): 1: 1686 2: 1892 3: 2102 4: 1707 
               Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
               Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
               Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
               Type: meltdown mitigation: PTI 
               Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
               Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
               Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling 
               Type: srbds status: Vulnerable: No microcode 
               Type: tsx_async_abort status: Not affected 
    Graphics:  Device-1: Intel 3rd Gen Core processor Graphics vendor: Samsung Co driver: i915 v: kernel bus ID: 00:02.0 
               chip ID: 8086:0166 
               Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] vendor: Samsung Co driver: N/A 
               alternate: nouveau bus ID: 01:00.0 chip ID: 10de:1140 
               Device-3: Silicon Motion WebCam SC-13HDL11431N type: USB driver: uvcvideo bus ID: 2-1.4:4 chip ID: 2232:1018 
               Display: x11 server: X.Org 1.20.9 compositor: kwin_x11 driver: modesetting alternate: fbdev,intel,vesa 
               display ID: :0 screens: 1 
               Screen-1: 0 s-res: 3520x1080 s-dpi: 96 s-size: 928x285mm (36.5x11.2") s-diag: 971mm (38.2") 
               Monitor-1: LVDS-1 res: 1600x900 hz: 60 
               Monitor-2: HDMI-1 res: 1920x1080 hz: 60 dpi: 96 size: 509x286mm (20.0x11.3") diag: 584mm (23") 
               OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) v: 4.2 Mesa 20.2.2 compat-v: 3.0 direct render: Yes 
    Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Samsung Co driver: snd_hda_intel v: kernel 
               bus ID: 00:1b.0 chip ID: 8086:1e20 
               Sound Server: ALSA v: k5.8.18-1-MANJARO 
    Network:   Device-1: Intel Centrino Advanced-N 6235 driver: iwlwifi v: kernel port: 3000 bus ID: 02:00.0 chip ID: 8086:088e 
               IF: wlp2s0 state: up mac: <filter> 
               Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Samsung Co driver: N/A modules: r8169 
               port: 2000 bus ID: 03:00.0 chip ID: 10ec:8168 
    Drives:    Local Storage: total: 938.98 GiB used: 590.15 GiB (62.9%) 
               SMART Message: Unable to run smartctl. Root privileges required. 
               ID-1: /dev/sda vendor: Seagate model: ST1000LM024 HN-M101MBB size: 931.51 GiB block size: physical: 4096 B 
               logical: 512 B speed: 3.0 Gb/s rotation: 5400 rpm serial: <filter> rev: 0002 scheme: MBR 
               ID-2: /dev/sdb vendor: SanDisk model: iSSD P4 8GB size: 7.46 GiB block size: physical: 512 B logical: 512 B 
               speed: 3.0 Gb/s serial: <filter> rev: 9.14 scheme: MBR 
    Partition: ID-1: / raw size: 195.31 GiB size: 191.25 GiB (97.92%) used: 132.25 GiB (69.1%) fs: ext4 dev: /dev/sda3 
    Swap:      Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
               ID-1: swap-1 type: partition size: 7.72 GiB used: 1.79 GiB (23.1%) priority: -2 dev: /dev/sda8 
    Sensors:   System Temperatures: cpu: 82.0 C mobo: 29.8 C 
               Fan Speeds (RPM): N/A 
    Info:      Processes: 257 Uptime: 9d 5h 34m Memory: 7.56 GiB used: 5.04 GiB (66.7%) Init: systemd v: 246 Compilers: 
               gcc: 10.2.0 alt: 8 clang: 11.0.0 Packages: pacman: 1974 lib: 467 flatpak: 0 Shell: Bash v: 5.0.18 
               running in: konsole inxi: 3.1.08
  1. 5.8 is EOL. Switch to 5.9 or 5.4 LTS instead.

  2. In the future, when providing code/output, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text so that the output looks like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    

    instead of like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    (as that makes both our lives much easier)

:+1:

Thanks for the tips.
Sadly 5.4 doesn’t sort the issue.
Quite annoying as now if I don’t turn off the laptop or leave the power on over the weekend it crashes.

Hello @sebsco :wink:

  1. By sleep mode you mean suspend or hibernation?
  2. Is tlp running? systemctl status tlp
  3. Maybe check /etc/tlp.conf for some tweaks for powersaving.
1 Like

Hi @megavolt
I mean suspend.
tlp is running, interestingly today the battery charge threshold is also being ignored. Not sure if it is because I switched to 5.4 kernel.
I can see the battery thresholds are effectively not set in tlp.conf so I might be able to resolve that but I can’t see anything obvious that would leave the USB power on during suspend. Could have missed it obviously.
Is tlp a new thing or would have changed in the last few weeks?

No…

Did you also install linux54-acpi_call ? Maybe necessary for battery charge threshold.

Maybe USB devices are plugged in? In that case it will not turn off.

Battery is back to charging to 80% so not sure what happened as I didn’t change anything…

My USB hub is plugged in the laptop even when in suspend mode and it would always turn off when the laptop enters suspend mode. But from recently it now stays on instead, so something has changed somewhere. :frowning: