LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-30-2020, 10:25 PM   #1
noxxic
LQ Newbie
 
Registered: Oct 2020
Posts: 3

Rep: Reputation: Disabled
Question BLFS - Stuck at x server start (EE) no screens found(EE)


Hello,

I'm having trouble starting X server in LFS 10.0 with linux-5.8.3 kernel. I'm not familiar with Graphic Drivers that much and need direction in the right choices in building kernel.

Background information:

- I'm on amd64 cpu with graphics card: Radeon VII https://www.amd.com/en/products/graphics/amd-radeon-vii. Note that I have two monitors attached via HDMI to Radeon VII.
- I have built everything in a chroot environment on Ubuntu 20.04 host.
- I've been successful with the LFS and BLFS and can boot into console by rebooting.
- I got stuck at installing X Server and getting a display: http://www.linuxfromscratch.org/blfs...rg-config.html
- I have not setup auto start of X Server as described here http://www.linuxfromscratch.org/blfs...e/x/xinit.html. I start it manually by running `X -configure` and the test command `X -config /root/xorg.conf.new`

When I run `X -configure` and the test command `X -config /root/xorg.conf.new`. It produces the following:

/root/xorg.conf.new:

Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	Screen      2  "Screen2" RightOf "Screen1"
	Screen      3  "Screen3" RightOf "Screen2"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc/"
	FontPath     "/usr/share/fonts/X11/TTF/"
	FontPath     "/usr/share/fonts/X11/OTF/"
	FontPath     "/usr/share/fonts/X11/Type1/"
	FontPath     "/usr/share/fonts/X11/100dpi/"
	FontPath     "/usr/share/fonts/X11/75dpi/"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Monitor2"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Monitor3"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "AccelMethod"        	# <str>
        #Option     "DRI3"               	# [<bool>]
        #Option     "DRI"                	# <i>
        #Option     "ShadowPrimary"      	# [<bool>]
        #Option     "TearFree"           	# [<bool>]
        #Option     "DeleteUnusedDP12Displays" 	# [<bool>]
        #Option     "VariableRefresh"    	# [<bool>]
	Identifier  "Card0"
	Driver      "amdgpu"
	BusID       "PCI:9:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "AccelMethod"        	# <str>
        #Option     "DRI3"               	# [<bool>]
        #Option     "DRI"                	# <i>
        #Option     "ShadowPrimary"      	# [<bool>]
        #Option     "TearFree"           	# [<bool>]
        #Option     "DeleteUnusedDP12Displays" 	# [<bool>]
        #Option     "VariableRefresh"    	# [<bool>]
	Identifier  "Card1"
	Driver      "amdgpu"
	BusID       "PCI:10:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "AccelMethod"        	# <str>
        #Option     "DRI3"               	# [<bool>]
        #Option     "DRI"                	# <i>
        #Option     "ShadowPrimary"      	# [<bool>]
        #Option     "TearFree"           	# [<bool>]
        #Option     "DeleteUnusedDP12Displays" 	# [<bool>]
        #Option     "VariableRefresh"    	# [<bool>]
	Identifier  "Card2"
	Driver      "amdgpu"
	BusID       "PCI:11:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "AccelMethod"        	# <str>
        #Option     "DRI3"               	# [<bool>]
        #Option     "DRI"                	# <i>
        #Option     "ShadowPrimary"      	# [<bool>]
        #Option     "TearFree"           	# [<bool>]
        #Option     "DeleteUnusedDP12Displays" 	# [<bool>]
        #Option     "VariableRefresh"    	# [<bool>]
	Identifier  "Card3"
	Driver      "amdgpu"
	BusID       "PCI:11:0:1"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen2"
	Device     "Card2"
	Monitor    "Monitor2"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen3"
	Device     "Card3"
	Monitor    "Monitor3"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
Xorg.0.log:

Quote:
[ 1272.139]
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[ 1272.139] Build Operating System: Linux 5.4.0-48-generic x86_64
[ 1272.139] Current Operating System: Linux devx011 5.8.9 #1 SMP Fri Oct 30 21:02:38 EDT 2020 x86_64
[ 1272.139] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.8.3-lfs-10.0 root=/dev/sdb1 ro rootfstype=ext4 rootdelay=10
[ 1272.140] Build Date: 29 October 2020 01:41:31AM
[ 1272.140]
[ 1272.140] Current version of pixman: 0.40.0
[ 1272.141] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 1272.141] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 1272.142] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Oct 30 21:50:17 2020
[ 1272.142] (++) Using config file: "/root/xorg.conf.new"
[ 1272.142] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 1272.142] (==) ServerLayout "X.org Configured"
[ 1272.142] (**) |-->Screen "Screen0" (0)
[ 1272.142] (**) | |-->Monitor "Monitor0"
[ 1272.143] (**) | |-->Device "Card0"
[ 1272.143] (**) |-->Screen "Screen1" (1)
[ 1272.143] (**) | |-->Monitor "Monitor1"
[ 1272.143] (**) | |-->Device "Card1"
[ 1272.143] (**) |-->Screen "Screen2" (2)
[ 1272.143] (**) | |-->Monitor "Monitor2"
[ 1272.143] (**) | |-->Device "Card2"
[ 1272.143] (**) |-->Screen "Screen3" (3)
[ 1272.143] (**) | |-->Monitor "Monitor3"
[ 1272.143] (**) | |-->Device "Card3"
[ 1272.143] (**) |-->Input Device "Mouse0"
[ 1272.143] (**) |-->Input Device "Keyboard0"
[ 1272.143] (==) Automatically adding devices
[ 1272.143] (==) Automatically enabling devices
[ 1272.143] (==) Automatically adding GPU devices
[ 1272.143] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/misc/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/misc/").
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/100dpi/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/100dpi/").
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/75dpi/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/75dpi/").
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/misc/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/misc/").
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/100dpi/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/100dpi/").
[ 1272.143] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/75dpi/".
[ 1272.143] Entry deleted from font path.
[ 1272.143] (Run 'mkfontdir' on "/usr/share/fonts/X11/75dpi/").
[ 1272.143] (**) FontPath set to:
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/,
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/
[ 1272.143] (**) ModulePath set to "/usr/lib/xorg/modules"
[ 1272.143] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 1272.143] (WW) Disabling Mouse0
[ 1272.143] (WW) Disabling Keyboard0
[ 1272.143] (II) Loader magic: 0x61bcc0
[ 1272.143] (II) Module ABI versions:
[ 1272.143] X.Org ANSI C Emulation: 0.4
[ 1272.143] X.Org Video Driver: 24.1
[ 1272.143] X.Org XInput driver : 24.1
[ 1272.143] X.Org Server Extension : 10.0
[ 1272.143] (--) using VT number 7

[ 1272.143] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 1272.145] (--) PCI:*(11@0:0:0) 1002:66af:1002:081e rev 193, Mem @ 0xe0000000/268435456, 0xf0000000/2097152, 0xfc900000/524288, I/O @ 0x0000d000/256, BIOS @ 0x????????/131072
[ 1272.146] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 1272.146] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 1272.146] (II) LoadModule: "glx"
[ 1272.146] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 1272.146] (II) Module glx: vendor="X.Org Foundation"
[ 1272.146] compiled for 1.20.8, module version = 1.0.0
[ 1272.146] ABI class: X.Org Server Extension, version 10.0
[ 1272.146] (II) LoadModule: "amdgpu"
[ 1272.146] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[ 1272.146] (II) Module amdgpu: vendor="X.Org Foundation"
[ 1272.146] compiled for 1.20.8, module version = 19.1.0
[ 1272.146] Module class: X.Org Video Driver
[ 1272.146] ABI class: X.Org Video Driver, version 24.1
[ 1272.146] (II) AMDGPU: Driver for AMD Radeon:
All GPUs supported by the amdgpu kernel driver
[ 1272.149] (II) AMDGPU(0): [KMS] drm report modesetting isn't supported.
[ 1272.149] (II) AMDGPU(1): [KMS] drm report modesetting isn't supported.
[ 1272.149] (II) AMDGPU(2): [KMS] drm report modesetting isn't supported.
[ 1272.149] (II) AMDGPU(3): [KMS] drm report modesetting isn't supported.
[ 1272.149] (EE) Screen 0 deleted because of no matching config section.
[ 1272.149] (II) UnloadModule: "amdgpu"
[ 1272.149] (EE) Screen 0 deleted because of no matching config section.
[ 1272.149] (II) UnloadModule: "amdgpu"
[ 1272.149] (EE) Screen 0 deleted because of no matching config section.
[ 1272.149] (II) UnloadModule: "amdgpu"
[ 1272.149] (EE) Screen 0 deleted because of no matching config section.
[ 1272.149] (II) UnloadModule: "amdgpu"
[ 1272.149] (EE) Device(s) detected, but none match those in the config file.
[ 1272.149] (EE)
Fatal server error:
[ 1272.149] (EE) no screens found(EE)
[ 1272.149] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 1272.149] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 1272.149] (EE)
[ 1272.151] (EE) Server terminated with error (1). Closing log file.
I have compiled pretty much all the drivers I could on the X Drivers page http://www.linuxfromscratch.org/blfs.../x7driver.html but when I re-compiled the linux-kernel with all the kernel configurations described under those packages I got a blank screen during boot. (The last message on the boot screen was about starting edev, and then instead of dropping into console it wouldn't respond to keyboard or mouse- had to hard restart.

