LinuxQuestions.org
Visit Jeremy's Blog.
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-13-2023, 12:48 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Rep: Reputation: 23
buildroot 2021.02.1: black screen after Xorg launched


Hello,

Using buildroot 2021.02.1 for x64 I built root file system that contain Xorg.
Right after Xorg is launched I got black screen.

According to Xorg.0.0.log (attached) there is no error.
I tried to run: xeyes and got:
Can't open display

I noticed the following lines in Xorg.0.0.log:
Code:
[     5.116] (==) No Layout section.  Using the first Screen section.
[     5.116] (==) No screen section available. Using defaults.
[     5.116] (**) |-->Screen "Default Screen Section" (0)
[     5.116] (**) |   |-->Monitor "<default monitor>"
[     5.117] (==) No monitor specified for screen "Default Screen Section".
On the same PC I booted Knoppix 9.1. Xorg works fine.

I noticed that Knoppix contains several files in:
/usr/share/X11/xorg.conf.d

But in my file system this folder contains only the file: 10-quirks.conf

Can you please advise what can be the reason for the black screen ?

Thank you,
Zvika
Attached Files
File Type: log cpuinfo.log (15.6 KB, 3 views)
File Type: log dmesg.log (57.8 KB, 3 views)
File Type: log meminfo.log (1.2 KB, 5 views)
File Type: log Xorg.0.0.log (31.8 KB, 7 views)
File Type: log config.log (102.0 KB, 4 views)

Last edited by zvivered; 10-13-2023 at 03:20 PM.
 
Old 10-14-2023, 02:32 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
The Xorg.0.log lines you quoted are rather common:
Code:
> inxi -CGS
System:
  Host: <> Kernel: 5.14.21-150500.55.19-default arch: x86_64 bits: 64
    Desktop: KDE v: 3.5.10 Distro: openSUSE Leap 15.5
CPU:
  Info: dual core model: Intel Core i3-7100T bits: 64 type: MT MCP cache:
    L2: 512 KiB
  Speed (MHz): avg: 2165 min/max: 800/3400 cores: 1: 3400 2: 2811 3: 1636
    4: 813
Graphics:
  Device-1: Intel HD Graphics 630 driver: i915 v: kernel
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: iris gpu: i915 resolution: 1920x1200~60Hz
  API: EGL v: 1.5 drivers: iris,swrast platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 22.3.5
    renderer: Mesa Intel HD Graphics 630 (KBL GT2)
> grep -A5 "Layout section" /var/log/Xorg.0.log
[     8.878] (==) No Layout section.  Using the first Screen section.
[     8.878] (==) No screen section available. Using defaults.
[     8.878] (**) |-->Screen "Default Screen Section" (0)
[     8.878] (**) |   |-->Monitor "<default monitor>"
[     8.879] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
Start by trying not using the unofficially deprecated xf86-video-intel (the Intel DDX's official upstream package name) display driver that hasn't had an official release in over a decade. Most of Intel's Linux driver writers have focused in the time since mainly on the default DIX display driver "modesetting" that isn't separately packaged. To try it, simply uninstall xf86-video-intel.

Your CPU was fairly young when kernel 4.19 and xorg 1.20.10 were current. You might benefit from newer kernel and/or Xorg.
 
Old 10-14-2023, 07:25 AM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Original Poster
Rep: Reputation: 23
Hi mrmazda, All,

The solution is:
export DISPLAY=:0
Then I managed to run xterm, xeyes (for example)

Regarding the driver, from the following list, which should I use ?
I noticed that with Knoppix (for example), kms is used, not intel.

Following is the list from buildroot menu:
Quote:
#
# X11R7 Drivers
#
BR2_PACKAGE_XDRIVER_XF86_INPUT_EVDEV=y
# BR2_PACKAGE_XDRIVER_XF86_INPUT_JOYSTICK is not set
BR2_PACKAGE_XDRIVER_XF86_INPUT_KEYBOARD=y
# BR2_PACKAGE_XDRIVER_XF86_INPUT_LIBINPUT is not set
BR2_PACKAGE_XDRIVER_XF86_INPUT_MOUSE=y
# BR2_PACKAGE_XDRIVER_XF86_INPUT_SYNAPTICS is not set
# BR2_PACKAGE_XDRIVER_XF86_INPUT_TSLIB is not set
# BR2_PACKAGE_XDRIVER_XF86_INPUT_VMMOUSE is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_AMDGPU is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_ARK is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_AST is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_ATI is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_CIRRUS is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_DUMMY is not set
BR2_PACKAGE_XDRIVER_XF86_VIDEO_FBDEV=y
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_FBTURBO is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_GLINT is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_I128 is not set
BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL=y
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_MACH64 is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_MGA is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_NEOMAGIC is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_NOUVEAU is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_NV is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_OPENCHROME is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_QXL is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_R128 is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_SAVAGE is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_SILICONMOTION is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_SIS is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_TDFX is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_TGA is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_TRIDENT is not set
BR2_PACKAGE_XDRIVER_XF86_VIDEO_VESA=y
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_VMWARE is not set
# BR2_PACKAGE_XDRIVER_XF86_VIDEO_VOODOO is not set
Thank you,
Zvika

Last edited by zvivered; 10-14-2023 at 09:11 AM.
 
Old 10-14-2023, 12:49 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by zvivered View Post
Regarding the driver, from the following list, which should I use ?
I noticed that with Knoppix (for example), kms is used, not intel.
It's fine to build the intel DDX Xorg/X11 display driver. It depends on KMS (Kernel Mode Setting), which is provided by the i915 kernel module (driver) in all Linux distros, including LFS and Knoppix. The modesetting DIX display driver also depends on the i915 kernel module. Every competent display driver depends on a KMS module. Just because the intel DDX is available doesn't mean you should use it. If it doesn't seem to work, try the (default) alternative, the "modesetting" DIX display driver. Try reading the primer too.
 
1 members found this post helpful.
Old 10-16-2023, 11:08 AM   #5
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Original Poster
Rep: Reputation: 23
Hi mrmazda,

Highly appreciate your help.

What do you mean by "DIX display driver" ?
Is it part of the drivers in the kernel source ?

Currently I have the following (I)I message in the X log:
modeset(0): No glamor support in the X Server.

I did not find this driver in the kernel source and not in the buildroot menu.
Should I download, compile and insert it before X org is lauunched ?

Thank you,
Zvika
 
Old 10-16-2023, 11:30 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by zvivered View Post
Hi mrmazda,
Highly appreciate your help.

What do you mean by "DIX display driver" ? Is it part of the drivers in the kernel source ? Currently I have the following (I)I message in the X log:
modeset(0): No glamor support in the X Server.

I did not find this driver in the kernel source and not in the buildroot menu. Should I download, compile and insert it before X org is lauunched ?
Did you read the link you were given that explains this, and what it is?? And again, as you've been asked MANY times before, what hardware are you working on?? You provide no details (again). After fifteen years working with such hardware, building your own kernels, writing kernel modules, etc., it's hard to know why you'd need assistance on something like that.

And why are you building a two-year-old version of things on new hardware???
 
Old 10-16-2023, 12:39 PM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by zvivered View Post
What do you mean by "DIX display driver" ?
Read this primer.

Quote:
Is it part of the drivers in the kernel source ?
No.
Code:
# inxi -S
System:
  Host: 00srv Kernel: 5.14.21-150500.55.31-default arch: x86_64 bits: 64
    Console: pty pts/0 Distro: openSUSE Leap 15.5
# rpm -qf /usr/lib64/xorg/modules/drivers/modesetting_drv.so
xorg-x11-server-21.1.4-150500.5.1.x86_64
#
Quote:
Currently I have the following (I)I message in the X log:
modeset(0): No glamor support in the X Server.
Xorg's modesetting DIX display driver depends on Xorg's Glamor support, which apparently is missing from your configuration.

Quote:
I did not find this driver in the kernel source and not in the buildroot menu.
https://cgit.freedesktop.org/xorg/xs...rs/modesetting
 
Old 10-16-2023, 02:17 PM   #8
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Original Poster
Rep: Reputation: 23
Hi mrmazda,

According to the primer:

.."drivers" required for competent X operation are:
gma500 (kernel) or i915 (kernel) plus intel (DDX) or modesetting (DIX) for Intel GPUs/IGPs

In my kernel:
CONFIG_DRM_I915=y
CONFIG_DRM_GMA500=y

How should I select "intel(DDX) or modesetting (DIX)" in buildroot configuration ?
It seems glamor.c is not compiled at all.

Thank you,
Zvika
Attached Files
File Type: log config.kernel.log (113.8 KB, 1 views)
File Type: log config.buildroot.log (103.3 KB, 1 views)

Last edited by zvivered; 10-16-2023 at 02:19 PM.
 
Old 10-16-2023, 03:25 PM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Configuring and building a kernel have nothing to do with X11/Xorg's intel (DDX) or modesetting (DIX) display drivers. These two display drivers simply depend on the i915 kernel DRM module being loaded. They can't function otherwise.
 
Old 10-17-2023, 03:52 AM   #10
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Original Poster
Rep: Reputation: 23
Hi mrmazda,

Sorry. I do not understand.

You wrote: "...have nothing to do with X11/Xorg's intel (DDX) or modesetting (DIX) display drivers"

Those display drivers are supplied with Xorg ? I'm working with Xorg 1.20.10 contained in buildroot 2021.02.1

Is there something wrong in my buildroot configuration ?

Best regards,
Zvika
 
Old 10-17-2023, 07:18 AM   #11
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by zvivered View Post
You wrote: "...have nothing to do with X11/Xorg's intel (DDX) or modesetting (DIX) display drivers"

Those display drivers are supplied with Xorg ? I'm working with Xorg 1.20.10 contained in buildroot 2021.02.1

Is there something wrong in my buildroot configuration ?
I don't know. I'm not a LFS user. Each XDRIVER_XF86_VIDEO item in the list in the #3 post is optional. The default is not among them. Instead, it (modesetting_drv.so, as built) is a component of the X11/Xorg xserver. As built and installed, modesetting_drv.so is located with vesa_drv.so and fbdev_drv.so, instead of with *_dri.so corresponding to each XDRIVER_XF86_VIDEO item.
 
Old 10-17-2023, 07:59 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by zvivered View Post
Hi mrmazda,
Sorry. I do not understand.

You wrote: "...have nothing to do with X11/Xorg's intel (DDX) or modesetting (DIX) display drivers" Those display drivers are supplied with Xorg ? I'm working with Xorg 1.20.10 contained in buildroot 2021.02.1 Is there something wrong in my buildroot configuration ?
Again:
  • You claim to be a kernel developer with *FIFTEEN YEARS* experience.
  • You don't tell us what hardware you're using (brand/model)
  • You are still using a two-year old version of things on ostensibly new hardware
Is there a reason you cannot provide details, or acknowledge what you're being told?? You had to be given a primer twice, and another link which explain things. What else do you need?
 
Old 10-17-2023, 09:49 AM   #13
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Original Poster
Rep: Reputation: 23
Hi TBOne,

The output of /proc/cpuinfo is attached + dmesg + Xorg log.
What further info is required ?

Thank you,
Zvika
 
Old 10-17-2023, 10:05 AM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by zvivered View Post
Hi TBOne,
The output of /proc/cpuinfo is attached + dmesg + Xorg log. What further info is required ?
As you've been asked many, MANY times, why can't you just say "I have <brand/model> computer, with these specs?" Why do you expect us to download and trawl through your log files to try to figure out what you're working with???

Simple brand/model. Like "Dell Inspirion 1610" or "Raspberry Pi 4", 8 GB of RAM and <BRAND> video. Why is that hard???

And again, you ignore being asked why you're using two year old build on this (guessing) new project. And again, you claim to have a 'team' of kernel developers and you've been doing this 15 years...why can't you read the docs you've been provided, or know what they're talking about???
 
Old 10-17-2023, 12:46 PM   #15
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Original Poster
Rep: Reputation: 23
Hi TBOne,

The SBC is called C875. It's a 3U SBC with Intel Xeon E-2276ME processor with integrated Intel UHD Graphics 630.

This is not a new project. It's a project we started developing ~2 years ago. This is why I prefer not to change buildroot version.

Of course I will upgrade in case I have no other option.

As always, I read the documentation and also googled this issue, with no results.

Thank you,
Zvika

Last edited by zvivered; 10-17-2023 at 05:15 PM.
 
  


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
xorg-server-21.1.4 black screen, but xorg-server-1.17.4 works. why? xlfs-0.2 Linux - General 15 02-04-2023 01:42 PM
[SOLVED] Thu Feb 18 19:29:30 UTC 2021 and 20:47:35 UTC 2021: Strange ChangeLog? Thom1b Slackware 4 02-20-2021 01:55 AM

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

All times are GMT -5. The time now is 10:19 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