Wayland with NVIDIA driver

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
abris
Posts: 7
Joined: 2024-12-17 15:19

Wayland with NVIDIA driver

#1 Post by abris »

Hello,

I have a Dell 7750 laptop with Debian 12. I installed the propriatery NVIDIA driver which caused GNOME to fallback from Wayland to X11. But in this wiki I read that Wayland can handle sufficiently the 560.35.03 version of the driver.

I followed the instructions in that wiki, unfortunately, it still falls back to X11. Any help is appreciated.

arzgi
Posts: 1775
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 103 times

Re: Wayland with NVIDIA driver

#2 Post by arzgi »

Hello!

Install inxi, and run in terminal

Code: Select all

arto@dell:~$ inxi -G
Graphics:
  Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v: kernel
  Device-2: Sunplus Innovation Integrated_Webcam_HD type: USB
    driver: uvcvideo
  Display: server: X.Org v: 1.21.1.7 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: crocus gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel HD Graphics (HSW
    GT1)
arto@dell:~$ 
Post the result, use code tags like I did.

abris
Posts: 7
Joined: 2024-12-17 15:19

Re: Wayland with NVIDIA driver

#3 Post by abris »

Thank you for the quick reply, sure:

Code: Select all

abris@dell:~$ inxi -G
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA TU106GLM [Quadro RTX 3000 Mobile / Max-Q] driver: nvidia
    v: 560.35.03
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa dri: iris gpu: i915
    resolution: 3840x2160~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics (CML GT2)

arzgi
Posts: 1775
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 103 times

Re: Wayland with NVIDIA driver

#4 Post by arzgi »

Nice work, you have two GPUs, try to blacklist i915.

Create as root or with sudo /etc/modprobe.d/i915-blacklist.conf

and the content:

blacklist i915

Then reboot.

I use XFCE, which does not use wayland, so don't know better method :roll:

abris
Posts: 7
Joined: 2024-12-17 15:19

Re: Wayland with NVIDIA driver

#5 Post by abris »

Thank you so much, unfortunately it still loads X after blacklisting and reboot.

arzgi
Posts: 1775
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 103 times

Re: Wayland with NVIDIA driver

#6 Post by arzgi »

Hmm, run inxi -G again, and post the result,

abris
Posts: 7
Joined: 2024-12-17 15:19

Re: Wayland with NVIDIA driver

#7 Post by abris »

Code: Select all

abris@dell:~$ inxi -G
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA TU106GLM [Quadro RTX 3000 Mobile / Max-Q] driver: nvidia
    v: 560.35.03
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa dri: iris gpu: i915
    resolution: 3840x2160~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics (CML GT2)
I'm trying to interpret the output and it seems to me that the X11 server is used with Xwayland, but AFAIK Xwayland is an extension of Wayland. I'm slightly confused :)

arzgi
Posts: 1775
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 103 times

Re: Wayland with NVIDIA driver

#8 Post by arzgi »

Yes, your laptop uses still the Intel gpu instead of the nvidia,

Can you post the i915-blacklist.conf you made?

abris
Posts: 7
Joined: 2024-12-17 15:19

Re: Wayland with NVIDIA driver

#9 Post by abris »

Sure:

Code: Select all

abris@dell:~$ cat /etc/modprobe.d/i915-blacklist.conf 
blacklist i915
inxi still showed that the system uses the intel gpu by default, so I also tried switching off it in the bios, yet I got x11:

Code: Select all

abris@dell:~$ inxi -G
Graphics:
  Device-1: NVIDIA TU106GLM [Quadro RTX 3000 Mobile / Max-Q] driver: nvidia
    v: 560.35.03
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 driver: X:
    loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa
    gpu: nvidia,nvidia-nvswitch resolution: 3840x2160~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 560.35.03 renderer: Quadro RTX 3000/PCIe/SSE2
If I understand well this setup consumes more battery, so it would be more convinient if wayland could handle both gpus.

arzgi
Posts: 1775
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 103 times

Re: Wayland with NVIDIA driver

#10 Post by arzgi »

Now you have nvidia in use, so the bios setting did that

blacklist is also right. I guess you don't need it as you can select the gpu from bios.

I don't know how you change the gpu on the fly, recently here was one thread, but I assume the OP did not get it to work.

abris
Posts: 7
Joined: 2024-12-17 15:19

Re: Wayland with NVIDIA driver

#11 Post by abris »

Thanks for all :)

User avatar
stevepusser
Posts: 13135
Joined: 2009-10-06 05:53
Has thanked: 56 times
Been thanked: 103 times

Re: Wayland with NVIDIA driver

#12 Post by stevepusser »

Also curious as to how the 560 Nvida driver was installed, since it's not available from Bookworm repositories.
Could be important in this case.
But in this wiki I read that Wayland can handle sufficiently the 560.35.03 version of the driver.
Sorry, my old eyes must be going--could not find 560 mentioned in that wiki link, only 535. Could you point it out for me?
MX Linux packager and developer

abris
Posts: 7
Joined: 2024-12-17 15:19

Re: Wayland with NVIDIA driver

#13 Post by abris »

Oh, I thought I got the Nvidia driver from non-free, but I see now, that it has only version 535. I know that first I tried it from Nvidia's website but I had issues installing it.

Sorry, I only interpreted it as Wayland should work 535 onward. As I understood, 495 was the minimum supported version, but it was still limited until 535. 560 has a list of the current Wayland limits here, which also made me believe that I can use my driver.

Anyway, I reinstalled my laptop and sticked with nouveau and Wayland.

Thanks again :)

User avatar
donald
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 1470
Joined: 2021-03-30 20:08
Has thanked: 252 times
Been thanked: 312 times

Re: Wayland with NVIDIA driver

#14 Post by donald »

Is this solved? Verifiable?
Typo perfectionish.


"The advice given above is all good, and just because a new message has appeared it does not mean that a problem has arisen, just that a new gremlin hiding in the hardware has been exposed." - FreewheelinFrank

User avatar
stevepusser
Posts: 13135
Joined: 2009-10-06 05:53
Has thanked: 56 times
Been thanked: 103 times

Re: Wayland with NVIDIA driver

#15 Post by stevepusser »

I see that Siduction has a 550 nvidia-driver--am thinking for porting it over for MX Linux.

Picked up some patches from there, Manjaro, and Arch to get 470 Tesla and 390xx legacy Nvidia drivers also building on 6.12 kernels. Hoping to have some brave MX users with the hardware test them.
MX Linux packager and developer

User avatar
sunrat
Site admin
Site admin
Posts: 7477
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 135 times
Been thanked: 670 times

Re: Wayland with NVIDIA driver

#16 Post by sunrat »

I can't even log in on Trixie with Wayland/KDE/Nvidia GTX 970. Works perfectly on Xorg though.
I vaguely recall reading it may work in future with 560 or 565 nvidia driver. Not holding my breath though.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply