You are not logged in.

#1 2020-06-22 15:32:13

victorbrca
Member
From: Toronto
Registered: 2017-09-11
Posts: 3
Website

Battery Issues on ThinkPad P1 Gen 2

Hello,

I'm trying to improve battery life on my ThinkPad laptop, but after adding the recommended configuration I still don't see any improvement. I just checked my battery consumption, and in 1 hour I went from 78% to 30% running on Intel graphics only (via optimus-prime).

What I have done so far:

1. Installed and configured TLP

TLP_ENABLE="1"
START_CHARGE_THRESH_BAT0="50"
STOP_CHARGE_THRESH_BAT0="80"
RESTORE_THRESHOLDS_ON_BAT="1"
TPSMAPI_ENABLE="0"

2- Installed 'Intel P-state and CPUFreq Manager' widget and have it running with default settings on 'Balance Power'

3- Configured prime offloading (as per PRIME Render Offload) and confirmed that it works when using 'Optimus Manager Qt' or either '__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia' or 'prime-run' when in hybrid mode

4- Configured some of the PCI-Express Runtime D3 (RTD3) Power Management (my understanding is that these settings are only applied in hybrid or Nvidia modes)

Intel mode

$ cat /sys/bus/pci/devices/0000\:01\:00.0/power/control
auto

/lib/udev/rules.d/80-nvidia-pm.rules

# Victor - June 16 2020
# See http://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/dynamicpowermanagement.html
# Additional commands listed in the page might need to be added to resolve issues


# Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind
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"

/etc/modprobe.d/nvidia.conf

# Enable DynamicPwerManagement
# http://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/dynamicpowermanagement.html
options nvidia "NVreg_DynamicPowerManagement=0x02"

/etc/modprobe.d/blacklist.conf

blacklist nouveau

And powertop shows wake-ups and firefox as the higher power consumption processes:

 Top 10 Power Consumers
Usage 	Events/s 	Category 	Description 	PW Estimate
1.9% 	735.3 	Timer 	tick_sched_timer 	2.93 W
3.8% 	389.4 	Process 	[PID 1611] /usr/lib/firefox/firefox --sm-client-id ##################### 	1.75 W
1.5% 	228.6 	Process 	[PID 1468] /usr/bin/kwin_x11 	980 mW
0.9% 	223.2 	Process 	[PID 1633] /usr/lib/firefox/firefox --sm-client-id ##################### 	897 mW
0.5% 	51.7 	Process 	[PID 1569] /usr/bin/pulseaudio --daemonize=no 	712 mW
4.3% 	91.9 	Process 	[PID 2172] /usr/lib/firefox/firefox -contentproc -childID 8 -isForBrowser -prefsLen 184 -prefMapSize 230616 -parentBuildID 2020 	434 mW
0.6% 	85.9 	Process 	[PID 2182] /usr/lib/firefox/firefox -contentproc -childID 8 -isForBrowser -prefsLen 184 -prefMapSize 230616 -parentBuildID 2020 	348 mW
18.9% 	8.1 	kWork 	intel_atomic_commit_work 	327 mW
4.7% 	63.3 	Process 	[PID 1903] /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 184 -prefMapSize 230616 -parentBuildID 2020 	324 mW
0.4% 	60.6 	Process 	[PID 1906] /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 184 -prefMapSize 230616 -parentBuildID 2020 	245 mW

Any help would be greatly appreciated.

Thanks,
Victor.


---------------------------------------------------------------------------------------
User 437407 with the Linux Counter

Offline

Board footer

Powered by FluxBB