Platform: Ubuntu 22.04 (installed yesterday)
Problem: Running most programs with DRI_PRIME=1
doesn't work. I first discovered it when trying to run Minecraft (MultiMC) because it wouldn't use the discrete GPU. I tried using env DRI_PRIME=1
but it doesn't change anything.
I tried running glxinfo | grep Device
to see if it's only a game-related problem:
okonio@rokonio-Dell-G15-5510:~$ glxinfo | grep Device
Device: Mesa Intel(R) UHD Graphics (CML GT2) (0x9bc4)
rokonio@rokonio-Dell-G15-5510:~$ DRI_PRIME=0 glxinfo | grep Device
Device: Mesa Intel(R) UHD Graphics (CML GT2) (0x9bc4)
rokonio@rokonio-Dell-G15-5510:~$ DRI_PRIME=1 glxinfo | grep Device
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau
Device: Mesa Intel(R) UHD Graphics (CML GT2) (0x9bc4)
Apparently no, and there's an error when trying to launch it with the discrete gpu.
I finally tried glxgears
and weirdly enough it's working:
rokonio@rokonio-Dell-G15-5510:~$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
605 frames in 5.0 seconds = 120.873 FPS
rokonio@rokonio-Dell-G15-5510:~$ DRI_PRIME=0 glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
640 frames in 5.0 seconds = 127.938 FPS
rokonio@rokonio-Dell-G15-5510:~$ DRI_PRIME=1 glxgears
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
40009 frames in 5.0 seconds = 8001.736 FPS
Addendum: The graphic card I have is a TU117M [GeForce GTX 1650 Mobile / Max-Q] (running lshw -C display
). I have installed ubuntu 22.04 yesterday and didn't change any graphic drivers, but when I go to Additional drivers, it says "Continue using a manually installed driver" and I can't select any different one.