You are not logged in.

#1 2019-11-22 18:47:57

MintCollie
Member
Registered: 2019-10-23
Posts: 20

Arch wont boot after installing nvidia package

Hello all,

Im trying to get a desktop on my first arch install and having a bit of issues. I was using lightdm, I3 and kde plasma all togther to have a nice desktop. (This is my Thinkpad T440p)
As some elements in kde needed graphics for things like transparency i figured i should install the nvidia drivers.
after installing and rebooting lightdm didnt work as intended, I could login but it was just a black screen. I tried to do some googling and changed some stuff based off of other arch forum posts.
But now I cant even get lightdm to start properly.
I created

\#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

to

/etc/lightdm/display_setup.sh

and followed the steps in here but I just get a flashing loop of

[   OK   ] Starting Light Display Manager
[   OK   ] Stopped Light Display manager

Right now im arch-chrooted into my system as ctrl+alt+f2 dosent work.

Any ideas on how to solve this?

Offline

#2 2019-11-22 18:51:38

loqs
Member
Registered: 2014-03-06
Posts: 19,097

Re: Arch wont boot after installing nvidia package

If you change the systemd boot target to multi-user.target on the kernel command line can you then access the system?
Edit:
If so then please post the journal for a boot with the issue.
If not then chroot in from the live media and post the journal for a boot with the issue.

See the tip box from pastebin to post command outputs from the console.

Last edited by loqs (2019-11-22 18:53:55)

Offline

#3 2019-11-22 20:27:24

MintCollie
Member
Registered: 2019-10-23
Posts: 20

Re: Arch wont boot after installing nvidia package

loqs wrote:

If you change the systemd boot target to multi-user.target on the kernel command line can you then access the system?
Edit:
If so then please post the journal for a boot with the issue.
If not then chroot in from the live media and post the journal for a boot with the issue.

See the tip box from pastebin to post command outputs from the console.

I changed to multi-user.target and it brought up the normal command line.
How would I get the journal for the boot?

Edit:
Would this be the correct command?

journalctl -b

Last edited by MintCollie (2019-11-22 20:30:52)

Offline

#4 2019-11-22 20:29:19

loqs
Member
Registered: 2014-03-06
Posts: 19,097

Re: Arch wont boot after installing nvidia package

Journal#Filtering_output
The journal for the last boot would be:

journalctl -b -1

Offline

#5 2019-11-22 20:36:36

MintCollie
Member
Registered: 2019-10-23
Posts: 20

Re: Arch wont boot after installing nvidia package

loqs wrote:

Journal#Filtering_output
The journal for the last boot would be:

journalctl -b -1

Ah ok, I ran that one instead of the just -b
Here is the output

Last edited by MintCollie (2019-11-22 20:39:03)

Offline

#6 2019-11-22 20:53:15

loqs
Member
Registered: 2014-03-06
Posts: 19,097

Re: Arch wont boot after installing nvidia package

Nov 22 14:04:27 MintArch lightdm[1397]: /etc/lightdm/display_setup.sh: line 2: xrandr: command not found
Nov 22 14:04:27 MintArch lightdm[1397]: /etc/lightdm/display_setup.sh: line 3: xrandr: command not found
Nov 22 14:04:28 MintArch systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Nov 22 14:04:28 MintArch systemd[1]: lightdm.service: Failed with result 'exit-code'.

Offline

#7 2019-11-22 20:56:53

MintCollie
Member
Registered: 2019-10-23
Posts: 20

Re: Arch wont boot after installing nvidia package

loqs wrote:
Nov 22 14:04:27 MintArch lightdm[1397]: /etc/lightdm/display_setup.sh: line 2: xrandr: command not found
Nov 22 14:04:27 MintArch lightdm[1397]: /etc/lightdm/display_setup.sh: line 3: xrandr: command not found
Nov 22 14:04:28 MintArch systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Nov 22 14:04:28 MintArch systemd[1]: lightdm.service: Failed with result 'exit-code'.

This is what I have inside of my display_setup.sh file

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

Offline

#8 2019-11-22 21:01:25

loqs
Member
Registered: 2014-03-06
Posts: 19,097

Re: Arch wont boot after installing nvidia package

When you followed NVIDIA_Optimus#Use_NVIDIA_graphics_only did you forget to install xorg-xrandr?

Offline

#9 2019-11-22 21:27:50

MintCollie
Member
Registered: 2019-10-23
Posts: 20

Re: Arch wont boot after installing nvidia package

loqs wrote:

When you followed NVIDIA_Optimus#Use_NVIDIA_graphics_only did you forget to install xorg-xrandr?

whoops I did not, I installed the package and set the boot target back to graphical and was greeted with the lightdm login screen.
But I noticed I did not have an /etc/X11/xorg.conf file and when I created one and put in the information and my graphics cards pci address startup errors out. Should I be skipping that step?
Upon logging in graphics certainly look crisper but I still cant enable transparency within KDE's konsole.

Offline

#10 2019-11-22 21:42:33

loqs
Member
Registered: 2014-03-06
Posts: 19,097

Re: Arch wont boot after installing nvidia package

Please post the contents of /etc/X11/xorg.conf also the matching /var/log/Xorg.0.log

Offline

#11 2019-11-22 22:12:07

MintCollie
Member
Registered: 2019-10-23
Posts: 20

Re: Arch wont boot after installing nvidia package

I had deleted xorg.conf so I could use my machine but this is what I had in it.

 Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:<2:0:0>"
    Option "AllowEmptyInitialConfiguration"
EndSection

Here is Xorg.0.log

Last edited by MintCollie (2019-11-22 22:13:18)

Offline

#12 2019-11-22 22:42:25

loqs
Member
Registered: 2014-03-06
Posts: 19,097

Re: Arch wont boot after installing nvidia package

The xorg.0.log was from after  xorg.conf was removed.

    BusID "PCI:<2:0:0>"

the <> should not be included

    BusID "PCI:2:0:0"

Offline

Board footer

Powered by FluxBB