Matebook Pro (2019) battery drain issue in deep sleep(possibly due to nvidia videocard)

Hi,

can someone please suggest a possible solution to battery drain issue that I have when going in Suspend mode. It drains the battery to like 20% overnight from full.

I’ve switched to deep sleep, but even after suspending the fan is still on and laptop is hot.

I have a feeling it’s related to Nvidia, as I’ve googled around and there is a similar issue with laptops that have Intel/Nvidia videocards.

I ended up installing Optimus manager, but the issue kind of still there (I don’t really need nvidia, intel works fine for my needs).

Let me know if you’ve seen anything like that.
Windows didn’t have this problem.

System:
  Kernel: 5.15.12-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=7bce4791-9e31-40dd-bcb1-c013933a2c8f rw quiet apparmor=1
    security=apparmor udev.log_priority=3 mem_sleep_default=deep
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1
    vt: 7 dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HUAWEI product: MACH-WX9 v: M14
    serial: <superuser required>
  Mobo: HUAWEI model: MACH-WX9-PCB v: M14 serial: <superuser required>
    UEFI: HUAWEI v: 1.28 date: 03/15/2019
Battery:
  ID-1: BAT0 charge: 39.1 Wh (80.1%) condition: 48.8/56.3 Wh (86.7%)
    volts: 7.9 min: 7.6 model: DYNAPACK HB4593R1ECW type: Li-ion
    serial: <filter> status: Discharging cycles: 218
Memory:
  RAM: total: 15.38 GiB used: 3.09 GiB (20.1%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-8550U bits: 64 type: MT MCP arch: Coffee Lake
    family: 6 model-id: 0x8E (142) stepping: 0xA (10) microcode: 0xEA
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 800 min/max: 400/4000 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800
    8: 800 bogomips: 32012
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon
    art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid
    cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est
    f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window
    hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm
    lm mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx
    pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36
    pti pts rdrand rdseed rdtscp rep_good sdbg sep sgx smap smep ss ssbd sse
    sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
    tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt
    xsaves xtopology xtpr
  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 mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Huawei driver: i915 v: kernel
    bus-ID: 00:02.0 chip-ID: 8086:5917 class-ID: 0300
  Device-2: NVIDIA GP108M [GeForce MX150] vendor: Huawei driver: nvidia
    v: 495.44 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1d12
    class-ID: 0302
  Device-3: Cheng Uei Precision Industry (Foxlink) HD Camera type: USB
    driver: uvcvideo bus-ID: 1-7:3 chip-ID: 05c8:03c0 class-ID: 0e02
  Display: x11 server: X.Org 1.21.1.2 compositor: xfwm4 v: 4.16.1 driver:
    loaded: modesetting display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 3000x2000 s-dpi: 96 s-size: 793x529mm (31.2x20.8")
    s-diag: 953mm (37.5")
  Monitor-1: eDP-1 res: 3000x2000 hz: 60 dpi: 260
    size: 293x196mm (11.5x7.7") diag: 353mm (13.9")
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2)
    v: 4.6 Mesa 21.3.2 direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Huawei
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.12-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.42 running: yes
Network:
  Device-1: Intel Wireless 8265 / 8275 vendor: Huawei driver: iwlwifi
    v: kernel bus-ID: 3c:00.0 chip-ID: 8086:24fd class-ID: 0280
  IF: wlp60s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-5:2 chip-ID: 8087:0a2b class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 476.94 GiB used: 40.48 GiB (8.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: LITE-ON model: CA3-8D512
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: C49640A
    temp: 32.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
    used: 40.48 GiB (8.6%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 7bce4791-9e31-40dd-bcb1-c013933a2c8f
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: NO_LABEL uuid: 6E9A-99A9
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-5:2 info: Intel Bluetooth wireless interface type: Bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 8087:0a2b class-ID: e001
  Device-2: 1-7:3 info: Cheng Uei Precision Industry (Foxlink) HD Camera
    type: Video driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s
    power: 500mA chip-ID: 05c8:03c0 class-ID: 0e02
  Hub-2: 2-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 41.0 C pch: 38.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 263 Uptime: 2h 39m wakeups: 265 Init: systemd v: 250
  tool: systemctl Compilers: gcc: 11.1.0 clang: 13.0.0 Packages: 1180
  pacman: 1177 lib: 331 flatpak: 0 snap: 3 Shell: Bash v: 5.1.12
  running-in: xfce4-terminal inxi: 3.3.12

Switching to Intel only in Optimus manager helps, there is no battery drain whatsoever.

but there is a drain on hybrid.

Maybe someone knows if there’s a fix for this.
Otherwise I’ll just use Intel only mode

thanks

Latest 5.16.2-1 kernel seem to fix the issue, or it’s a combination of kernel + optimus.

thanks

The safest path is

systemctl poweroff