Huge Battery Consumption XFCE

Hi,

I have just installed Manjaro and I have noticed a great battery consumption. An average of 3 hours in Windows are less than 1 hour in Manjaro. What can I do?

acpi -i
Battery 0: Discharging, 74%, 00:36:45 remaining
Battery 0: design capacity 3650 mAh, last full capacity 774 mAh = 21%

Thanks in advance

Hello @Mirawara :wink:

There is TLP for this use case for the power managment: https://wiki.archlinux.org/index.php/TLP

Install the UI:

pamac install tlpui

and run it as root. It loads the file /etc/tlp.conf and makes it more comfortable to adjuste the powersaving settings. Of course you can also edit the file directly.

Also if you own a thinkpad, then install this:

sudo pamac install linux510-acpi_call

this one is compiled for kernel 5.10

I would also recommend to have a look into the arch wiki:

https://wiki.archlinux.org/index.php/Power_management#Power_saving

https://wiki.archlinux.org/index.php/CPU_frequency_scaling

Thanks, but nothing has changed :frowning:

can you report

inxi -Fza
sudo cpupower frequency-info
System:
  Kernel: 5.10.26-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=4cd46679-433f-4269-a6c7-3e61077022fa rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm4 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X571GT_X571GT 
  v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: X571GT v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: X571GT.308 date: 12/17/2020 
Battery:
  ID-1: BAT1 charge: 10.0 Wh (95.2%) condition: 10.5/42.3 Wh (24.9%) 
  volts: 11.2 min: 11.6 model: ASUS A32-K55 type: Li-ion serial: N/A 
  status: Discharging 
CPU:
  Info: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 9E (158) stepping: A (10) 
  microcode: DE cache: L2: 12 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 62431 
  Speed: 800 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 7: 800 8: 801 9: 800 10: 800 11: 800 12: 800 
  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 630 vendor: ASUSTeK driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300 
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: ASUSTeK 
  driver: nouveau v: kernel bus-ID: 01:00.0 chip-ID: 10de:1f91 
  class-ID: 0302 
  Device-3: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo 
  bus-ID: 1-7:4 chip-ID: 13d3:56a8 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.10 driver: 
  loaded: intel,modesetting,nouveau alternate: fbdev,nv,vesa 
  display-ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP1 res: 1920x1080 dpi: 143 size: 340x190mm (13.4x7.5") 
  diag: 389mm (15.3") 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.0.1 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel alternate: snd_soc_skl,snd_sof_pci bus-ID: 00:1f.3 
  chip-ID: 8086:a348 class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.26-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.24 running: no 
Network:
  Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi 
  v: kernel port: 5000 bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280 
  IF: wlo1 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: 3000 bus-ID: 03:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp3s0 state: down mac: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB 
  driver: btusb v: 0.8 bus-ID: 1-14:5 chip-ID: 8087:0aaa class-ID: e001 
  Report: This feature requires one of these tools: hciconfig/bt-adapter 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 port: 5060 bus-ID: 00:17.0 chip-ID: 8086.282a rev: 10 
  class-ID: 0104 
Drives:
  Local Storage: total: 1.38 TiB used: 45.85 GiB (3.3%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKNW512G8 
  size: 476.94 GiB block-size: physical: 512 B logical: 512 B 
  speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> rev: 004C 
  temp: 25.9 C scheme: GPT 
  ID-2: /dev/sda maj-min: 8:0 vendor: Toshiba model: MQ04ABF100 
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B 
  speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> rev: 0J scheme: GPT 
Partition:
  ID-1: / raw-size: 233.5 GiB size: 228.77 GiB (97.98%) 
  used: 45.81 GiB (20.0%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5 
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) 
  used: 36.9 MiB (38.4%) fs: vfat dev: /dev/nvme0n1p2 maj-min: 259:2 
Swap:
  Alert: No Swap data was found. 
Sensors:
  System Temperatures: cpu: 30.0 C mobo: 27.8 C gpu: nouveau temp: 25.0 C 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 323 Uptime: 2m wakeups: 1 Memory: 15.49 GiB 
  used: 1.8 GiB (11.6%) Init: systemd v: 247 tool: systemctl Compilers: 
  gcc: 10.2.0 Packages: 1103 pacman: 1097 lib: 302 flatpak: 0 snap: 6 
  Shell: Bash v: 5.1.0 running-in: xfce4-terminal inxi: 3.3.03 
[sudo] password di lorenzo: 
analisi della CPU 0:
  driver: intel_pstate
  CPU che operano alla stessa frequenza hardware: 0
  CPU che è necessario siano coordinate dal software: 0
  latenza massima durante la transizione:  Cannot determine or is not supported.
  limiti hardware: 800 MHz - 4.50 GHz
  gestori disponibili: performance powersave
  gestore attuale: la frequenza deve mantenersi tra 800 MHz e 4.50 GHz.
                   Il gestore "powersave" può decidere quale velocità usare
                  in questo intervallo.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 4.00 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes

Sorry it is in italian

I guess it is a nvidia gpu to blame. Maybe this can help.

Thanks, can I disable nvidia gpu and use uhd graphics?

You can try to turn off the NVIDIA card in BIOS. But I think that a better idea will install non-free drivers and create a file named 80-nvidia-pm.rules in /lib/udev/rules.d/ directory. Edit this file with your favourite text editor and enter there this text:

ACTION==“add”, SUBSYSTEM==“pci”, ATTR{vendor}==“0x10de”, ATTR{class}==“0x0c0330”, ATTR{remove}=“1”

ACTION==“add”, SUBSYSTEM==“pci”, ATTR{vendor}==“0x10de”, ATTR{class}==“0x0c8000”, ATTR{remove}=“1”

ACTION==“add”, SUBSYSTEM==“pci”, ATTR{vendor}==“0x10de”, ATTR{class}==“0x040300”, ATTR{remove}=“1”

ACTION==“bind”, SUBSYSTEM==“pci”, ATTR{vendor}==“0x10de”, ATTR{class}==“0x030000”, TEST==“power/control”, ATTR{power/control}=“auto”
ACTION==“bind”, SUBSYSTEM==“pci”, ATTR{vendor}==“0x10de”, ATTR{class}==“0x030200”, TEST==“power/control”, ATTR{power/control}=“auto”

ACTION==“unbind”, SUBSYSTEM==“pci”, ATTR{vendor}==“0x10de”, ATTR{class}==“0x030000”, TEST==“power/control”, ATTR{power/control}=“on”
ACTION==“unbind”, SUBSYSTEM==“pci”, ATTR{vendor}==“0x10de”, ATTR{class}==“0x030200”, TEST==“power/control”, ATTR{power/control}=“on”

Next, you should edit file in /etc/modprobe.d/nvidia.conf and write this text:

options nvidia "NVreg_DynamicPowerManagement=0x02"

Then reboot and everything should be fine.

I have installed optimus-manager-qt where I can switch the GPU’s. With Intel UHD it’s a bit better but still bad. Any other advices?