[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
More info: * ubuntu-driver install did not install nvidia-dkms-440 (had to be installed by hand) * Upon boot, /sys/bus/pci/devices/:01:00.0/power/control is set to `auto`, but the GPU is powered on. Setting it to `on` then to `auto` again powers down the GPU. * This temporary fix above survives suspend/resume -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
I'm on a Dell XPS 9560, i7-7700HQ, GP107M (GTX 1050 mobile). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
The path to this issue for me is different. I installed this laptop originally with 19.04 and nvidia-435 (possibly post installation?) and all was well upon upgrade to 19.10 and later on to 20.04. Upgrading to 20.04 kept the nvidia-435 driver and this bug did not manifest. Today I upgraded the driver to nvidia-440 via `ubuntu-driver install` and the issue started happening - the gpu is still powered up even though I rebooted into intel. I switched back and forth using `prime- select`. I tried reverting back to nvidia-435 to no avail. I can apply the "fix" via powertop (it does `echo 'auto' > '/sys/bus/pci/devices/:01:00.0/power/control';`) and I can confirm this shuts down the GPU properly and cuts power usage dramatically, until next boot. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
Update: I have reinstalled Kubuntu on the same laptop, but did not click "Install third-party software for graphics and WiFi hardware and additional media formats" during installation. I then manually added the proprietary Nvidia 390 driver after installation. When on prime-select intel, powertop now reports a discharge of 2.7 W, suggesting that the nvidia card is now turned off. The workaround was successful, indicating that the bug is in the installation process and not prime-select itself. Thanks for your help, Rouet and matlit! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
I can confirm this bug. I am currently on Kubuntu 20.04, on a Dell XPS L502x. I am using the 390xx Nvidia driver and the 8086:0116 Intel driver. My 'nvidia-prime' package is 0.8.14. I checked "Install third- party software for graphics and WiFi hardware and additional media formats" during installation, and even when I use prime-select to switch to my Intel drivers, my power consumption is still around 22 W. I have not tried reinstalling Kubuntu without installing third-party drivers at startup, and then manually adding them after the installation is complete. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
I suspect this is LP: #1875339 . The ubuntu-drivers-common in the image doesn't have the fix that version 1:0.8.1.1 (which you are probably using when installing the drivers manually) has. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
- Install WITH "Install third-party software for graphics and WiFi hardware and additional media formats" 1. Open "Nvidia X Server Setting" 2. Changing card in "Prime Profiles" from "NVIDIA (Performance Mode)" to "Intel (Power Saving Mode)" 3. Reboot 4. After start Nvidia card STILL active (check by led light - orange - nvidia ACTIVE and more power consumption) - Install WITHOUT "Install third-party software for graphics and WiFi hardware and additional media formats" 1. Open "Additional drivers" 2. Click "Using NVIDIA driver metapackage from nvidia-driver-440 (proprietary, tested)" 3. Apply Changes, password 4. Reboot 5. Open "Nvidia X Server Setting" 6. Changing card in "Prime Profiles" from "NVIDIA (Performance Mode)" to "Intel (Power Saving Mode)" 7. Reboot 8. After start Nvidia card NOT active (check by led light - blue - nvidia INACTIVE and less power consumption) If any more info need please ask. I have separate partition on disk if there is need to do any test with newly installed Ubuntu. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
Thanks for the comments, the new ones speaking about the installer are a bit confusing. Could you describe exactly what issue you had and what are the difference by eabling the driver post installation? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
I also confirm that clean install of Ubuntu without option to install proprietary driver works OK. This is problem with installer option. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
I'm sorry for spamming this bug report, I should've make all my tests before posting anything. I made a clean install today but, this time, without installing the proprietary drivers during setup. I installed the Nvidia driver after the first batch of updates, via the Additional Drivers application. And I can't reproduce this issue anymore. It's working as it should. It unfortunately means that installing the proprietary drivers during setup isn't working well. For instance, I had to manually install the nvidia-dkms-440 package, which was missing. I can't say for sure that this bug is also caused by a faulty Nvidia driver installation, but it looks like it. If someone can tell me where I can report this issue, I'll gladly make it (if it hasn't been reported yet). Once again, sorry for spamming this bug report. Feel free to delete some of my comments, as I don't feel they're really useful. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
I managed to resolve this issue _on my laptop_ by manually editing /usr/bin/prime-select at lines 161, 162. Original: ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03", TEST=="power/control", ATTR{power/control}="on" ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="on"''' Modified: ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03", TEST=="power/control", ATTR{power/control}="auto" ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="auto"''' I might be wrong (I probably am, but well), but if I understand correctly, when Performance or On-demand mode is selected, Runtime PM is set to "auto", and when Power Saving mode is selected, Runtime PM is set to "on". Which means, once again if I understand correctly, that the Nvidia GPU if "forced" to be active and not suspended, when in power saving mode. Anyway, now, when I run "sudo cat /sys/bus/pci/devices/:01:00.0/power/runtime_status" it returns "Suspended" and my power consumption is around 6W at idle. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
(Sorry, I missclicked and couldn't find a way to edit/merge my comments) After trying with kernel 5.6, it still don't work as intended despite Powertop reports it now as Good. Power consumption is still high (around 12W at idle), and "sudo cat /sys/bus/pci/devices/:01:00.0/power/runtime_status" returns "active". I'll continue investigating a bit more, but ultimately I need my production PC to just work and cannot tweak, as much as I love doing it, indefinitely, haha! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
The workaround didn't work after shutting down my laptop. But, after digging a bit, I found a news on Phoronix ( https://www.phoronix.com/scan.php?page=news_item=Linux-5.5-dGPU-Sound-Bind-Power ) that gave me the idea to try with kernel 5.6. This one, to be more specific: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.11/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: nvidia-prime (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1877727] Re: Nvidia dGPU active despite prime-select set to Intel card
Same issue here with an Intel Core i5-7200U and an NVIDIA Geforce GTX 950M. Had to use the same workaround with Powertop and power consumption went from 12W to 6W after. It kept working after restarting, though. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877727 Title: Nvidia dGPU active despite prime-select set to Intel card To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1877727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs