My laptop is a Dell XPS 9530, running Ubuntu 26.04. I recently noticed any Gnome/GTK4 app will power up my RTX 4070 (laptop) dGPU and keep it powered as long as the app remains open.
I tried with Files, ptyxis, the defaulkt text editor. watch -n1 cat /sys/class/drm/card*/device/power_state shows my device going from D3cold to D0. powertop shows raised poser use (from 7w to 20+w.
This drains my battery pretty fast.
Here’s my bug report on launchpad: Bug #2150358 “GTK4 apps use dedicated Nvidia graphics card” : Bugs : gtk4 package : Ubuntu
I didn’t find an upstream tracker for this, seems like it could be an NVIDIA driver issue.