Nvidia-prime not powering off the dGPU

Hi there,

This isn’t a support request but I just want to let the developers know that most of the time nvidia-prime (which provides prime-select command) package isn’t turning off the Nvidia dGPU found on hybrid/optimus/gaming laptops on intel/integrated profile, instead it just hides it from Xorg while the dGPU keeps draining battery and causing high idle temperatures.

It appears to be a well-known and “confirmed” issue as per several Launchpad bug reports:

On the other hand Ubuntu based distro Pop_OS! includes their own utility called system76-power which does the job correctly by completely turning off the Nvidia dGPU when integrated graphics mode is selected extending my laptop’s battery life and keeping temps lower than Windows nor any other Linux distro.

https://github.com/pop-os/system76-power

However I prefer original Ubuntu desktop over Pop :blush:

System specs:

Model: Acer Helios 300 2017 (G3-571)
CPU: i7-7700HQ
GPU: GTX1060 6GB
Ubuntu versions I tried: 20.04 / 20.10 / 21.04 (daily beta)

4 Likes

This is an issue that’s been fixed and regressed a number of times in the last couple of years. I see the same thing on my XPS 95600/i7-7700HW/GTX1050 to the point I’ve just uninstalled the nvidia drivers.

1 Like

Did you manage to fix this? Still a problem for me.

2 Likes

I created a tool for managing Nvidia Optimus graphics switching on Linux, the integrated mode actually turns off the Nvidia card by removing it from the PCI bus using Udev rules. There’s also nvidia and hybrid modes just like Ubuntu’s nvidia-prime.

It should work on Debian and Ubuntu derivatives (automatic initramfs rebuilding is included) as well although I currently use Arch Linux.

https://github.com/geminis3/envycontrol

2 Likes