ack. Is yours the "ubuntu" session? i.e. auto-detection, the default, not "ubuntu-xorg" which is manually selecting "Ubuntu on Xorg" from gdm. Check $DESKTOP_SESSION. I can confirm that if I pick ubuntu-xorg then nvidia-smi looks like yours.
I see from `lsmod` that nvidia is loaded - apparently that's not enough to get it to be used though. I would have expected the udev rule (61-gdm.rules) to have fired here and caused gdm-disable-wayland to run, so that I got Xorg and things running on the nvidia GPU; is that a valid expectation? On Tue, Jun 01, 2021 at 02:22:34PM -0000, Alberto Milone wrote: > I don't get that at all (see the attached screenshot). > > Detection seems to work well here: > > giu 01 16:05:52 dell-g7 systemd[1725]: Starting GNOME Shell on Wayland... > giu 01 16:05:52 dell-g7 systemd[1725]: Starting GNOME Shell on X11... > giu 01 16:05:52 dell-g7 systemd[1725]: > app-gnome-gnome\x2dkeyring\x2dpkcs11-2001.scope: Succeeded. > giu 01 16:05:52 dell-g7 systemd[1725]: [email protected]: > Control process exited, code=exited, status=2/INVALIDARGUMENT > giu 01 16:05:52 dell-g7 systemd[1725]: [email protected]: > Skipped due to 'exec-condition'. > giu 01 16:05:52 dell-g7 systemd[1725]: Condition check resulted in GNOME > Shell on Wayland being skipped. > > ** Attachment added: "Screenshot from 2021-06-01 16-08-04.png" > > https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1925238/+attachment/5501675/+files/Screenshot%20from%202021-06-01%2016-08-04.png > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1925238 > > Title: > [nvidia-prime] switches between xorg and wayland session > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1925238/+subscriptions -- Iain Lane [ [email protected] ] Debian Developer [ [email protected] ] Ubuntu Developer [ [email protected] ] -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to ubuntu-drivers-common in Ubuntu. https://bugs.launchpad.net/bugs/1925238 Title: [nvidia-prime] switches between xorg and wayland session Status in ubuntu-drivers-common package in Ubuntu: New Status in ubuntu-drivers-common source package in Hirsute: New Status in ubuntu-drivers-common source package in Impish: New Bug description: I have noticed this on a hirsute install from today's RC media (20210420) with ubuntu-drivers-common 1:0.8.9.1. The first boot is always xorg, and nvidia mode is selected. After that reboots are *usually* wayland, but sometimes they are xorg too. Performance mode is selected in nvidia-settings, which is supposed to mean nvidia & therefore xorg but it's not working. Selecting it explicitly doesn't help either. What is the default meant to be - probably ondemand? Seems like it's somehow nondeterministic. Attaching some logs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1925238/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

