You are not logged in.

#1 2024-12-17 16:27:27

LaptopDev
Member
Registered: 2024-09-24
Posts: 54

Switching back and forth between nouveau and nvidia drivers

nvidia proprietary driver is good for cuda, nouveau is good for display output.
Is there a way to use nouveau for display and handling accelerated graphics stuff, and use cuda with the nvidia proprietary driver?

Offline

#2 2024-12-17 16:36:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,135

Re: Switching back and forth between nouveau and nvidia drivers

Not without rebooting (you could try to unbind the GPU, unload the module and load the other module, but unless this is a hybrid system - in which case the "display output" thing would not be one - that will force you to at least restart the GUI at which point you can just as much reboot.

Maybe elaborate on your "display output" issues w/ the nvidia driver instead?

Offline

#3 2024-12-17 16:56:06

LaptopDev
Member
Registered: 2024-09-24
Posts: 54

Re: Switching back and forth between nouveau and nvidia drivers

seth wrote:

Maybe elaborate on your "display output" issues w/ the nvidia driver instead?

I am experiencing freezing with the nvidia proprietary driver, even when I have hibernate disabled in gnome wayland.

Offline

#4 2024-12-17 17:04:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,135

Re: Switching back and forth between nouveau and nvidia drivers

What does display freezing have to do w/ (let alone not entered) hibernation?
Do you get the same w/ gnome/x11 or sway or openbox or so?
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#5 2024-12-17 18:09:50

LaptopDev
Member
Registered: 2024-09-24
Posts: 54

Re: Switching back and forth between nouveau and nvidia drivers

seth wrote:

Do you get the same w/ gnome/x11 or sway or openbox or so?
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

http://0x0.st/XC8a.txt

I Have hyprland but not any x11 desktops installed I will leave it on Hyprland for a couple days.

Usually what happens is I leave my computer idling and it ends up freezing. I am not sure why it freezes. Initially setting up nvidia I had issues with hibernation  causing freezing so I associate it with nvidia but it may not be associated with it.

I used that command to generate the above 0x0.st link.

My last boot was not the initial boot after a freeze.

Offline

#6 2024-12-17 19:47:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,135

Re: Switching back and forth between nouveau and nvidia drivers

Dec 17 12:01:17 rog kernel: simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device

Add "nvidia_drm.modeset=1" to the https://wiki.archlinux.org/title/Kernel_parameters

Usually what happens is I leave my computer idling and it ends up freezing.

Could be S3, S4 or just the screenlocker.
Have you tried to lock the screen and whether that triggers it?
If it ends up freezing, try to switch the VT (ctrl+alt+F3) and if that's not possible to reboot by frenetically pressing ctrl+alt+del or in doubt the https://wiki.archlinux.org/title/Keyboa … el_(SysRq) + REISUB (you'll have to activate the sysrq feature before you lose access to the system) - this might preserve the journal of that boot to illustrate what went wrong.

nvme's frequently struggle w/ APST, https://wiki.archlinux.org/title/Solid_ … ST_support
Though that would affect nouveau just as much.

Offline

Board footer

Powered by FluxBB