You are not logged in.

#1 2017-11-16 13:21:52

Shelbster
Member
Registered: 2017-11-16
Posts: 38

[SOLVED] Cannot boot after installing linux-lts

Hi! So I am new-ish to using linux distros (I know my way around easy distros like ubuntu), but I am completely new to arch, so please bear with me!

So I installed linux-lts and headers and upon reboot I was unable to get to my desktop. I also could not reach any TTY to do anything. The only solution is to select the original kernel from grub but obviously that defeats the point of installing the lts kernel.

This is my dmesg from the troubled boot:
https://pastebin.com/aBMgm9XC

and this is a part of the full journalctl from the same boot. I could not fit the entire thing in pastebin, and it isn't necessary to scroll down far, it's pretty much the same thing all the way down.
https://pastebin.com/wMSAEsy9

Last edited by Shelbster (2017-11-16 16:00:41)

Offline

#2 2017-11-16 13:32:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Cannot boot after installing linux-lts

There are no kernel errors, SDDM can't start, which can potentially happen if SDDM initializes before your graphics drivers are ready. Try to add your graphics driver's kernel module to your MODULES array in /etc/mkinitcpio.conf and regenerating the initramfs, as detailed in:

https://wiki.archlinux.org/index.php/Mkinitcpio#MODULES
https://wiki.archlinux.org/index.php/Ke … _KMS_start

Offline

#3 2017-11-16 14:13:08

Shelbster
Member
Registered: 2017-11-16
Posts: 38

Re: [SOLVED] Cannot boot after installing linux-lts

Thank you for the quick reply! So first I added nouveau to the modules and regenerated the initramfs for linux and linux-lts, and no success on getting lts to work. So I figured since I had actual nvidia drivers installed instead of using nouveau, I would try putting in nvidia instead of nouveau. Now I added nvidia, nvidia_modeset, nvidia_uvm, and nvidia_drm to modules, and while it worked perfectly for the original kernel, when I tried regenerating the initramfs for linux-lts I got this:

==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `nvidia_uvm'
==> ERROR: module not found: `nvidia_drm'

The commands I'm using are

sudo mkinitcpio -p linux
sudo mkinitcpio -p linux-lts

The linux-lts is the one that is giving me problems with nvidia. I did not have any problems regenerating when I tried nouveau, but it did not solve the problem.

Last edited by Shelbster (2017-11-16 14:13:22)

Offline

#4 2017-11-16 14:15:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Cannot boot after installing linux-lts

Ah so we uncover the actual issue, did you forget to install nvidia-lts ? You don't have the kernel module for the LTS kernel and hence your graphics can't be loaded at all, the MODULES array might not even be necessary.

Offline

#5 2017-11-16 14:15:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] Cannot boot after installing linux-lts

Did you actually install the nvidia modules specifically for the -lts kernel?

Offline

#6 2017-11-16 14:32:02

Shelbster
Member
Registered: 2017-11-16
Posts: 38

Re: [SOLVED] Cannot boot after installing linux-lts

I'm sorry for being such a noob, but did I install nvidia-lts correctly using:

sudo pacman -S nvidia-lts

Yes, I did fail to install it in the first place because in my noobishness I was unaware that I had to. After using that command to install it, I rebooted and I am still facing the same problem. So I tried adding nvidia-lts to mkinitcpio.conf and when I try to regenerate I get:

