Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1984  / 3 Years ago, thu, october 21, 2021, 8:55:54

My battery remains for about 2.5 hours on ubuntu, but in Windows it remains for about 7 hours, how to expand battery life on ubuntu ?, or how to turn off Nvidia GPU ?


My laptop: Lenovo Legion 5 15ACH6, AMD Ryzen 7 5800H, NVIDIA RTX 3050 Ti


More From » nvidia

 Answers
1

Note: I am using Ubuntu 22.04


I have the exact same model (15ACH6) with the same specs. I searched a lot, and finally found this tool which successfully disabled the Nvidia GPU for me: https://github.com/geminis3/EnvyControl


For it to work, first install the proprietary Nvidia drivers. Then, reboot. Then, run the following 2 commands:


sudo prime-select on-demand 
sudo systemctl disable gpu-manager.service #to prevent gpu-manager from interfering.

Now, clone the repo and run the following command:


sudo python3 envycontrol.py -s integrated
sudo reboot #And then reboot

You will have your Nvidia GPU disabled. You can verify it using this command:


lspci -nn | grep -E 'VGA|Display' #It shouldn't show Nvidia

However, note that, even after disabling Nvidia GPU, my power consumption didn't decrease a lot. From 20W, it came down to about 15W. I measured it using powertop. Let me know how much it reduces for you.


[#757] Thursday, October 21, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
huovie

Total Points: 234
Total Questions: 99
Total Answers: 105

Location: Central African Republic
Member since Sun, Feb 26, 2023
1 Year ago
huovie questions
Mon, Aug 2, 21, 01:46, 3 Years ago
Thu, Feb 2, 23, 10:58, 1 Year ago
Sun, Dec 5, 21, 23:57, 2 Years ago
;