You are not logged in.

#1 2021-03-28 23:07:30

lefteris
Member
Registered: 2013-08-04
Posts: 16

[SOLVED]blackscreen when trying to start xsession after mesa upgrade

(solved. Check this response for the solution that fixed my problem)


Hello,

I have an archlinux system with Nvidia GTX 770. Long running install since 2013.

I just upgraded packages today (do it regularly) and restarted and was greeted with the black screen instead of my usual login manager (slim).

After restarting via a live USB stick, figured out the problem was the upgrade of mesa package.

[2021-03-28T18:51:14+0200] [ALPM] upgraded mesa (20.3.4-3 -> 21.0.1-1)
[2021-03-28T18:51:14+0200] [ALPM] upgraded lib32-mesa (20.3.4-3 -> 21.0.1-1)

Downgrading both packages back to 20.3.4-3 solves the problem. But ... I am not sure why it happened in the first place.

The xorg.log of the failed run:

[     7.613] 
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[     7.613] Build Operating System: Linux Arch Linux
[     7.613] Current Operating System: Linux archdesktop 5.11.10-arch1-1 #1 SMP PREEMPT Fri, 26 Mar 2021 00:11:29 +0000 x86_64
[     7.613] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=0fec194b-3829-4bd8-b4e2-b2b5133f8e9c rw quiet
[     7.613] Build Date: 14 December 2020  12:10:29PM
[     7.613]  
[     7.613] Current version of pixman: 0.40.0
[     7.613] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     7.613] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     7.613] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Mar 28 23:26:41 2021
[     7.620] (==) Using config file: "/etc/X11/xorg.conf"
[     7.620] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     7.620] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     7.622] (==) ServerLayout "Layout0"
[     7.622] (**) |-->Screen "Screen0" (0)
[     7.622] (**) |   |-->Monitor "Monitor0"
[     7.622] (**) |   |-->Device "Device0"
[     7.622] (**) |-->Input Device "Keyboard0"
[     7.622] (**) |-->Input Device "Mouse0"
[     7.622] (**) Option "BlankTime" "20"
[     7.622] (**) Option "StandbyTime" "20"
[     7.622] (**) Option "SuspendTime" "30"
[     7.622] (**) Option "OffTime" "40"
[     7.622] (==) Automatically adding devices
[     7.622] (==) Automatically enabling devices
[     7.622] (==) Automatically adding GPU devices
[     7.622] (==) Automatically binding GPU devices
[     7.622] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     7.627] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[     7.627] 	Entry deleted from font path.
[     7.627] 	(Run 'mkfontdir' on "/usr/share/fonts/misc").
[     7.641] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[     7.641] 	Entry deleted from font path.
[     7.641] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi").
[     7.642] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
[     7.642] 	Entry deleted from font path.
[     7.642] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi").
[     7.642] (==) FontPath set to:
	/usr/share/fonts/TTF,
	/usr/share/fonts/OTF,
	/usr/share/fonts/Type1
[     7.642] (==) ModulePath set to "/usr/lib/xorg/modules"
[     7.642] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[     7.642] (WW) Disabling Keyboard0
[     7.642] (WW) Disabling Mouse0
[     7.642] (II) Module ABI versions:
[     7.642] 	X.Org ANSI C Emulation: 0.4
[     7.642] 	X.Org Video Driver: 24.1
[     7.642] 	X.Org XInput driver : 24.1
[     7.642] 	X.Org Server Extension : 10.0
[     7.642] (++) using VT number 7