==> ERROR: module not found: `nvidia_lts'

Leading me to believe that I'm not installing it correctly.

Offline

#7 2017-11-16 14:38:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Cannot boot after installing linux-lts

The modules are still called  nvidia, nvidia_modeset, nvidia_uvm, and nvidia_drm  , they simply reside in another directory (the modules directory for the LTS kernel, compare the files and paths from

pacman -Ql nvidia nvidia-lts

, so you'd have to keep the hooks line as is, and it should work for both the normal and the lts kernel.

However now your journal output should've changed in some form, so you might want to repost that, and maybe throw in a /var/log/Xorg.0.log (and to verifiy you've done the right thing, your current /etc/mkinitcpio.conf ) and an

lspci -k

How did you install Arch?

Last edited by V1del (2017-11-16 14:40:45)

Offline

#8 2017-11-16 15:31:45

Shelbster
Member
Registered: 2017-11-16
Posts: 38

Re: [SOLVED] Cannot boot after installing linux-lts

Ok so yes running

pacman -Ql nvidia nvidia-lts

shows exactly what you were saying. So this is my mkinitcpio.conf: https://pastebin.com/95e3M5nX
The Xorg log: https://pastebin.com/QXJ7fy9z
Lscpci: https://pastebin.com/HXRz60ew

As for the journal output, I have a hard time getting this right for pastebin, even worse because I'm not getting the -b flag to work correctly right now, but I did go through it and this is new:

Nov 16 08:53:56 Jupiter sddm[356]: Display server started.
Nov 16 08:53:56 Jupiter sddm[356]: Socket server starting...
Nov 16 08:53:56 Jupiter sddm[356]: Socket server started.
Nov 16 08:53:56 Jupiter sddm[356]: Loading theme configuration from ""
Nov 16 08:53:56 Jupiter sddm[356]: Greeter starting...
Nov 16 08:53:56 Jupiter sddm[356]: Adding cookie to "/var/run/sddm/{c7658cf7-282b-4266-bdc7-e27a89fd425e}"
Nov 16 08:53:56 Jupiter sddm[356]: /usr/bin/xauth: (stdin):1:  bad "remove" command line
Nov 16 08:53:56 Jupiter sddm[356]: /usr/bin/xauth: (stdin):2:  bad "add" command line
Nov 16 08:53:56 Jupiter sddm[356]: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
Nov 16 08:53:56 Jupiter sddm[356]: Display server stopped.
Nov 16 08:53:56 Jupiter sddm[356]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Nov 16 08:53:56 Jupiter sddm[356]: Socket server stopping...
Nov 16 08:53:56 Jupiter sddm[356]: Socket server stopped.
Nov 16 08:53:56 Jupiter sddm[356]: Removing display "" ...
Nov 16 08:53:56 Jupiter sddm[356]: Adding new display on vt 1 ...
Nov 16 08:53:56 Jupiter sddm[356]: Loading theme configuration from ""
Nov 16 08:53:56 Jupiter sddm-helper[31723]: [PAM] Starting...
Nov 16 08:53:56 Jupiter sddm[356]: Setting default cursor
Nov 16 08:53:56 Jupiter sddm[356]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Nov 16 08:53:56 Jupiter kernel: NVRM: API mismatch: the client has the version 384.98, but
                                NVRM: this kernel module has the version 387.22.  Please
                                NVRM: make sure that this kernel module and all NVIDIA driver
                                NVRM: components have the same version.
Nov 16 08:53:56 Jupiter sddm[356]: Display server started.
Nov 16 08:53:56 Jupiter sddm[356]: Socket server starting...
Nov 16 08:53:56 Jupiter sddm[356]: Socket server started.
Nov 16 08:53:56 Jupiter sddm[356]: Loading theme configuration from ""
Nov 16 08:53:56 Jupiter sddm[356]: Greeter starting...
Nov 16 08:53:56 Jupiter sddm[356]: Adding cookie to "/var/run/sddm/{c7658cf7-282b-4266-bdc7-e27a89fd425e}"
Nov 16 08:53:56 Jupiter sddm[356]: /usr/bin/xauth: (stdin):1:  bad "remove" command line
Nov 16 08:53:56 Jupiter sddm[356]: /usr/bin/xauth: (stdin):2:  bad "add" command line
Nov 16 08:53:56 Jupiter sddm[356]: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
Nov 16 08:53:56 Jupiter sddm[356]: Display server stopped.
Nov 16 08:53:56 Jupiter sddm[356]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Nov 16 08:53:56 Jupiter sddm[356]: Socket server stopping...
Nov 16 08:53:56 Jupiter sddm[356]: Socket server stopped.
Nov 16 08:53:56 Jupiter sddm[356]: Removing display "" ...
Nov 16 08:53:56 Jupiter sddm[356]: Adding new display on vt 1 ...
Nov 16 08:53:56 Jupiter sddm[356]: Loading theme configuration from ""
Nov 16 08:53:56 Jupiter sddm-helper[31723]: [PAM] Starting...
Nov 16 08:53:56 Jupiter sddm-helper[31723]: [PAM] Authenticating...
Nov 16 08:53:56 Jupiter sddm-helper[31723]: [PAM] returning.
Nov 16 08:53:56 Jupiter kernel: NVRM: API mismatch: the client has the version 384.98, but
                                NVRM: this kernel module has the version 387.22.  Please
                                NVRM: make sure that this kernel module and all NVIDIA driver
                                NVRM: components have the same version.

384.98 is the latest version of the nvidia drivers available on their website for my card. I do not know how to downgrade the kernel to match.
I installed arch using the iso on archlinux.org and installed to my usb, using the official installation guide on the wiki.

Last edited by Shelbster (2017-11-16 15:32:52)

Offline

#9 2017-11-16 15:40:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Cannot boot after installing linux-lts

... Why did you do that? Remove the nvidia packages from the installer (the nvidia installer script should have an uninstall argument iirc) then properly install the nvidia driver from the repo packages https://wiki.archlinux.org/index.php/NV … stallation (note the big red warning box that tells you not to install the driver from nvidias page), while you are at it remove the configuration from nvidia-xconfig since it has a large potential for regression, with usually little benefit.

Last edited by V1del (2017-11-16 15:44:05)

Offline

#10 2017-11-16 16:00:29

Shelbster
Member
Registered: 2017-11-16
Posts: 38

Re: [SOLVED] Cannot boot after installing linux-lts

And that did the trick! Yes yes, I know I'm still stuck to my windows ways, but I really appreciate the help and have learned from this experience smile

Offline

#11 2017-11-16 16:23:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Cannot boot after installing linux-lts

Glad to hear, sorry if I might've come across as a bit terse, but technical issues are often rather approached in a direct and unmistakeable manner, I promise I'm not like that during general banter tongue

Offline

#12 2017-11-16 16:46:55

Shelbster
Member
Registered: 2017-11-16
Posts: 38

Re: [SOLVED] Cannot boot after installing linux-lts

Oh no, no worries! I really appreciate the help! I knew this would be out of my comfort zone but I really want to get it done right and stepping away from the wiki was obviously a step in the wrong direction!

Offline

Board footer

Powered by FluxBB