LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   BLFS-12.0: no more xorg video driver? (https://www.linuxquestions.org/questions/linux-from-scratch-13/blfs-12-0-no-more-xorg-video-driver-4175730117/)

derguteweka 10-21-2023 10:18 AM

BLFS-12.0: no more xorg video driver?
 
Moin,

Just building BLFS-12.0 on an old DELL Latitude D820.
LFS runs properly, didn't experience anything unusual so far.
I also went through capter 24 until "Xorg-7 Testing and Configuration" without visible hassels.
Now, after typing "startx" problems start. No graphics, but errors:
Code:

grep EE  /var/log/Xorg.0.log
[    47.506] Current Operating System: Linux d820 6.4.12 #4 SMP PREEMPT_DYNAMIC Sat Oct 21 11:16:32 CEST 2023 x86_64
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    48.091] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    48.091] (EE) Failed to load module "nv" (module does not exist, 0)
[    48.167] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    48.168] (EE) Failed to load module "vesa" (module does not exist, 0)
[    48.172] (EE) open /dev/dri/card0: No such file or directory
[    48.172] (EE) open /dev/dri/card0: No such file or directory
[    48.172] (EE) Screen 0 deleted because of no matching config section.
[    48.172] (EE) Device(s) detected, but none match those in the config file.
[    48.172] (EE)
[    48.172] (EE) no screens found(EE)
[    48.172] (EE)
[    48.172] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    48.172] (EE)
[    48.176] (EE) Server terminated with error (1). Closing log file.

Well, i didn't build any of the video drivers, which were tried to load.
Looks like the chapter "xorg drivers" e.g. in BLFS-11.3, where also video drivers used to be built, has been reduced to "xorg input drivers" in BLFS-12.0.
What did i miss?

cheers,
WK

hazel 10-21-2023 10:33 AM

Did you carry out the necessary kernel configuration under mesa?
https://www.linuxfromscratch.org/blf...ml#mesa-kernel

The recommended Xorg driver nowadays is the modesetting driver included with Xorg-server, but it needs the appropriate kernel video driver to interface with.

derguteweka 10-21-2023 10:44 AM

Moin,

Yeah, at least i think so. lsmod shows this:
Code:

Module                  Size  Used by
nouveau              3346432  0
drm_ttm_helper        12288  1 nouveau
ttm                    94208  2 drm_ttm_helper,nouveau
iwl3945              139264  0
i2c_algo_bit          20480  1 nouveau
iwlegacy              135168  1 iwl3945
drm_display_helper    180224  1 nouveau
drm_kms_helper        233472  2 drm_display_helper,nouveau
mac80211            1224704  2 iwl3945,iwlegacy
syscopyarea            12288  1 drm_kms_helper
libarc4                12288  1 mac80211
sysfillrect            12288  1 drm_kms_helper
sysimgblt              12288  1 drm_kms_helper
cfg80211            1204224  3 iwl3945,iwlegacy,mac80211
nvidiafb              65536  1
firewire_ohci          53248  0
cfbfillrect            12288  2 nvidiafb,drm_kms_helper
cfbimgblt              12288  2 nvidiafb,drm_kms_helper
coretemp              16384  0
vgastate              16384  1 nvidiafb
cfbcopyarea            12288  2 nvidiafb,drm_kms_helper
pcspkr                12288  0

During boot i also see, when the nvidiafb driver gets loaded: the text resolution changes from 80x25 to: "Need some glasses" ;-)

cheers,
WK

EDIT: seems there's just one driver: modesetting_drv.so in /usr/lib/xorg/modules/drivers, nothing else.
Is that ok?
Somehow the xorg-server seems to know the "right" drivers to load:
Code:

[    23.001]    ABI class: X.Org Server Extension, version 10.0
[    23.001] (==) Matched nouveau as autoconfigured driver 0
[    23.001] (==) Matched nv as autoconfigured driver 1
[    23.001] (==) Matched modesetting as autoconfigured driver 2
[    23.001] (==) Matched fbdev as autoconfigured driver 3
[    23.001] (==) Matched vesa as autoconfigured driver 4
[    23.001] (==) Assigned the driver to the xf86ConfigLayout
[    23.001] (II) LoadModule: "nouveau"
[    23.003] (WW) Warning, couldn't open module nouveau
[    23.003] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    23.003] (II) LoadModule: "nv"
[    23.003] (WW) Warning, couldn't open module nv
[    23.003] (EE) Failed to load module "nv" (module does not exist, 0)
[    23.003] (II) LoadModule: "modesetting"
[    23.003] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    23.077] (II) Module modesetting: vendor="X.Org Foundation"

