On an optimus laptop with nvidia 545.29.06, gnome shell will not revert to iGPU after disconnecting from an external monitor. I only have nvidia ports, so it should be using reverse prime in hybrid mode. The effect is that if I undock my laptop, the power consumption will remain high. Reboot fixes the issue but it comes back if reconnect the laptop to a display. The problem does not exist in xorg - only Wayland. If run an app on nvidia without the external monitor, the card will go to ultra low power state after closing the app, so the issue is confined to external monitors.
os: pop-os 22.04
nvidia card: Quadro T2000
I check if nvidia is still active with:
cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_status
I have the same issue on my optimus notebook after updating to 545.29.06, my specs are:
Asus Zephyrus G14 2021
Fedora Silverblue 39
Linux: 6.6.2
Gnome-shell: 45.1
Nvidia GeFroce RTX3060 6GB VRAM
I remember there was similar issue with Gnome Triple buffering patch applied (!1441) on earlier driver versions (<545). Since external display with Nvidia GPU is working fine without lags on 545 (I can get stable 60fps on external display), maybe there is some regression in the newest driver.
I switched to Fedora 39 thinking maybe it was a cosmic/gnome 42 issue. No problems while I used 535. RPM fusion just released 545.29.06 and it is the same issue now. 6.6.2 kernel. 45.1 gnome.
So the problem likely persists across different distros, kernels and gnome versions.