this post was submitted on 02 Oct 2024
21 points (88.9% liked)

Arch Linux

7744 readers
4 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

I am on EndeavourOS and was running the core/linux kernel and used yay to update my kernel to probably 6.11.1arch along with some programs and Nvidia driver updates. After rebooting it went to the login screen but when hitting login it stayed at a black screen till it fell back to terminal without gui. In the grub submenu I tried fallback which had the same problem. Fortunately I had LTS installed, and it worked.

So now what do i do? I am sure there are many solutions to fixing it. But do they work all the same? I could delete core/linux in AKM and reinstall it, right?

I am a beginner in Linux and would like to learn from this.

top 6 comments
sorted by: hot top controversial new old
[–] Strit@lemmy.linuxuserspace.show 17 points 1 month ago* (last edited 1 month ago) (1 children)

Pretty sure you didn't break the kernel. Just that the nvidia driver is likely still incompatible with 6.11.

Or maybe you are mixing nvidia drivers for regular linux and lts somewhere. The regular driver seems to have been rebuild for 6.11.

[–] forbiddenlake@lemmy.world 4 points 1 month ago

Nvidia proprietary 555.58.02, X, 6.11 here. I can tell you that it works in general.

[–] UnfortunateShort@lemmy.world 7 points 1 month ago* (last edited 1 month ago)

You can reinstall stuff without uninstalling it first (yay -S <package>). To add to the other comment suggesting a driver reinstall, you can use downgrade to revert back to old versions (and also to keep it fixed till you wanna give it another go, don't forget if you do so tho!).

Moreover, set up snapshots! They provide a very straightforward way to recover from failed updates.

If you are on btrfs, you need: snapper, snap-pac, btrfs-assistant (optional, but provides a GUI and more automation...)

If you are on ext4: timeshift, timeshift-autosnap

Im both cases you need to create a profile for root (/), although when it comes to Timeshift I think you need (/ want to) exclude /home. (On the default btrfs setup, you don't need to do this, because /home is it's own subvolume).

[–] ScottE@lemm.ee 2 points 1 month ago

Next is to login and look at the logs, especially dmesg. Find out how to open a virtual terminal, probably ctrl+alt+f1 (or f2 etc) so you can bypass the display manager to login and poke around. Or try SSH from another system. There's a couple of ideas, good luck!

[–] taaz@biglemmowski.win 2 points 1 month ago

This happens to me often whenever nvidia (dkms) rebuilds and the module compilation fails (for whatever reason).

Usually I drop into tty ctrl+alt+f2 as root, run dkms autoinstall (or just yay -S <your nvidia package> should trigger dkms rebuild if needed) and then rebuild initramfs ( mkinitcpio -P), reboot.

[–] forbiddenlake@lemmy.world 1 points 1 month ago

Are you using Wayland? You need to set a couple module parameters if you haven't

https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting