Bug 31834 - x11-server-xorg can not be started from console
Summary: x11-server-xorg can not be started from console
Status: UNCONFIRMED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-23 11:18 CEST by Elmar Stellnberger
Modified: 2025-04-28 02:27 CEST (History)
3 users (show)

See Also:
Source RPM: x11-server-21.1.8-1.mga9.src.rpm
CVE:
Status comment:


Attachments
Xorg.0.log of my first attempt to run X from the console at runlevel 2 (22.27 KB, application/x-troff-man)
2023-04-23 11:20 CEST, Elmar Stellnberger
Details
corresponding xorg.conf (2.56 KB, application/x-troff-man)
2023-04-23 11:21 CEST, Elmar Stellnberger
Details
modified xorg.conf that disables dri and v4l (2.58 KB, application/x-troff-man)
2023-04-23 11:23 CEST, Elmar Stellnberger
Details
/proc/$(pgrep Xorg)/maps (27.94 KB, application/x-troff-man)
2023-04-23 11:27 CEST, Elmar Stellnberger
Details
Xorg.0.log with lxdm in the initial setting with v4l & dri (21.53 KB, application/x-troff-man)
2023-04-23 11:30 CEST, Elmar Stellnberger
Details
/proc/$(pgrep Xorg)/maps with an lxdm boot and the initial xorg.conf using dri & v4l (27.98 KB, application/x-troff-man)
2023-04-23 11:32 CEST, Elmar Stellnberger
Details
installed packages at the time of the report (140 bytes, text/plain)
2023-04-23 12:10 CEST, Elmar Stellnberger
Details

Description Elmar Stellnberger 2023-04-23 11:18:58 CEST
Whenever I boot directly into lxde using lxdm everything works fine. However if I start with runlevel 2 and want to invoke an xinit, the X-server won´t start:
AIGLX error: dlopen of /usr/lib/dri/nouveau_vieux.dri.so failed

The file does not exist and it is not offered by any package (rpm -qla  grep vieux, urpmq [-y] vieux).

I found out that invoking /bin/Xorg or /usr/libexec/Xorg.wrap gives the same error. If I invoke /usr/libexec/Xorg manually, the X-server starts well and I can run lxsession  and xsetroot -solid lightblue.

> ls -l /usr/libexec/Xorg*
-rwxr-xr-x 1 root root 2681808 Apr  4 17:59 /usr/libexec/Xorg*
-rwsr-xr-x 1 root root   14732 Apr  4 17:59 /usr/libexec/Xorg.wrap*

If I run X via lxdm:
> xdriinfo
libGL error: glx: failed to create dri2 screen
libGL error: failed to load driver: nouveau
Screen 0: swrast
Comment 1 Elmar Stellnberger 2023-04-23 11:20:49 CEST
Created attachment 13778 [details]
Xorg.0.log of my first attempt to run X from the console at runlevel 2

search for vieux in the logfile
Comment 2 Elmar Stellnberger 2023-04-23 11:21:39 CEST
Created attachment 13779 [details]
corresponding xorg.conf
Comment 3 Elmar Stellnberger 2023-04-23 11:23:38 CEST
Created attachment 13780 [details]
modified xorg.conf that disables dri and v4l

As I had to find out disabling dri and v4l didn´t make the X-server start either. Error message had remained the same.
Comment 4 Elmar Stellnberger 2023-04-23 11:27:53 CEST
Created attachment 13781 [details]
/proc/$(pgrep Xorg)/maps

By now I have found out that I can run /usr/libexec/Xorg directly. I had still used the xorg.conf disabling v4l and dri. As you can see from the memory map of Xorg in /proc the dynamic .so libraries still get loaded if you disable these modules; this will be the reason why /bin/Xorg did not start (which is just a bash script that calls /usr/libexec/Xorg.wrap, being a ¡¿socket?!) with the xorg.conf.2.
Comment 5 Elmar Stellnberger 2023-04-23 11:30:39 CEST
Created attachment 13782 [details]
Xorg.0.log with lxdm in the initial setting with v4l & dri

Finally I had restored the old xorg.conf.1 with v4l & dri and /usr/libexec/Xorg did still run. The Xorg.0.log is from-after a reboot that booted directly into lxdm at runlevel 5.
Comment 6 Elmar Stellnberger 2023-04-23 11:32:00 CEST
Created attachment 13783 [details]
/proc/$(pgrep Xorg)/maps with an lxdm boot and the initial xorg.conf using dri & v4l
Comment 7 Elmar Stellnberger 2023-04-23 11:53:37 CEST
Here are two links to my current testing efforts regarding Xorg, s2ram and nouveau: https://gitlab.freedesktop.org/drm/nouveau/-/issues/194 , https://gitlab.gnome.org/tasali/webkit2gtk/-/issues/1 .
Comment 8 Elmar Stellnberger 2023-04-23 12:06:28 CEST
I don´t know exactly since when this error has appeared; I can only remember  that the X-server could most likely be started correctly from console when I suceeded to resolve screen distortions by unloading and re-loading the nouveau kernel module in the gitlab.freedesktop thread. If it wasn´t then it for sure was at the beginning of that thread.
Comment 9 Elmar Stellnberger 2023-04-23 12:10:06 CEST
Created attachment 13784 [details]
installed packages at the time of the report
Comment 10 Elmar Stellnberger 2023-04-23 12:15:57 CEST
Update to mesa-23.0.3-1.mga9 didn´t resolve the issue:
> ls -l /usr/lib/dri/
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 crocus_dri.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 i915_dri.so*
-rwxr-xr-x  1 root root  8330012 Feb  9 22:29 i965_drv_video.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 iris_dri.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 kms_swrast_dri.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 nouveau_dri.so*
-rwxr-xr-x  4 root root 13226624 Apr 22 04:12 nouveau_drv_video.so*
lrwxrwxrwx  1 root root       18 Feb  9 20:02 nvidia_drv_video.so -> vdpau_drv_video.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 r300_dri.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 r600_dri.so*
-rwxr-xr-x  4 root root 13226624 Apr 22 04:12 r600_drv_video.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 radeonsi_dri.so*
-rwxr-xr-x  4 root root 13226624 Apr 22 04:12 radeonsi_drv_video.so*
lrwxrwxrwx  1 root root       18 Feb  9 20:02 s3g_drv_video.so -> vdpau_drv_video.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 swrast_dri.so*
-rwxr-xr-x  1 root root   120680 Feb  9 20:02 vdpau_drv_video.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 virtio_gpu_dri.so*
-rwxr-xr-x  4 root root 13226624 Apr 22 04:12 virtio_gpu_drv_video.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 vmwgfx_dri.so*
-rwxr-xr-x 12 root root 32352912 Apr 22 04:12 zink_dri.so*

Initially I had tried to create a link from nouveau_dri.so and/or nouveau_drv_video.so to nouveau_vieux_dri.so, but that didn´t resolve the issue: "error nouveau_vieux exports no extension".
Comment 11 Marja Van Waes 2023-04-23 12:39:04 CEST
(In reply to Elmar Stellnberger from comment #0)
> Whenever I boot directly into lxde using lxdm everything works fine. However
> if I start with runlevel 2 and want to invoke an xinit, the X-server won´t
> start:
> AIGLX error: dlopen of /usr/lib/dri/nouveau_vieux.dri.so failed
> 

Why do you or anyone else need to do start X like that? Why not start lxdm from the command line?

CC: (none) => marja11
Status: NEW => NEEDINFO

Comment 12 Marja Van Waes 2023-04-23 12:53:53 CEST
(In reply to Marja Van Waes from comment #11)

> 
> Why do you or anyone else need to do start X like that? Why not start lxdm
> from the command line?

I mean like this, as root: 

  systemctl start lxdm.service
Comment 13 Elmar Stellnberger 2023-04-23 15:15:00 CEST
  That has to work. I often run a second X-server for games in different resolution by use of xinit. Also you may decide not to use a display manager. What if you work on the console by default and only start an X-server for special cases? Also to my knowledge lxdm is the only possible choice for elder computers if you want autologin, because xdm does not do that and heavy weigth display managers like gdm and kdm won´t work. Thinking about my EEEPC it has little disk space and memory (like quite some i386 systems) and I don´t wanna be forced to use an autostarting dm, there.
Comment 14 Elmar Stellnberger 2023-04-23 15:20:15 CEST
  Apart from the fact that starting Xorg needs to be possible manually (otherwise it is clearly a bug) this report points out about a very different issue: DRI does not work and nouveau_vieux.dri.so is missing. It may just be a bug on its own that /usr/libexec/Xorg starts without a proper check for this.

Status: NEEDINFO => UNCONFIRMED
Ever confirmed: 1 => 0

Comment 15 sturmvogel 2023-04-23 16:09:23 CEST
You are using ancient hardware whose upstream support was removed from Mesa in march 2022:
https://docs.mesa3d.org/amber.html
Starting with mesa 22 (march 2022) your hardware is deprecated.

Mageia 8 had lib64dri-drivers-21.3.8-2.mga8 which contains nouveau_vieux.dri.so.
Mageia 9 has lib64dri-drivers-23.0.0-2.mga9 without nouveau_vieux.dri.so as upstream support got removed.
Comment 16 sturmvogel 2023-04-23 16:14:57 CEST
The noveau devs even reject bugreports for this deprecated drivers:
https://nouveau.freedesktop.org/MesaDrivers.html
Comment 17 Dave Hodgins 2023-04-23 16:53:20 CEST
Ouch. Elmar, try with adding xdriver=vesa to the command line.

Just fyi I normally use run level 3 on my non testing installs. A habit
developed when I was using very old hardware.

I just tested a fully up-to-date Mageia 9 x86_64 install, and after login at
run level 2 "startx startkde" is working for me.

Under systemd, run levels 2,3, and 4 are all treated the same as run level 3
was prior to systemd.

$ ll /lib/systemd/system/runlevel*|grep '>'
lrwxrwxrwx 1 root root   15 Nov 16 12:53 /lib/systemd/system/runlevel0.target -> poweroff.target
lrwxrwxrwx 1 root root   13 Nov 16 12:53 /lib/systemd/system/runlevel1.target -> rescue.target
lrwxrwxrwx 1 root root   17 Nov 16 12:53 /lib/systemd/system/runlevel2.target -> multi-user.target
lrwxrwxrwx 1 root root   17 Nov 16 12:53 /lib/systemd/system/runlevel3.target -> multi-user.target
lrwxrwxrwx 1 root root   17 Nov 16 12:53 /lib/systemd/system/runlevel4.target -> multi-user.target
lrwxrwxrwx 1 root root   16 Nov 16 12:53 /lib/systemd/system/runlevel5.target -> graphical.target
lrwxrwxrwx 1 root root   13 Nov 16 12:53 /lib/systemd/system/runlevel6.target -> reboot.target

CC: (none) => davidwhodgins

Comment 18 Elmar Stellnberger 2023-04-23 16:54:34 CEST
  You have cited a resource that tells the NV04-NV20 (GeForce 420 Go is NV17 due to Xorg.0.log) are still supported by the amber branch of Mesa. If you support the i386 architecture and Mageia´s support for it was quite well up to now, why don´t you use the amber branch for i386, then? Computers with PIV or elder CPUs usually come with elder graphics hardware. I386 is particularely useful exactly on these machines, especially if you don´t use HIGHMEM64G as kernel config option (which Mageia currently doesn´t use).
* https://www.kernelconfig.io/CONFIG_HIGHMEM64G?q=highmem64G&kernelversion=6.2.12&arch=x86
* zgrep HIGHMEM /proc/config.gz -> CONFIG_HIGHMEM4G=y - and not HMEM64G
Comment 19 Elmar Stellnberger 2023-04-23 17:04:10 CEST
Apparently I need to blacklist nouveau for that: Xorg.log says "Refusing to run, Framebuffer or dri device present". Dave, I have never heard or seen a xdriver=vesa command line option, also Xorg -xdriver=vesa does not work; I had to change my xorg.conf.
Comment 20 Elmar Stellnberger 2023-04-23 17:10:23 CEST
Blacklisting Nouveau and use of Vesa forces me to lower resolutions and there is no glx module or an xrandr for attaching an external monitor using that. Something I clearly don´t want for the PIV or newer machines. Please keep that supported! Why care that much if they don´t officially support bug reports for the amber branch; usually things can continue to work for just a long time if no one actively breaks them.
Comment 21 Elmar Stellnberger 2023-05-14 14:20:47 CEST
Can anyone point me onto how to open up an upstream report for Bug 31834? where should it be?: https://gitlab.freedesktop.org/drm, https://gitlab.freedesktop.org/search?search=mesa
Comment 22 Morgan Leijström 2023-06-23 08:52:02 CEST
> where should it be?

Issue a report and you may be guided there if right or wrong :)

From what we currently have, can we summon up and write something short symptom-remedy in errata or https://wiki.mageia.org/en/Setup_the_graphical_server ?

CC: (none) => fri

Morgan Leijström 2023-06-23 08:52:36 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=31921

Comment 23 Morgan Leijström 2025-04-28 02:27:07 CEST
Any news here?

Note You need to log in before you can comment on or make changes to this bug.