new to crux: problem with xorg

Hi everyone. I'm new to crux and it's the first time I install a source based system. I feel actracted by the atmosphere of crux: essential, clean, rich of documentation (I found documentation on frame buffer in /usr/src/linux*/ that isn't so easy to find). Crux people seem to be very expert. I'm not an expert at all, but I like to understand and to do things by myself.. During the installation I had the sensation to not completely control the process, particularly the big set of kernel compilation options. Probably I made a mistake and now I've a problem to start X. When I try to run X with $ startx (as user) or # startx (as root) I get an error and I'm not able to understand it. Now I'm using another pc to have a browser in order to write to you. Here it is the content of /var/log/Xorg.0.log - Can you help me? Thanks ********************************************************* [ 11775.191] X.Org X Server 1.21.1.4 X Protocol Version 11, Revision 0 [ 11775.192] Current Operating System: Linux asusprove 5.15.55 #1 SMP Sat May 6 21:02:07 UTC 2023 x86_64 [ 11775.192] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15.55 root=/dev/sda3 ro [ 11775.192] [ 11775.193] Current version of pixman: 0.40.0 [ 11775.193] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 11775.193] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 11775.195] (==) Log file: "/var/log/Xorg.0.log", Time: Sun May 21 22:51:52 2023 [ 11775.196] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 11775.196] (==) No Layout section. Using the first Screen section. [ 11775.196] (==) No screen section available. Using defaults. [ 11775.196] (**) |-->Screen "Default Screen Section" (0) [ 11775.196] (**) | |-->Monitor "<default monitor>" [ 11775.196] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 11775.196] (==) Automatically adding devices [ 11775.196] (==) Automatically enabling devices [ 11775.196] (==) Automatically adding GPU devices [ 11775.196] (==) Automatically binding GPU devices [ 11775.196] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 11775.196] (WW) The directory "/usr/share/fonts/X11/OTF" does not exist. [ 11775.196] Entry deleted from font path. [ 11775.196] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist. [ 11775.196] Entry deleted from font path. [ 11775.196] (==) FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/TTF, /usr/share/fonts/X11/100dpi, /usr/share/fonts/X11/75dpi [ 11775.196] (==) ModulePath set to "/usr/lib/xorg/modules" [ 11775.196] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 11775.196] (II) Module ABI versions: [ 11775.196] X.Org ANSI C Emulation: 0.4 [ 11775.196] X.Org Video Driver: 25.2 [ 11775.196] X.Org XInput driver : 24.4 [ 11775.196] X.Org Server Extension : 10.0 [ 11775.196] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory) [ 11775.196] (++) using VT number 1 [ 11775.198] (--) PCI:*(0@0:2:0) 8086:1616:1043:1b3d rev 9, Mem @ 0xb1000000/16777216, 0xc0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072 [ 11775.198] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) [ 11775.198] (II) LoadModule: "glx" [ 11775.198] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [ 11775.199] (II) Module glx: vendor="X.Org Foundation" [ 11775.199] compiled for 1.21.1.4, module version = 1.0.0 [ 11775.199] ABI class: X.Org Server Extension, version 10.0 [ 11775.199] (==) Matched intel as autoconfigured driver 0 [ 11775.199] (==) Matched modesetting as autoconfigured driver 1 [ 11775.199] (==) Matched fbdev as autoconfigured driver 2 [ 11775.199] (==) Matched vesa as autoconfigured driver 3 [ 11775.199] (==) Assigned the driver to the xf86ConfigLayout [ 11775.199] (II) LoadModule: "intel" [ 11775.199] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so [ 11775.199] (II) Module intel: vendor="X.Org Foundation" [ 11775.199] compiled for 1.21.1.4, module version = 2.99.917 [ 11775.199] Module class: X.Org Video Driver [ 11775.199] ABI class: X.Org Video Driver, version 25.2 [ 11775.199] (II) LoadModule: "modesetting" [ 11775.199] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so [ 11775.199] (II) Module modesetting: vendor="X.Org Foundation" [ 11775.199] compiled for 1.21.1.4, module version = 1.21.1 [ 11775.199] Module class: X.Org Video Driver [ 11775.199] ABI class: X.Org Video Driver, version 25.2 [ 11775.199] (II) LoadModule: "fbdev" [ 11775.200] (WW) Warning, couldn't open module fbdev [ 11775.200] (EE) Failed to load module "fbdev" (module does not exist, 0) [ 11775.200] (II) LoadModule: "vesa" [ 11775.200] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so [ 11775.200] (II) Module vesa: vendor="X.Org Foundation" [ 11775.200] compiled for 1.21.1.4, module version = 2.5.0 [ 11775.200] Module class: X.Org Video Driver [ 11775.200] ABI class: X.Org Video Driver, version 25.2 [ 11775.200] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets: i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45, 4 Series, G45/G43, Q45/Q43, G41, B43 [ 11775.200] (II) intel: Driver for Intel(R) HD Graphics [ 11775.200] (II) intel: Driver for Intel(R) Iris(TM) Graphics [ 11775.200] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics [ 11775.200] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 11775.200] (II) VESA: driver for VESA chipsets: vesa [ 11775.202] (EE) open /dev/dri/card0: No such file or directory [ 11775.202] (WW) Falling back to old probe method for modesetting [ 11775.202] (EE) open /dev/dri/card0: No such file or directory [ 11775.202] vesa: Refusing to run on UEFI [ 11775.202] (EE) Screen 0 deleted because of no matching config section. [ 11775.202] (II) UnloadModule: "modesetting" [ 11775.202] (EE) Device(s) detected, but none match those in the config file. [ 11775.202] (EE) Fatal server error: [ 11775.202] (EE) no screens found(EE) [ 11775.202] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 11775.203] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 11775.203] (EE) [ 11775.204] (EE) Server terminated with error (1). Closing log file.

Hello. attilio semenzato wrote in <CA++=HU2wQpsevHVBw+go=iHStBksMa+JfhB7JkSbB_VXiLgtBA@mail.gmail.com>: You seem to be missing the right graphic card driver, at least. I would recommend downloading a kernel via ArchLinux or Alpine, and boot via that. Then you can see which modules are needed. Then build kernel which has those. (Or simply always such a precompiled set.) Note: the CRUX kmod package does NOT support ZSTD nor any other compression. You first need to build one like for example (i assume this just works since all the packages needed are in core): #?0|kent:$ diff- /usr/ports/core/kmod/Pkgfile /usr/ports/olay-lock/kmod/Pkgfile --- /usr/ports/core/kmod/Pkgfile 2022-07-02 16:48:17.290225367 +0200 +++ /usr/ports/olay-lock/kmod/Pkgfile 2022-09-03 17:10:55.735760208 +0200 @@ -15,7 +15,8 @@ build() { --bindir=/sbin \ --sysconfdir=/etc \ --disable-manpages \ - --with-rootlibdir=/lib + --with-rootlibdir=/lib \ + --with-zstd --with-zlib --with-openssl make make DESTDIR=$PKG install --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) |~~ |..and in spring, hear David Leonard sing.. | |The black bear, The black bear, |blithely holds his own holds himself at leisure |beating it, up and down tossing over his ups and downs with pleasure |~~ |Farewell, dear collar bear

On 2023-05-22 11:14, attilio semenzato wrote:
Hi everyone.
Hello and welcome! Glad you're liking crux. Regarding the Xorg issues, these error (EE) lines are probably the most telling:
[ 11775.202] (EE) open /dev/dri/card0: No such file or directory [ 11775.202] (EE) open /dev/dri/card0: No such file or directory
This often indicates missing DRI/DRM support in the kernel. I would recommend checking your kernel config for CONFIG_DRM and the appropriate CONFIG_DRM_* options for your GPU driver. If those are missing, add them, recompile the kernel, and give it another try. If you're not sure which kernel options are needed, tell us what kind of GPU you have (lspci | grep -E '3D|VGA') and we can maybe give some hints/answers. Regards, Matt

Hi. $ lspci gives 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) I also found all the kernel compilation options in /usr/src/linux*/kernel/config_data and the relevant section probably is the following, after the stars line. If you give me some hints I can try to recompile the kernel with a new set of option ***************************************************************** # Graphics support # # CONFIG_AGP is not set CONFIG_VGA_ARB=y CONFIG_VGA_ARB_MAX_GPUS=1 # CONFIG_VGA_SWITCHEROO is not set CONFIG_DRM=m # CONFIG_DRM_DP_AUX_CHARDEV is not set CONFIG_DRM_KMS_HELPER=m CONFIG_DRM_FBDEV_EMULATION=y CONFIG_DRM_FBDEV_OVERALLOC=100 # CONFIG_DRM_LOAD_EDID_FIRMWARE is not set # CONFIG_DRM_DP_CEC is not set # # I2C encoder or helper chips # # CONFIG_DRM_I2C_CH7006 is not set # CONFIG_DRM_I2C_SIL164 is not set # CONFIG_DRM_I2C_NXP_TDA998X is not set # CONFIG_DRM_I2C_NXP_TDA9950 is not set # end of I2C encoder or helper chips # # ARM devices # # end of ARM devices # CONFIG_DRM_RADEON is not set # CONFIG_DRM_AMDGPU is not set # CONFIG_DRM_NOUVEAU is not set # CONFIG_DRM_I915 is not set # CONFIG_DRM_VGEM is not set # CONFIG_DRM_VKMS is not set # CONFIG_DRM_VMWGFX is not set # CONFIG_DRM_GMA500 is not set # CONFIG_DRM_UDL is not set # CONFIG_DRM_AST is not set # CONFIG_DRM_MGAG200 is not set # CONFIG_DRM_QXL is not set # CONFIG_DRM_VIRTIO_GPU is not set CONFIG_DRM_PANEL=y # # Display Panels # # end of Display Panels CONFIG_DRM_BRIDGE=y CONFIG_DRM_PANEL_BRIDGE=y # # Display Interface Bridges # # CONFIG_DRM_ANALOGIX_ANX78XX is not set # end of Display Interface Bridges # CONFIG_DRM_ETNAVIV is not set # CONFIG_DRM_BOCHS is not set # CONFIG_DRM_CIRRUS_QEMU is not set # CONFIG_DRM_GM12U320 is not set # CONFIG_DRM_SIMPLEDRM is not set # CONFIG_DRM_XEN_FRONTEND is not set # CONFIG_DRM_VBOXVIDEO is not set # CONFIG_DRM_GUD is not set # CONFIG_DRM_HYPERV is not set # CONFIG_DRM_LEGACY is not set CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y Il giorno lun 22 mag 2023 alle ore 20:22 Matt Housh <jaeger@crux.ninja> ha scritto:
On 2023-05-22 11:14, attilio semenzato wrote:
Hi everyone.
Hello and welcome! Glad you're liking crux.
Regarding the Xorg issues, these error (EE) lines are probably the most telling:
[ 11775.202] (EE) open /dev/dri/card0: No such file or directory [ 11775.202] (EE) open /dev/dri/card0: No such file or directory
This often indicates missing DRI/DRM support in the kernel. I would recommend checking your kernel config for CONFIG_DRM and the appropriate CONFIG_DRM_* options for your GPU driver. If those are missing, add them, recompile the kernel, and give it another try.
If you're not sure which kernel options are needed, tell us what kind of GPU you have (lspci | grep -E '3D|VGA') and we can maybe give some hints/answers.
Regards, Matt
_______________________________________________ CRUX mailing list CRUX@lists.crux.nu https://lists.crux.nu/mailman/listinfo/crux

On 2023-05-23 10:34, attilio semenzato wrote:
Hi.
$ lspci gives 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
I also found all the kernel compilation options in /usr/src/linux*/kernel/config_data and the relevant section probably is the following, after the stars line. If you give me some hints I can try to recompile the kernel with a new set of option
Based on your lspci output and kernel configuration snippet, I think all you need to do is enable this option and recompile your kernel:
# CONFIG_DRM_I915 is not set
The i915 driver covers quite a few Intel GPUs, including that one. See https://linux-hardware.org/index.php?id=pci:8086-1616-17aa-2226 for some more information. Regards, Matt

Thanks Il mar 23 mag 2023, 19:30 Matt Housh <jaeger@crux.ninja> ha scritto:
On 2023-05-23 10:34, attilio semenzato wrote:
Hi.
$ lspci gives 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
I also found all the kernel compilation options in /usr/src/linux*/kernel/config_data and the relevant section probably is the following, after the stars line. If you give me some hints I can try to recompile the kernel with a new set of option
Based on your lspci output and kernel configuration snippet, I think all you need to do is enable this option and recompile your kernel:
# CONFIG_DRM_I915 is not set
The i915 driver covers quite a few Intel GPUs, including that one. See https://linux-hardware.org/index.php?id=pci:8086-1616-17aa-2226 for some more information.
Regards, Matt
_______________________________________________ CRUX mailing list CRUX@lists.crux.nu https://lists.crux.nu/mailman/listinfo/crux

It worked! Thanks again. it's been a beautiful experience. Now I have two new questions (if this is the trend, the questions will grow exponentially :) ). 1. When I changed the compilation option CONFIG_DRM_I915 using make menuconfig, I used a search functionality given by the program. In the results of the search the option appeared in a record, and I remember that a field was "prompt". The question is: how are all these options organized and, in particular, what is the meaning of prompt? Is there a way to study the structure and the interdependence of the different options? 2. Now startx starts and I can see xterm windows as I asked in ~/.xinitrc, but I don't see any mouse pointer or, if i3 window manager is called, I see a mouse pointer in the center of the screen but I can't move it with touchpad. Where would I search the reason of this? Another kernel compilation option? Ciao (italian regards) Il giorno mar 23 mag 2023 alle ore 19:30 Matt Housh <jaeger@crux.ninja> ha scritto:
On 2023-05-23 10:34, attilio semenzato wrote:
Hi.
$ lspci gives 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
I also found all the kernel compilation options in /usr/src/linux*/kernel/config_data and the relevant section probably is the following, after the stars line. If you give me some hints I can try to recompile the kernel with a new set of option
Based on your lspci output and kernel configuration snippet, I think all you need to do is enable this option and recompile your kernel:
# CONFIG_DRM_I915 is not set
The i915 driver covers quite a few Intel GPUs, including that one. See https://linux-hardware.org/index.php?id=pci:8086-1616-17aa-2226 for some more information.
Regards, Matt
_______________________________________________ CRUX mailing list CRUX@lists.crux.nu https://lists.crux.nu/mailman/listinfo/crux

On 2023-05-29 01:18, attilio semenzato wrote:
It worked! Thanks again. it's been a beautiful experience. Now I have two new questions (if this is the trend, the questions will grow exponentially :) ). 1. When I changed the compilation option CONFIG_DRM_I915 using make menuconfig, I used a search functionality given by the program. In the results of the search the option appeared in a record, and I remember that a field was "prompt". The question is: how are all these options organized and, in particular, what is the meaning of prompt? Is there a way to study the structure and the interdependence of the different options? 2. Now startx starts and I can see xterm windows as I asked in ~/.xinitrc, but I don't see any mouse pointer or, if i3 window manager is called, I see a mouse pointer in the center of the screen but I can't move it with touchpad. Where would I search the reason of this? Another kernel compilation option?
Hey, sorry for the slow response, been very busy lately. Regarding question 1, I believe the meaning of "prompt" is the text with which menuconfig prompts you for a given option. For example, the prompt for CONFIG_DRM is "Prompt: Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)" which matches the text you see in the menu. As for how they're organized, I couldn't answer that, there's probably a long history of kernel development in that answer. :) Regarding question 2, touchpads can be challenging to get working because there are many different types and interfaces. With that said, the solution here is likely similar to the original issue. That is to say, a kernel option or multiple kernel options is/are missing. Check the outputs of 'lspci' and 'lsusb' to see if there's something that looks like your touchpad there. Then maybe we can figure out which kernel options are needed. Mine, for example, is an "ETPS/2 Elantech Touchpad" as seen by the kernel/syslog and required some weird things I wouldn't have expected like CONFIG_X86_INTEL_LPSS. Hope this helps. Regards, Matt
participants (3)
-
attilio semenzato
-
Matt Housh
-
Steffen Nurpmeso