You are not logged in.

#1 2021-04-01 08:15:42

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

[SOLVED] Stuck on Lightdm, with latest -Syu

I've been on Arch for about 4 months now, all good until now

Since yesterday if I upgrade my system with -Syu (see pastebin https://pastebin.com/k6dHXExV)  Something breaks the system upon reboot  I get to the login page, I can enter my Password and then the system just hangs, running XFCE

Doing a Ctr, alt F2 , and doing a timeshift restore works and can get my system up and running again, but if I try again the full update again -Syu, it breaks again, I see in other similar posts it might be the mesa update, that I see in the update logs

Can I do a update and exclude this ? but if so I don't know how

Thanks for your help

Trevor

Edit 1, I did a full update -Syu but added ignore 'mesa' in my Pacman conf, everything worked just as always, so it seems that there maybe a bug with the latest mesa, should I report anywhere ?

Edit 2, I read that needed to update my /etc/X11/xorg.conf.d/20-nvidia.conf

Section "Files"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection

This did not correct or solve my problem

Last edited by Trevor_B (2021-04-02 11:40:28)

Offline

#2 2021-04-01 12:58:42

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

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Post your xorg log during the issue. Note that there will be a bit of a difference if nvidia is not your primary GPU, is this a laptop with an integrated and an nvidia card?

Offline

#3 2021-04-01 13:18:06

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Hi

Thanks

Hi

Thanks

Post your xorg log during the issue., don't know how to do that, only 4 months old in Arch, only learn't yesterday how to do terminal, using ctr, alt F2 and downgrade the mesa to get back into desktop, sorry
https://pastebin.com/LqdGcePH    is that any good ??

my Nvidia conf setting https://pastebin.com/cA1CHYDU

All system up to date except the mesa

Not a Laptop, Normal computer
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4)
00:1c.2 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d4)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d4)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation H87 Express LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 760] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
03:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 03)

Last edited by Trevor_B (2021-04-01 13:25:51)

Offline

#4 2021-04-01 14:28:36

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

[     2.374] (==) Using config file: "/etc/X11/xorg.conf"
[     2.374] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     2.374] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     2.381] (==) ServerLayout "Layout0"
[     2.381] (**) |-->Screen "Screen0" (0)
[     2.381] (**) |   |-->Monitor "Monitor0"
[     2.381] (**) |   |-->Device "Device0"
[     2.381] (**) |   |-->GPUDevice "Device0"
[     2.381] (**) |-->Input Device "Keyboard0"
[     2.381] (**) |-->Input Device "Mouse0"
[     2.381] (**) Option "Xinerama" "0"

Please don't use nvidia-settings or nvidia-xconfig to write a config file and actually don't write a static server config at all.
=> remove /etc/X11/xorg.conf

[     4.498] (II) Loading sub module "glxserver_nvidia"
[     4.498] (II) LoadModule: "glxserver_nvidia"
[     4.498] (WW) Warning, couldn't open module glxserver_nvidia
[     4.498] (EE) NVIDIA: Failed to load module "glxserver_nvidia" (module does not exist, 0)
[     4.498] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[     4.498] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[     4.498] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[     4.498] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[     4.498] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.

https://wiki.archlinux.org/index.php/NV … de_setting
https://wiki.archlinux.org/index.php/Ke … _KMS_start

Online

#5 2021-04-01 14:54:03

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Hi and thanks for trying to help me

=> remove /etc/X11/xorg.conf

Do you want me to delete the 20-nvidia.conf file ? or the whole folder ? as I am unsure what you would like me to do ?

Thanks

Offline

#6 2021-04-01 14:55:38

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

No, I want to to remove exactly that one file.
Then see the links I posted, add the kernel parameter and the modules to the initramfs. Then reboot.

Online

#7 2021-04-01 15:31:17

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Whoops sorry read wrong the delete part

Okay I understand and know how to delete the xorg.conf file

But I'm out of my depth about "add the kernel parameter and the modules to the initramfs"

Am reading your two links but they don't make sense to me especially the kernel modifs

I'm totally lost for the "modify kernel parameter" don't even know when to look

Pacman hook (I think that I understand)
do I just create a folder in /etc/pacman.d/         'hooks' and inside create a 'nvidia.hook' file with the following ?
[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia
Target=linux
# Change the linux part above and in the Exec line if a different kernel is used

[Action]
Description=Update Nvidia module in initcpio
Depends=mkinitcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P'

sorry but this is really over my little head


But why is all this happening since the latest mesa update ? kernel and drivers are all the latest

Offline

#8 2021-04-01 15:36:13

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

do I just create a folder in /etc/pacman.d/         'hooks' and inside create a 'nvidia.hook' file with the following ?

No. Don't do any of that.

Despite your nick: do you actually speak English or are we talking via google translate?
Are there localized versions of the tow wiki pages for your native language?

Online

#9 2021-04-01 15:47:57

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

No I'm English, just been living in France for more than half my life, (I'm 63) so tend to muddle  between English and French mixing in every word or so,

Plus a little tired, late last night getting back into my Desktop, when getting stuck an loggin, and just got over a 2 day gastroenteritis plus received my Covid vaccin which is a little tiring , Sorry

I saw that maybe for the Kernel I could add to my existing
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3" "nvidia-drm.modeset=1"   (not sur about the " ")

Trevor

Offline

#10 2021-04-01 16:02:24

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

No problem, but I'd adjust my vocabulary to be more google-friendly in case ;-)

You can add the kernel parameter to /etc/defaults/grub but the will have to run grub-mkconfig to write the relevant /boot/grub/grub.cfg
The kernel modules need entries to the array in /etc/mkinitcpio.conf and a re-run of mkinitcpio to generate the initramfs'

You can alternatively try to delay lightdm, https://wiki.archlinux.org/index.php/Li … TTY_output (ignore the symtom)

Online

#11 2021-04-01 16:43:24

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Thanks

1, Delete the xorg.conf file

2, For the grub
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3" "nvidia-drm.modeset=1" then sudo grub-mkconfig -o /boot/grub/grub.cfg

3, Mkinitpio.conf
change MODULES=() to
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) using sudo nano update

4, but how do I re-run of mkinitcpio to generate the initramfs ?

Last edited by Trevor_B (2021-04-01 17:08:59)

Offline

#12 2021-04-01 16:47:24

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Warm.
Keep the quotes and run those commans out of an interactive textshell (as root, in doubt sudo them)

Online

#13 2021-04-01 17:09:46

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Modified text above your remark , just number 4 to suss out

Warmer  ? smile

Last edited by Trevor_B (2021-04-01 17:26:58)

Offline

#14 2021-04-01 17:41:42

paragordius
Member
Registered: 2017-07-12
Posts: 12

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

I had the same issue. I fixed it by uncommenting a line in my `lightdm.conf`. Check the last post here for more details: https://bbs.archlinux.org/viewtopic.php?id=265089

Offline

#15 2021-04-01 17:53:20

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

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

That's not the issue here.

@Trevor_B https://wiki.archlinux.org/index.php/Mk … activation

Offline

#16 2021-04-01 18:19:15

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

# mkinitcpio -P ??

Offline

#17 2021-04-01 19:47:00

paragordius
Member
Registered: 2017-07-12
Posts: 12

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

V1del wrote:

That's not the issue here.

@Trevor_B https://wiki.archlinux.org/index.php/Mk … activation

The symptoms are very similar. I was experiencing hangs at login after a recent -Syu as well.

It may be worth running the following and then testing with a reboot. I'm running nvidia proprietary FWIW:

$ sudo sed -i 's/#logind-check-graphical=false/logind-check-graphical=true/g' /etc/lightdm/lightdm.conf

Last edited by paragordius (2021-04-01 19:47:22)

Offline

#18 2021-04-01 20:03:14

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Trevor_B wrote:

# mkinitcpio -P ??

Yes.
The "#" indicates the UID0 (root) prompt, don't type it.

Online

#19 2021-04-01 21:25:25

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Thanks Seth, will give it a go tomorrow and let you know,

Many thanks for your patience and your help

Offline

#20 2021-04-02 10:00:55

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Hi again, am starting the modifs

getting error message when updating the grub config
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
/etc/default/grub: line 6: nvidia-drm.modeset=1: command not found

my line in the grub config is
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3" "nvidia-drm.modeset=1"

Sussed it , it should be
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 nvidia-drm.modeset=1"

Last edited by Trevor_B (2021-04-02 10:12:55)

Offline

#21 2021-04-02 10:46:37

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Seth, You are the man smile

All worked

Many thanks for your patience and taking the time to help me

Here is exactly what I did if anyone else needs the info

1, remove /etc/X11/xorg.conf
Delete the xorg.conf file (I also deleted the xorg.conf.backup)

2, For the grub
/etc/default/grub (I use sudo nano)
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 nvidia-drm.modeset=1"
then sudo grub-mkconfig -o /boot/grub/grub.cfg

3, Mkinitcpio.conf
modify /etc/mkinitcpio.conf
change MODULES=() to
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
(I use sudo nano)

4, re-run of mkinitcpio to generate the initramfs
sudo mkinitcpio -P

One more question, do I need to create ?
https://wiki.archlinux.org/index.php/NV … de_setting
Pacman hook so that after update all will not be lost ? "To avoid the possibility of forgetting to update initramfs after an NVIDIA driver upgrade, you may want to use a pacman hook:"

Last edited by Trevor_B (2021-04-05 10:34:31)

Offline

#22 2021-04-02 11:03:19

seth
Member
Registered: 2012-09-03
Posts: 49,961

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

One moire question, do I need to create ?

You do not *need* to create it, but if you update the nvidia driver w/o getting a kernel update at the same time, it might spare you some headaches (and the requirement to rebuild the initramfs yourself)
(Depending on your update frequency that might be a rare but possible incident)

Online

#23 2021-04-02 11:37:14

Trevor_B
Member
Registered: 2019-12-28
Posts: 84

Re: [SOLVED] Stuck on Lightdm, with latest -Syu

Again thanks

repeated it here if anyone else need it, text in file exactly as shown on Arch forum, don't think I need to change anything in it


5, /etc/pacman.d/hooks/nvidia.hook
I added, a folder 'hooks' a file 'nvidia.hook'
(I use sudo nano to create the nvidia.hook file)

[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia
Target=linux
# Change the linux part above and in the Exec line if a different kernel is used

[Action]
Description=Update Nvidia module in initcpio
Depends=mkinitcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P'

6, updated my /etc/X11/xorg.conf.d/20-nvidia.conf

Section "Files"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection


I will mark this as solved

Phew, you made an old man work .... but he's happy smile
Trevor

Last edited by Trevor_B (2021-04-05 09:57:36)

Offline

Board footer

Powered by FluxBB