Kernel 6.12.x + nvidia = problems
Kernel 6.12.x + nvidia = problems
Hi, since I updated to the new kernel version 6.12.x my laptop's dedicated graphics card no longer works.
I have Debian trixie, the latest nvidia drivers 535.216.03 and an RTX 4050.
What can I do to solve this?
Thanks
I have Debian trixie, the latest nvidia drivers 535.216.03 and an RTX 4050.
What can I do to solve this?
Thanks
-
- Posts: 3
- Joined: 2024-12-28 14:13
Re: Kernel 6.12.x + nvidia = problems
Nvidia driver 535.216.03 works for me with kernel 6.11.10 on debian sid but not with kernel 6.12.x
Maybe just wait for update of nvdia driver ? A bug ?
Maybe just wait for update of nvdia driver ? A bug ?
Re: Kernel 6.12.x + nvidia = problems
Are you suggesting to me that I could fix this by downloading the latest driver directly from the nvidia website?
This is something I have never done before.
What exactly should I do?
Last edited by Texlee on 2024-12-29 09:43, edited 1 time in total.
Re: Kernel 6.12.x + nvidia = problems
nvidia-xconfig? viewtopic.php?p=813881#p813881.
What is your desktop environment?
Run NVIDIA-Linux-x86_64-*.run in the console.
It can say "Installing the NVIDIA driver while X is running is not recommended":
init 3 stops the DE then you land to the CLI.
If KDE:
then run NVIDIA-Linux-x86_64-*.run.
According to the messages of NVIDIA-Linux-x86_64-565.77.run, I had to install gcc make linux-headers-amd64 steam-installer pkg-config libglvnd-dev (steam-installer for 32-bit compatibility).
Ctrl-Alt-Del to reboot.
How I installed Debian viewtopic.php?t=159997.
What is your desktop environment?
Run NVIDIA-Linux-x86_64-*.run in the console.
It can say "Installing the NVIDIA driver while X is running is not recommended":
Code: Select all
su -
Code: Select all
init 3
If KDE:
Code: Select all
su -
Code: Select all
killall kwin_wayland
According to the messages of NVIDIA-Linux-x86_64-565.77.run, I had to install gcc make linux-headers-amd64 steam-installer pkg-config libglvnd-dev (steam-installer for 32-bit compatibility).
Ctrl-Alt-Del to reboot.
How I installed Debian viewtopic.php?t=159997.
Last edited by jebez on 2024-12-29 10:15, edited 1 time in total.
Retired of Debian, I'm on Arch Linux btw
Re: Kernel 6.12.x + nvidia = problems
I don't understand, do I have to modify nvidia-xconfig or install the drivers downloaded from the nVidia website?jebez wrote: 2024-12-29 09:29 nvidia-xconfig? viewtopic.php?p=813881#p813881.
What is your desktop environment?
Run NVIDIA-Linux-x86_64-*.run in the CLI.
It can say "Installing the NVIDIA driver while X is running is not recommended":Code: Select all
su -
init 3 stops the DE then you land to the CLI.Code: Select all
init 3
If KDE:Code: Select all
su -
then run NVIDIA-Linux-x86_64-*.run.Code: Select all
killall kwin_wayland
According to the messages of NVIDIA-Linux-x86_64-565.77.run, I had to install gcc make linux-headers-amd64 steam-installer pkg-config libglvnd-dev (steam-installer for 32-bit compatibility).
Ctrl-Alt-Del to reboot.
How I installed Debian viewtopic.php?t=159997.
Re: Kernel 6.12.x + nvidia = problems
An alternative is to use packaged Nvidia drivers from official cuda repo, they are updated until 565.57 version.
They aren't compatible with kernel 6.12.x, but applying this simple patch will make the trick. I tested them and i am running the current 6.12.6 kernel.
Regards
They aren't compatible with kernel 6.12.x, but applying this simple patch will make the trick. I tested them and i am running the current 6.12.6 kernel.
Regards
Re: Kernel 6.12.x + nvidia = problems
You can try nvidia-xconfig...
I'm on NVIDIA-Linux-x86_64-565.77.run because see the paragraph Nvidia driver: viewtopic.php?t=159997.
I'm on NVIDIA-Linux-x86_64-565.77.run because see the paragraph Nvidia driver: viewtopic.php?t=159997.
Retired of Debian, I'm on Arch Linux btw
Re: Kernel 6.12.x + nvidia = problems
There is a bug report
https://bugs.debian.org/cgi-bin/bugrepo ... ug=1089513
https://bugs.debian.org/cgi-bin/bugrepo ... ug=1089513
- stevepusser
- Posts: 13135
- Joined: 2009-10-06 05:53
- Has thanked: 56 times
- Been thanked: 103 times
Re: Kernel 6.12.x + nvidia = problems
They say just install and run nvidia-xconfig to fix the issue, or wait for a new driver. Apparently it has been reported for a while now.
MX Linux packager and developer
-
- Debian Developer
- Posts: 33
- Joined: 2020-07-12 21:37
- Has thanked: 2 times
- Been thanked: 3 times
- Contact:
Re: Kernel 6.12.x + nvidia = problems
I had the same issues, I didn't found the patch before, so I opted to run kernel 6.11.
@Best_Threads
@Best_Threads
Re: Kernel 6.12.x + nvidia = problems
@@ttila
What a discovery, I didn't know, it isn't in https://www.nvidia.com/en-us/drivers/...
How did you manage to install nvidia-driver 565.57.01-1? I tried to install Debian unstable KDE viewtopic.php?t=159997 with it without success: blinking cursor instead of SDDM.
I tried nvidia-xconfig viewtopic.php?p=813854, text & blinking cursor.
How did you patch?
What a discovery, I didn't know, it isn't in https://www.nvidia.com/en-us/drivers/...
How did you manage to install nvidia-driver 565.57.01-1? I tried to install Debian unstable KDE viewtopic.php?t=159997 with it without success: blinking cursor instead of SDDM.
I tried nvidia-xconfig viewtopic.php?p=813854, text & blinking cursor.
How did you patch?
Last edited by jebez on 2025-01-03 10:32, edited 1 time in total.
Retired of Debian, I'm on Arch Linux btw
Re: Kernel 6.12.x + nvidia = problems
@jebez
1. Remove old nvidia packages. According to "Uninstallation" from here: https://wiki.debian.org/NvidiaGraphicsDrivers
2. Enter rescue mode + login
3.
1. Remove old nvidia packages. According to "Uninstallation" from here: https://wiki.debian.org/NvidiaGraphicsDrivers
2. Enter rescue mode + login
3.
Code: Select all
wget "https://us.download.nvidia.com/XFree86/Linux-x86_64/565.77/NVIDIA-Linux-x86_64-565.77.run"
chmod +x NVIDIA-Linux-x86_64-565.77.run
./NVIDIA-Linux-x86_64-565.77.run
Re: Kernel 6.12.x + nvidia = problems
Welcome!
You didn't see viewtopic.php?t=159997, I managed to install Debian unstable KDE with NVIDIA-Linux-x86_64-565.77.run.
But I said the nvidia-driver 565.57.01-1 package from https://developer.nvidia.com/cuda-downl ... eb_network, https://developer.download.nvidia.com/c ... 12/x86_64/.
You didn't see viewtopic.php?t=159997, I managed to install Debian unstable KDE with NVIDIA-Linux-x86_64-565.77.run.
But I said the nvidia-driver 565.57.01-1 package from https://developer.nvidia.com/cuda-downl ... eb_network, https://developer.download.nvidia.com/c ... 12/x86_64/.
Retired of Debian, I'm on Arch Linux btw
Re: Kernel 6.12.x + nvidia = problems
jebez wrote: 2025-01-03 09:13 @@ttila
How did you manage to install nvidia-driver 565.57.01-1? I tried to install Debian unstable KDE viewtopic.php?t=159997 with it without success: blinking cursor instead of SDDM.
I tried nvidia-xconfig viewtopic.php?p=813854, text & blinking cursor.
How did you patch?
- Instead to run a script to install drivers, i suggest to use the official packaged cuda Debian repo.
- Sddm is a nightmare with Nvidia driver, black screen with the arrow is a routine. I removed Sddm and i launch Lxqt from terminal, try launching Kde from a virtual console (press ctrl+alt+Fx with x=1 or 2 or 3,....etc.) but i don't know which command use to load the whole DE.
---------omissis-------------
.llseek = noop_llseek,
#if defined(FOP_UNSIGNED_OFFSET)
.fop_flags = FOP_UNSIGNED_OFFSET,
#endif
};
static const struct drm_ioctl_desc nv_drm_ioctls[] = {
---------omissis................
Then remove with dkms the old Nvidia module complied without the patch:
Code: Select all
dkms remove -m nvidia -v 565.57 -k 6.12.6
Code: Select all
dkms install -m nvidia -v 565.57 -k 6.12.6
Regards
Re: Kernel 6.12.x + nvidia = problems
Thanks!
For me it's
but Wayland doesn't work: landing on SDDM, Plasma (Wayland), log, black screen few seconds then reland on SDDM.
X11 works.
What is your DE? Does Wayland work for you?
I guess I've to wait 565.77, no patch needed...
For me it's
Code: Select all
dkms remove -m nvidia -v 565.57.01 -k 6.12.6-amd64;dkms install -m nvidia -v 565.57.01 -k 6.12.6-amd64
X11 works.
What is your DE? Does Wayland work for you?
I guess I've to wait 565.77, no patch needed...
Retired of Debian, I'm on Arch Linux btw
Re: Kernel 6.12.x + nvidia = problems
Check ~/.local/share/sddm for sddm wayland logs.
I use Lxqt plus labwc as wayland compositor, i can load the DE without SDDM because SDDM gave to me a black screen. I think the fault is the newer Nvidia drivers because with 560 everything was working, SDDM too.
That patch is alrady included in 565.77 drivers.
Are you able to launch Plasma from virtual console with (eg.):
or something else???
I do not use Kde
I use Lxqt plus labwc as wayland compositor, i can load the DE without SDDM because SDDM gave to me a black screen. I think the fault is the newer Nvidia drivers because with 560 everything was working, SDDM too.
That patch is alrady included in 565.77 drivers.
Are you able to launch Plasma from virtual console with (eg.):
Code: Select all
startplasmacompositor or kstart plasma-desktop........
I do not use Kde
Re: Kernel 6.12.x + nvidia = problems
Thus I posted viewtopic.php?p=814186#p814186, https://forums.developer.nvidia.com/t/w ... sed/318717.
Ctrl-Alt-F3
Alt-F1
same: black screen few seconds.
I wait nvidia-driver 565.77.
Ctrl-Alt-F3
Code: Select all
su -
Code: Select all
init 3
Code: Select all
startplasma-wayland
I wait nvidia-driver 565.77.
Retired of Debian, I'm on Arch Linux btw
-
- Posts: 53
- Joined: 2025-01-05 01:30
- Been thanked: 4 times
Re: Kernel 6.12.x + nvidia = problems
Sometimes installing nvidia drivers via the apt package manager does not work, and this can happen for different reasons. Sometimes dkms doesn't work properly, because of version mismatches for example.Hi, since I updated to the new kernel version 6.12.x my laptop's dedicated graphics card no longer works.
I have Debian trixie, the latest nvidia drivers 535.216.03 and an RTX 4050.
What can I do to solve this?
Thanks
To work around this problem it's easy to use the nvidia driver installer from their website which is posted(updated) here:
https://forums.developer.nvidia.com/t/c ... ases/28500
you can use that installer to do everything you could possibly need to for nvidia, the only difference is that you'll have to manually manage it, instead of relying on apt. (for users of other operating systems that is typical behavior anyways, to manually install their own drivers)
you can use it like this for example to install it with dkms
sh nvidia.run --dkms
you can run it to see all the different options for installation like this
sh nvidia.run -A
(if dkms doesn't work then you just have to manually install it with the run file, whenever you update your kernel, takes a couple minutes)
I've done this literally hundreds of times on debian, and it works for me every time(haven't gotten dkms to work yet though)
Last edited by gamingondebian on 2025-01-05 04:38, edited 1 time in total.