On this try I've decided to build the kernel with only amdgpu modifications made http://www.linuxfromscratch.org/blfs...-amdgpu-driver. Which gave me the above errors.

Questions:

Q1) Is it typical to build the kernel with all the drivers so that it supports VM and other possible graphics drivers? Or is that problematic?
Q2) Is amdgpu wrong for Radeon VII? Should it be ATI drivers? How do I determine that- can a command on Host OS (Ubuntu) be of help?
Q3) Any ideas that come up with debugging process would be appreciated.

Thank you in advance.

Last edited by noxxic; 11-02-2020 at 07:06 PM.
 
Old 11-06-2020, 04:09 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The way to handle X has changed from an Xorg.conf to leaving it blank, and dding files as needed in /etc/X11/xorg.conf.d/. The first thing I would suggest is booting into BLFS, using no config at all and starting X to see what works. X has become very good at figuring stuff out for itself.

5 Years ago, I need special sound and video config for a multimedia event, and cobbled up this 20-video.conf which lived in /etc/X11/xorg.conf.d for a while. Some of the options are obsolete now but you can make your own using the video section of 'man xorg.conf' you eill get a fresh log every time you start X in /var/log/Xorg.0.log, or if you need to trap screen errors do it from runlevel 3 with
Code:
startx >~/x.err 2>&1
and x.err will be a fresh log every time.
 
Old 11-09-2020, 12:42 AM   #3
arch-linq
Member
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,BLFS
Posts: 110

Rep: Reputation: Disabled
BLFS is not linux beginner friendly. You need to install and undertand X from a distro then build it on blfs. It takes some help the first time. A properly built X will start with just modesetting. No driver needed. It uses KMS. So mv or delete w/e is in the X config directories. There's two locations that can be used. /usr/share/X11 and etc/X11 and xorg.conf.d is where an xorg.conf goes in one of those preferbly etc one. Not gonna get into xorg.conf here because thats required knowledge to have prior to doing BLFS.

Quote:
[ 1272.139] Build Operating System: Linux 5.4.0-48-generic x86_64
[ 1272.139] Current Operating System: Linux devx011 5.8.9 #1 SMP Fri Oct 30 21:02:38 EDT 2020 x86_64
[ 1272.139] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.8.3-lfs-10.0 root=/dev/sdb1 ro rootfstype=ext4 rootdelay=10
This shows 3 different kernels? Whats up with that.

Quote:
[ 1272.143] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
This is why its a black screen. You did not follow the book deps for the dbus and systemd for X to work. Other errors (KMS) show the kernel isn't built right.

I would drop into #lfs-support irc and ask from the beginning how to build X and play close attn and take notes on what is said. There are circular dependencies one must get right for X to function properly.

You should mention if you are on bare metal or a VM in your help request. Amongst other info that's missing.

Last edited by arch-linq; 11-09-2020 at 12:43 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
failed to start light display manager blfs (system gets stuck) ahmed bedair Linux From Scratch 4 07-13-2019 06:57 AM
X server can't start Error: No screens found perl Ubuntu 3 11-28-2005 02:06 AM
The X Server cannot start because no screens are found Eerath SUSE / openSUSE 7 11-21-2005 08:56 AM
no screens found : I'm stuck samael26 Debian 5 07-16-2005 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration