LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   buildroot 2021.02.1: black screen after Xorg launched (https://www.linuxquestions.org/questions/linux-from-scratch-13/buildroot-2021-02-1-black-screen-after-xorg-launched-4175729840/)

zvivered 10-13-2023 12:48 PM

buildroot 2021.02.1: black screen after Xorg launched
 
5 Attachment(s)
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

mrmazda 10-14-2023 02:32 AM

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.

zvivered 10-14-2023 07:25 AM

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

mrmazda 10-14-2023 12:49 PM

Quote:

Originally Posted by zvivered (Post 6458732)
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.

zvivered 10-16-2023 11:08 AM

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

TB0ne 10-16-2023 11:30 AM

Quote:

Originally Posted by zvivered (Post 6459140)
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???

mrmazda 10-16-2023 12:39 PM

Quote:

Originally Posted by zvivered (Post 6459140)
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

zvivered 10-16-2023 02:17 PM

2 Attachment(s)
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

mrmazda 10-16-2023 03:25 PM

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.

zvivered 10-17-2023 03:52 AM

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

mrmazda 10-17-2023 07:18 AM

Quote:

Originally Posted by zvivered (Post 6459283)
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.

TB0ne 10-17-2023 07:59 AM

Quote:

Originally Posted by zvivered (Post 6459283)
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?

zvivered 10-17-2023 09:49 AM

Hi TBOne,

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

Thank you,
Zvika

TB0ne 10-17-2023 10:05 AM

Quote:

Originally Posted by zvivered (Post 6459328)
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???

zvivered 10-17-2023 12:46 PM

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


All times are GMT -5. The time now is 04:08 PM.