[     7.642] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     7.643] (--) PCI:*(2@0:0:0) 10de:1184:3842:3778 rev 161, Mem @ 0xf6000000/16777216, 0xe8000000/134217728, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[     7.644] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     7.644] (II) LoadModule: "glx"
[     7.657] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     7.684] (II) Module glx: vendor="X.Org Foundation"
[     7.684] 	compiled for 1.20.10, module version = 1.0.0
[     7.684] 	ABI class: X.Org Server Extension, version 10.0
[     7.684] (II) LoadModule: "nvidia"
[     7.684] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[     7.737] (II) Module nvidia: vendor="NVIDIA Corporation"
[     7.737] 	compiled for 1.6.99.901, module version = 1.0.0
[     7.737] 	Module class: X.Org Video Driver
[     7.740] (II) NVIDIA dlloader X Driver  460.67  Thu Mar 11 00:09:07 UTC 2021
[     7.740] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     7.844] (II) Loading sub module "fb"
[     7.844] (II) LoadModule: "fb"
[     7.844] (II) Loading /usr/lib/xorg/modules/libfb.so
[     7.848] (II) Module fb: vendor="X.Org Foundation"
[     7.848] 	compiled for 1.20.10, module version = 1.0.0
[     7.848] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     7.848] (II) Loading sub module "wfb"
[     7.848] (II) LoadModule: "wfb"
[     7.848] (II) Loading /usr/lib/xorg/modules/libwfb.so
[     7.851] (II) Module wfb: vendor="X.Org Foundation"
[     7.851] 	compiled for 1.20.10, module version = 1.0.0
[     7.851] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     7.851] (II) Loading sub module "ramdac"
[     7.851] (II) LoadModule: "ramdac"
[     7.851] (II) Module "ramdac" already built-in
[     9.192] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[     9.192] (==) NVIDIA(0): RGB weight 888
[     9.192] (==) NVIDIA(0): Default visual is TrueColor
[     9.192] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[     9.192] (**) NVIDIA(0): Option "Coolbits" "5"
[     9.192] (**) NVIDIA(0): Enabling 2D acceleration
[     9.192] (II) Loading sub module "glxserver_nvidia"
[     9.192] (II) LoadModule: "glxserver_nvidia"
[     9.192] (WW) Warning, couldn't open module glxserver_nvidia
[     9.192] (EE) NVIDIA: Failed to load module "glxserver_nvidia" (module does not exist, 0)
[     9.192] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[     9.192] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[     9.192] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[     9.192] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[     9.192] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.
[     9.192] (II) NVIDIA: The X server does not support PRIME Render Offload.
[    11.232] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:2:0:0
[    11.232] (--) NVIDIA(0):     CRT-0
[    11.232] (--) NVIDIA(0):     DFP-0 (boot)
[    11.232] (--) NVIDIA(0):     DFP-1
[    11.232] (--) NVIDIA(0):     DFP-2
[    11.232] (--) NVIDIA(0):     DFP-3
[    11.232] (--) NVIDIA(0):     DFP-4
[    11.233] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 770 (GK104) at PCI:2:0:0 (GPU-0)
[    11.233] (--) NVIDIA(0): Memory: 4194304 kBytes
[    11.233] (--) NVIDIA(0): VideoBIOS: 80.04.b4.00.70
[    11.233] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    11.247] (--) NVIDIA(GPU-0): CRT-0: disconnected
[    11.247] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
[    11.247] (--) NVIDIA(GPU-0): 
[    11.276] (--) NVIDIA(GPU-0): BenQ XL2420T (DFP-0): connected
[    11.276] (--) NVIDIA(GPU-0): BenQ XL2420T (DFP-0): Internal TMDS
[    11.276] (--) NVIDIA(GPU-0): BenQ XL2420T (DFP-0): 330.0 MHz maximum pixel clock
[    11.276] (--) NVIDIA(GPU-0): BenQ XL2420T (DFP-0): supports NVIDIA 3D Vision stereo.
[    11.276] (--) NVIDIA(GPU-0): 
[    11.276] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    11.276] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[    11.276] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    11.276] (--) NVIDIA(GPU-0): 
[    11.276] (--) NVIDIA(GPU-0): DFP-2: disconnected
[    11.276] (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
[    11.276] (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[    11.276] (--) NVIDIA(GPU-0): 
[    11.276] (--) NVIDIA(GPU-0): DFP-3: disconnected
[    11.276] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[    11.276] (--) NVIDIA(GPU-0): DFP-3: 330.0 MHz maximum pixel clock
[    11.276] (--) NVIDIA(GPU-0): 
[    11.276] (--) NVIDIA(GPU-0): DFP-4: disconnected
[    11.276] (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
[    11.276] (--) NVIDIA(GPU-0): DFP-4: 960.0 MHz maximum pixel clock
[    11.276] (--) NVIDIA(GPU-0): 
[    11.278] (==) NVIDIA(0): 
[    11.278] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[    11.278] (==) NVIDIA(0):     will be used as the requested mode.
[    11.278] (==) NVIDIA(0): 
[    11.278] (II) NVIDIA(0): Validated MetaModes:
[    11.278] (II) NVIDIA(0):     "DFP-0:nvidia-auto-select"
[    11.278] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
[    11.280] (--) NVIDIA(0): DPI set to (92, 91); computed from "UseEdidDpi" X config
[    11.280] (--) NVIDIA(0):     option
[    11.281] (II) NVIDIA: Using 6144.00 MB of virtual memory for indirect memory
[    11.281] (II) NVIDIA:     access.
[    11.282] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[    11.282] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[    11.282] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[    11.282] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[    11.282] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[    11.282] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[    11.282] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[    11.282] (II) NVIDIA(0):     Config Options in the README.
[    11.299] (II) NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select"
[    11.357] (==) NVIDIA(0): Disabling shared memory pixmaps
[    11.357] (==) NVIDIA(0): Backing store enabled
[    11.357] (==) NVIDIA(0): Silken mouse disabled
[    11.357] (**) NVIDIA(0): DPMS enabled
[    11.357] (II) Loading sub module "dri2"
[    11.357] (II) LoadModule: "dri2"
[    11.357] (II) Module "dri2" already built-in
[    11.357] (II) NVIDIA(0): [DRI2] Setup complete
[    11.357] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    11.359] (II) Initializing extension Generic Event Extension
[    11.359] (II) Initializing extension SHAPE
[    11.359] (II) Initializing extension MIT-SHM
[    11.359] (II) Initializing extension XInputExtension
[    11.359] (II) Initializing extension XTEST
[    11.359] (II) Initializing extension BIG-REQUESTS
[    11.359] (II) Initializing extension SYNC
[    11.359] (II) Initializing extension XKEYBOARD
[    11.359] (II) Initializing extension XC-MISC
[    11.359] (II) Initializing extension SECURITY
[    11.359] (II) Initializing extension XFIXES
[    11.359] (II) Initializing extension RENDER
[    11.360] (II) Initializing extension RANDR
[    11.360] (II) Initializing extension COMPOSITE
[    11.360] (II) Initializing extension DAMAGE
[    11.360] (II) Initializing extension MIT-SCREEN-SAVER
[    11.360] (II) Initializing extension DOUBLE-BUFFER
[    11.360] (II) Initializing extension RECORD
[    11.360] (II) Initializing extension DPMS
[    11.360] (II) Initializing extension Present
[    11.360] (II) Initializing extension DRI3
[    11.360] (II) Initializing extension X-Resource
[    11.360] (II) Initializing extension XVideo
[    11.360] (II) Initializing extension XVideo-MotionCompensation
[    11.360] (II) Initializing extension GLX
[    11.360] (II) AIGLX: Screen 0 is not DRI2 capable

The error on glxserver_nvidia appears also on a succesful run, when I get an xsession.

What can I do to figure out why upgrading mesa fails for my setup? All advice appreciated.

Last edited by lefteris (2021-03-30 14:20:58)

Offline

#2 2021-03-29 02:57:52

oclength5
Member
Registered: 2015-07-12
Posts: 8

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

I am also having an issue with mesa 21.0.1. Downgraded to 20.3.4-3 and everything works. For me, I got past the login and the desktop doesn't appear, it is all blank. Then the _ cursor appears in the top left, then back to blank screen with mouse pointer, and back to _, then repeat a few more times before it kicks me back to the login screen. Downgrade resolved it. I'm on AMD.

Offline

#3 2021-03-29 10:34:03

lhj
Member
Registered: 2013-07-10
Posts: 4

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

Similar issue here - my desktop mostly work, but chromium/electron based apps do not. The kitty terminal emulator segfaults on launch.
Video card: Nvidia GT1030
CPU: Amd 3600x

@oclength5 downgrading worked for me as well, thanks!

Last edited by lhj (2021-03-29 10:35:03)

Offline

#4 2021-03-29 16:44:17

xerxes_
Member
Registered: 2018-04-29
Posts: 662

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

What GPU drivers do you use? Nvidia binary blob? Here on nouveau modesetting everything works.

Offline

#5 2021-03-29 19:40:40

windy
Member
Registered: 2013-11-10
Posts: 46

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

Same problem here, using the NVidia binary blob. GDM tries to start but fails. I can see the mouse cursor but nothing else except a single text cursor from the terminal in the upper left corner. After restarting GDM with systemctl, everything works fine.

After downgrading mesa the problem is gone.

Offline

#6 2021-03-29 20:44:09

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

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

Mesa should not be the problem here, you get that message if xorg tries to start before the graphics driver is ready or if you use custom xorg config not loading the nvidia paths.

For the former add your nvidia modules to your initramfs: https://wiki.archlinux.org/index.php/NV … de_setting for the latter add a

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

to your xorg.conf

Offline

#7 2021-03-29 22:46:25

skrooge
Member
Registered: 2011-07-07
Posts: 4

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

Thankyou V1del, adding the module paths to xorg.conf fixed this issue for me.

Offline

#8 2021-03-30 03:18:09

aAlpine
Member
Registered: 2017-02-21
Posts: 4

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

Another +1 to V1del's solution! I had generated my xorg.conf with nvidia-settings, which didn't include the ModulePaths.

I'm wondering if this is something that could be added to the Wiki somewhere? I don't really understand exactly what this is, or why it's missing, so I'm not comfortable doing so myself.

Offline

#9 2021-03-30 06:48:37

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

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

Simply don't use static server layouts as produced by those configure tools. They're inflexible and tend to produce garbage cruft.

The autoconfig on starting the server does a fine job and you can detail configurations w/ the proper config snippets.
If things really don't work, eg. /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf doesn't apply to your nvidia GPU it's more likely for the reasons V1del linked in #6 which are properly fixed the way described in the wiki - not by forcing a config into the race condition.

Offline

#10 2021-03-30 13:16:03

oclength5
Member
Registered: 2015-07-12
Posts: 8

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

For me, I am using autoconfig and don't have nVidia graphics but am experiencing the same issue.

Offline

#11 2021-03-30 13:20:30

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

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

Then you don't have the same issue and might want to create a new thread with logs from your system. On a nvidia system like the OPs mesa has very little relevance to how things are initialized. glvnd is important here, but that didn't change.

Offline

#12 2021-03-30 13:46:04

lefteris
Member
Registered: 2013-08-04
Posts: 16

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

I am going to mark this post as solved since I just tried the suggestion of V1del from this post and it solves the issue for my system. I am not sure which of the two things did it but both were missing from my configuration so I added them.

Thank you so much.

Edit: Feel silly for asking that, but how can I edit the title of the original post to prepend a [SOLVED] tag? The edit meny seems to allow me to type in the textfield for the post's contents but not the title.

Last edited by lefteris (2021-03-30 13:51:18)

Offline

#13 2021-03-30 13:56:32

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

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

Editing your first post allows you to alter the subject line.

Offline

#14 2021-03-30 14:23:56

lefteris
Member
Registered: 2013-08-04
Posts: 16

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

seth wrote:

Editing your first post allows you to alter the subject line.

So there is either some kind of bug or my title was at the exact limit of title characters. I tried in two different browsers. Seems like the textfield for the title will not let me type any more characters in it, but I could prepend [SOLVED] by making the title shorter.

Most probably it's just a coincidence and the original title was exactly at the limit. lol

Offline

#15 2021-03-30 14:25:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

It was.  Thanks.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#16 2021-03-30 17:08:24

fabrixx
Member
From: Italy
Registered: 2015-06-07
Posts: 110

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

Work for me not editing xorg but downgrading mesa and lib32-mesa

Last edited by fabrixx (2021-03-30 17:08:38)

Offline

#17 2021-04-01 12:46:22

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

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

V1del wrote:

Mesa should not be the problem here, you get that message if xorg tries to start before the graphics driver is ready or if you use custom xorg config not loading the nvidia paths.

For the former add your nvidia modules to your initramfs: https://wiki.archlinux.org/index.php/NV … de_setting for the latter add a

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

to your xorg.conf


Sorry but this did not work for me

Modified my /etc/X11/xorg.conf.d/20-nvidia.conf

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

It does not correct the problem if I install the latest mesa 21xxxxx dater this modif, I get stuck at login plus back screen,  I have to downgrade to version 20xxxx get into desktop

see my post https://bbs.archlinux.org/viewtopic.php?id=265098

Thanks

Offline

#18 2021-04-02 01:26:09

oldshortcut
Member
Registered: 2015-10-18
Posts: 4

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

Trevor_B wrote:
V1del wrote:

Mesa should not be the problem here, you get that message if xorg tries to start before the graphics driver is ready or if you use custom xorg config not loading the nvidia paths.

For the former add your nvidia modules to your initramfs: https://wiki.archlinux.org/index.php/NV … de_setting for the latter add a

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

to your xorg.conf


Sorry but this did not work for me

Modified my /etc/X11/xorg.conf.d/20-nvidia.conf

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

It does not correct the problem if I install the latest mesa 21xxxxx dater this modif, I get stuck at login plus back screen,  I have to downgrade to version 20xxxx get into desktop

see my post https://bbs.archlinux.org/viewtopic.php?id=265098

Thanks

Do you have /etc/X11/xorg.conf? It is generated by running nvidia-xconfig. I added the recommended modules into xorg.conf as advised and it solved the issue. I updated mesa and lib32-mesa after that also. Gnome starts fine. It worked on two Arch systems of mine already.

Offline

#19 2021-04-02 05:39:57

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

Re: [SOLVED]blackscreen when trying to start xsession after mesa upgrade

We're running his problem here

Offline

Board footer

Powered by FluxBB