but it doesn't find them. Me neither :-(

Keith Hedger 10-22-2023 07:19 AM

Individual drivers are available here:
https://www.x.org/archive/individual/driver/

Most build with the standard "./configure,make make install'

derguteweka 10-22-2023 09:15 AM

Moin,

Yeah, this is approximatly, what i tried...
Currently i'm trying with xorg-server-21.1.7 and the drivers from BLFS-11.3.
Doesnt look good either.
When i just have built the nouveau driver only, i get another error during startx - the /dev/dri interface doesn't exist:

Code:

[  628.515] (II) LoadModule: "nouveau"
[  628.562] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[  628.611] (II) Module nouveau: vendor="X.Org Foundation"
[  628.611]    compiled for 1.21.1.8, module version = 1.0.17
[  628.611]    Module class: X.Org Video Driver
[  628.611]    ABI class: X.Org Video Driver, version 25.2
[  628.611] (II) LoadModule: "nv"
[  628.611] (WW) Warning, couldn't open module nv
[  628.611] (EE) Failed to load module "nv" (module does not exist, 0)
[  628.611] (II) LoadModule: "modesetting"
[  628.611] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  628.611] (WW) Warning, couldn't open module nv
[  628.611] (EE) Failed to load module "nv" (module does not exist, 0)
[  628.611] (II) LoadModule: "modesetting"
[  628.611] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  628.644] (II) Module modesetting: vendor="X.Org Foundation"
[  628.644]    compiled for 1.21.1.7, module version = 1.21.1
[  628.645]    Module class: X.Org Video Driver
[  628.645]    ABI class: X.Org Video Driver, version 25.2
[  628.645] (II) LoadModule: "fbdev"
[  628.645] (WW) Warning, couldn't open module fbdev
[  628.645] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  628.645] (II) LoadModule: "vesa"
[  628.645] (WW) Warning, couldn't open module vesa
[  628.645] (EE) Failed to load module "vesa" (module does not exist, 0)
[  628.645] (II) NOUVEAU driver
[  628.645] (II) NOUVEAU driver for NVIDIA chipset families :
[  628.645]    RIVA TNT            (NV04)
[  628.645]    RIVA TNT2          (NV05)
[  628.645]    GeForce 256        (NV10)
[  628.645]    GeForce 2          (NV11, NV15)
[  628.645]    GeForce 4MX        (NV17, NV18)
[  628.645]    GeForce 3          (NV20)
[  628.645]    GeForce 4Ti        (NV25, NV28)
[  628.645]    GeForce FX          (NV3x)
[  628.646]    GeForce 6          (NV4x)
[  628.646]    GeForce 7          (G7x)
[  628.646]    GeForce 8          (G8x)
[  628.646]    GeForce 9          (G9x)
[  628.646]    GeForce GTX 2xx/3xx (GT2xx)
[  628.646]    GeForce GTX 4xx/5xx (GFxxx)
[  628.646]    GeForce GTX 6xx/7xx (GKxxx)
[  628.646]    GeForce GTX 9xx    (GMxxx)
[  628.646]    GeForce GTX 10xx    (GPxxx)
[  628.646] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  628.813] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[  628.813] (EE) open /dev/dri/card0: No such file or directory
[  628.813] (WW) Falling back to old probe method for modesetting
[  628.813] (EE) open /dev/dri/card0: No such file or directory
[  628.813] (EE) Screen 0 deleted because of no matching config section.
[  628.813] (II) UnloadModule: "modesetting"
[  628.813] (EE) Device(s) detected, but none match those in the config file.
[  628.813] (EE)
Fatal server error:
[  628.813] (EE) no screens found(EE)

When i additionally build the fbdev driver, this get's loaded and i can see something on the laptops display which comes close to the expected(the xterms and the xclock). Unfortunatelly there is huge flickering, so it's completly unusable. I cannot see anything suspicious in the log, the modeline looks sensible to me. I know from the DELL manual, that the resolution is indeed 1920x1200.

Code:

[ 19308.398] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 19308.398] (II) FBDEV: driver for framebuffer: fbdev
[ 19308.582] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[ 19308.582] (EE) open /dev/dri/card0: No such file or directory
[ 19308.582] (WW) Falling back to old probe method for modesetting
[ 19308.582] (EE) open /dev/dri/card0: No such file or directory
[ 19308.582] (II) Loading sub module "fbdevhw"
[ 19308.582] (II) LoadModule: "fbdevhw"
[ 19308.582] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 19308.596] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 19308.596]    compiled for 1.21.1.7, module version = 0.0.2
[ 19308.596]    ABI class: X.Org Video Driver, version 25.2
[ 19308.596] (**) FBDEV(1): claimed PCI slot 1@0:0:0
[ 19308.596] (II) FBDEV(1): using default device
[ 19308.596] (EE) Screen 0 deleted because of no matching config section.
[ 19308.596] (II) UnloadModule: "modesetting"
[ 19308.596] (II) FBDEV(0): Console is 8bpp, defaulting to 32bpp
[ 19308.596] (II) FBDEV(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[ 19308.596] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
[ 19308.596] (==) FBDEV(0): RGB weight 888
[ 19308.596] (==) FBDEV(0): Default visual is TrueColor
[ 19308.596] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[ 19308.596] (II) FBDEV(0): hardware: NV1d (video memory: 262144kB)
[ 19308.596] (II) FBDEV(0): checking modes against framebuffer device...
[ 19308.596] (II) FBDEV(0): checking modes against monitor...
[ 19308.596] (II) FBDEV(0): Virtual size is 1920x1200 (pitch 1920)
[ 19308.596] (**) FBDEV(0):  Built-in mode "current": 154.0 MHz, 74.0 kHz, 60.0 Hz
[ 19308.596] (II) FBDEV(0): Modeline "current"x0.0  154.01  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync -csync (74.0 kHz b)
[ 19308.596] (==) FBDEV(0): DPI set to (96, 96)
[ 19308.596] (II) Loading sub module "fb"
[ 19308.596] (II) LoadModule: "fb"
[ 19308.596] (II) Module "fb" already built-in

Hrrmmm, this doesn't make me happy at all :-(

cheers,
WK

derguteweka 10-23-2023 11:59 AM

Moin,

Even more unhappyness approaching here:
I used some older Ubuntu-LTS from USB-Bootstick as host to build LFS (Yeah, i know, this might cause trouble building LFS but i think i got it anyway - no unusual behaviour in the testuites) - there i noticed, that the GUI was a bit distored and there was also nagging about some data integrity in some files, yadayada...anyway - i managed to install/run sshd on this thing and did the whole B/LFS build via ssh from my usual PC.
But now i put a rather fresh Ubuntu (23.10.1) on my USB-Stick, booted again - and - HECK! - the "Try Ubuntu" thing works as a charm. No problems with picture flickering, etc. Their nouveau driver seems to work - no nasty words in Xorg.0.log.
/dev/dri/ exists...
Which leads to the conclusion: The Hardware is OK, it's my own incompetence. With the words of 2 great american philosophers Beavis&Butthead: This sucks!HeheHmhm :-(

WK

derguteweka 10-24-2023 11:22 AM

Moin,

Phew, finally got xorg up and running. with xorg-server from BLFS-12.0.
Root of the problem seemed to be this:
Code:

[  628.813] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[  628.813] (EE) open /dev/dri/card0: No such file or directory
[  628.813] (WW) Falling back to old probe method for modesetting
[  628.813] (EE) open /dev/dri/card0: No such file or directory

I didn't have /dev/dri on my system.
I fixed it by fiddeling around in the config of the Kernel in Device drivers/Graphics and framebuffer. Seems i missed something important there.
Look at the age of this DELL beauty :-)
Code:

[  668.980] (II) NOUVEAU(0): Manufacturer: LPL  Model: ab00  Serial#: 0
[  668.980] (II) NOUVEAU(0): Year: 2005  Week: 0

cheers,
WK


All times are GMT -5. The time now is 12:58 AM.