Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X in intel and nvidia setup
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zeronada
n00b
n00b


Joined: 22 Aug 2016
Posts: 5
Location: Germany

PostPosted: Wed Oct 05, 2022 11:26 am    Post subject: X in intel and nvidia setup Reply with quote

Hi everyone,

I fail to setup X during a new installation.
The hardware: Lenovo P14s with Intel Alder-Lake CPU (12th Gen Intel Core i7-1280P) and Nvidia T550 (NVIDIA Corporation TU117GLM [T550 Laptop GPU]).

When I try to start an X environment via startx (without any .xinitrc), then X crashed and my Xorg.log file ends up with the following hint which I do not understand:
Code:

Fatal server error:
[   324.965] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[   324.965] (EE)
[   324.965] (EE)
Please consult the The X.Org Foundation support


In addition, it seems that the intel hardware is not using a correct driver (lshw shows it as unclaimed):
Code:

DESKTOP-2SL8HTU ~ # lshw -c display
  *-display UNCLAIMED
       description: VGA compatible controller
       product: Alder Lake-P Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 0c
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: iomemory:600-5ff iomemory:400-3ff memory:6052000000-6052ffffff memory:4000000000-401fffffff ioport:3000(size=64) memory:c0000-dffff memory:4100000000-4106ffffff memory:4020000000-40ffffffff
  *-display
       description: 3D controller
       product: TU117GLM [T550 Laptop GPU]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:600-5ff iomemory:600-5ff irq:197 memory:bd000000-bdffffff memory:6040000000-604fffffff memory:6050000000-6051ffffff ioport:2000(size=128)
  *-graphics
       product: simple
       physical id: 2
       logical name: /dev/fb0
       capabilities: fb
       configuration: depth=32 resolution=3840,2400


This is the relevant config from make.conf for the video files:
Code:
INPUT_DEVICES="libinput synaptics"
VIDEO_CARDS="intel nvidia"


These are the compiled x11 modules for the setup:
Code:

DESKTOP-2SL8HTU ~ # emerge -av @x11-module-rebuild

 * IMPORTANT: 11 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-drivers/nvidia-drivers-515.65.01:0/515::gentoo  USE="X driver static-libs tools wayland -dist-kernel -kernel-open -persistenced" 0 KiB
[ebuild   R    ] x11-drivers/xf86-input-libinput-1.2.1::gentoo  0 KiB
[ebuild   R    ] x11-drivers/xf86-input-synaptics-1.9.2::gentoo  0 KiB


I previously tried to get a X-config from nvidia-xconfig, but this config ended up locking a black screen. The process tree from X with xterm terminals started but at least not at the correct monitor.
I deleted the generated file.
Currently, there are no additional X-config files:

Code:
DESKTOP-2SL8HTU ~ # ls /etc/X11
Sessions  chooser.sh  startDM.sh  xinit


And I did not change anything in /usr/share/X11:

Code:
DESKTOP-2SL8HTU ~ # ls /usr/share/X11/xorg.conf.d/*
/usr/share/X11/xorg.conf.d/10-quirks.conf  /usr/share/X11/xorg.conf.d/40-libinput.conf  /usr/share/X11/xorg.conf.d/70-synaptics.conf  /usr/share/X11/xorg.conf.d/nvidia-drm-outputclass.conf


They have the following content:

Code:
# Accelerometer device, posts data through ABS_X/ABS_Y, making X unusable
# http://bugs.freedesktop.org/show_bug.cgi?id=22442
Section "InputClass"
        Identifier "ThinkPad HDAPS accelerometer blacklist"
        MatchProduct "ThinkPad HDAPS accelerometer data"
        Option "Ignore" "on"
EndSection

# https://bugzilla.redhat.com/show_bug.cgi?id=523914
# Mouse does not move in PV Xen guest
# Explicitly tell evdev to not ignore the absolute axes.
Section "InputClass"
        Identifier "Xen Virtual Pointer axis blacklist"
        MatchProduct "Xen Virtual Pointer"
        Option "IgnoreAbsoluteAxes" "off"
        Option "IgnoreRelativeAxes" "off"
EndSection

# https://bugs.freedesktop.org/show_bug.cgi?id=55867
# Bug 55867 - Doesn't know how to tag XI_TRACKBALL
Section "InputClass"
        Identifier "Tag trackballs as XI_TRACKBALL"
        MatchProduct "trackball"
        MatchDriver "evdev"
        Option "TypeName" "TRACKBALL"
EndSection

# https://bugs.freedesktop.org/show_bug.cgi?id=62831
# Bug 62831 - Mionix Naos 5000 mouse detected incorrectly
Section "InputClass"
        Identifier "Tag Mionix Naos 5000 mouse XI_MOUSE"
        MatchProduct "La-VIEW Technology Naos 5000 Mouse"
        MatchDriver "evdev"
        Option "TypeName" "MOUSE"
EndSection
# Match on all types of devices but joysticks
#
# If you want to configure your devices, do not copy this file.
# Instead, use a config snippet that contains something like this:
#
# Section "InputClass"
#   Identifier "something or other"
#   MatchDriver "libinput"
#
#   MatchIsTouchpad "on"
#   ... other Match directives ...
#   Option "someoption" "value"
# EndSection
#
# This applies the option any libinput device also matched by the other
# directives. See the xorg.conf(5) man page for more info on
# matching devices.

Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection
# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
#   Option "OptionName" "value"
#
Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
#       MatchDevicePath "/dev/input/event*"
EndSection

Section "InputClass"
        Identifier "touchpad ignore duplicates"
        MatchIsTouchpad "on"
        MatchOS "Linux"
        MatchDevicePath "/dev/input/mouse*"
        Option "Ignore" "on"
EndSection

# This option enables the bottom right corner to be a right button on clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Default clickpad buttons"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
        Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
EndSection

# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Disable clickpad buttons on Apple touchpads"
        MatchProduct "Apple|bcm5974"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection

# This xorg.conf.d configuration snippet configures the X server to
# automatically load the nvidia X driver when it detects a device driven by the
# nvidia-drm.ko kernel module.  Please note that this only works on Linux kernels
# version 3.9 or higher with CONFIG_DRM enabled, and only if the nvidia-drm.ko
# kernel module is loaded before the X server is started.

Section "OutputClass"
    Identifier     "nvidia"
    MatchDriver    "nvidia-drm"
    Driver         "nvidia"
EndSection


Additional files:

The full emerge --info output:
https://dpaste.com/C8SXUTF94

The kernel config:
https://dpaste.com/GKEEKSLU5

The full Xorg-Log:
Code:

[   324.936]
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[   324.940] Current Operating System: Linux DESKTOP-2SL8HTU.lan 5.15.69-gentoo-x86_64 #1 SMP Tue Oct 4 23:18:01 -00 2022 x86_64
[   324.940] Kernel command line: BOOT_IMAGE=/vmlinuz-5.15.69-gentoo-x86_64 root=/dev/mapper/vg0-root ro rootflags=subvol=root net.ifnames=0 dolvm keymap=de real_root=/dev/mapper/vg0-root crypt_root=/dev/nvme0n1p9
[   324.944] 
[   324.946] Current version of pixman: 0.40.0
[   324.949]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[   324.949] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   324.957] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct  5 12:03:41 2022
[   324.959] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   324.959] (==) No Layout section.  Using the first Screen section.
[   324.959] (==) No screen section available. Using defaults.
[   324.959] (**) |-->Screen "Default Screen Section" (0)
[   324.959] (**) |   |-->Monitor "<default monitor>"
[   324.959] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[   324.959] (==) Automatically adding devices
[   324.959] (==) Automatically enabling devices
[   324.959] (==) Automatically adding GPU devices
[   324.959] (==) Automatically binding GPU devices
[   324.959] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   324.959] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   324.959]    Entry deleted from font path.
[   324.959] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   324.959]    Entry deleted from font path.
[   324.959] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   324.959]    Entry deleted from font path.
[   324.959] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[   324.959]    Entry deleted from font path.
[   324.959]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
[   324.959] (==) FontPath set to:
   /usr/share/fonts/misc,
   /usr/share/fonts/75dpi
[   324.959] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   324.959] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[   324.959] (II) Module ABI versions:
[   324.959]    X.Org ANSI C Emulation: 0.4
[   324.959]    X.Org Video Driver: 25.2
[   324.959]    X.Org XInput driver : 24.4
[   324.959]    X.Org Server Extension : 10.0
[   324.960] (++) using VT number 1

[   324.961] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   324.962] (II) xfree86: Adding drm device (/dev/dri/card0)
[   324.962] (II) Platform probe for /sys/devices/pci0000:00/0000:00:06.2/0000:03:00.0/drm/card0
[   324.962] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[   324.963] (--) PCI:*(0@0:2:0) 8086:46a6:17aa:22ea rev 12, Mem @ 0x6052000000/16777216, 0x4000000000/536870912, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[   324.963] (--) PCI: (3@0:0:0) 10de:1fb7:17aa:22ea rev 161, Mem @ 0xbd000000/16777216, 0x6040000000/268435456, 0x6050000000/33554432, I/O @ 0x00002000/128
[   324.963] (II) LoadModule: "glx"
[   324.963] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   324.963] (II) Module glx: vendor="X.Org Foundation"
[   324.963]    compiled for 1.21.1.4, module version = 1.0.0
[   324.963]    ABI class: X.Org Server Extension, version 10.0
[   324.963] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[   324.963]    loading driver: nvidia
[   324.963] (==) Matched nvidia as autoconfigured driver 0
[   324.963] (==) Matched nouveau as autoconfigured driver 1
[   324.963] (==) Matched nv as autoconfigured driver 2
[   324.963] (==) Matched intel as autoconfigured driver 3
[   324.963] (==) Matched modesetting as autoconfigured driver 4
[   324.963] (==) Matched fbdev as autoconfigured driver 5
[   324.963] (==) Matched vesa as autoconfigured driver 6
[   324.963] (==) Assigned the driver to the xf86ConfigLayout
[   324.963] (II) LoadModule: "nvidia"
[   324.963] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[   324.963] (II) Module nvidia: vendor="NVIDIA Corporation"
[   324.963]    compiled for 1.6.99.901, module version = 1.0.0
[   324.963]    Module class: X.Org Video Driver
[   324.963] (II) LoadModule: "nouveau"
[   324.963] (WW) Warning, couldn't open module nouveau
[   324.963] (EE) Failed to load module "nouveau" (module does not exist, 0)
[   324.963] (II) LoadModule: "nv"
[   324.963] (WW) Warning, couldn't open module nv
[   324.963] (EE) Failed to load module "nv" (module does not exist, 0)
[   324.964] (II) LoadModule: "intel"
[   324.964] (WW) Warning, couldn't open module intel
[   324.964] (EE) Failed to load module "intel" (module does not exist, 0)
[   324.964] (II) LoadModule: "modesetting"
[   324.964] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   324.964] (II) Module modesetting: vendor="X.Org Foundation"
[   324.964]    compiled for 1.21.1.4, module version = 1.21.1
[   324.964]    Module class: X.Org Video Driver
[   324.964]    ABI class: X.Org Video Driver, version 25.2
[   324.964] (II) LoadModule: "fbdev"
[   324.964] (WW) Warning, couldn't open module fbdev
[   324.964] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   324.964] (II) LoadModule: "vesa"
[   324.964] (WW) Warning, couldn't open module vesa
[   324.964] (EE) Failed to load module "vesa" (module does not exist, 0)
[   324.964] (II) NVIDIA dlloader X Driver  515.65.01  Wed Jul 20 13:50:46 UTC 2022
[   324.964] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   324.964] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   324.964] (WW) Falling back to old probe method for modesetting
[   324.964] (II) modeset(1): using default device
[   324.964] (II) systemd-logind: releasing fd for 226:0
[   324.965] (II) Loading sub module "fb"
[   324.965] (II) LoadModule: "fb"
[   324.965] (II) Module "fb" already built-in
[   324.965] (II) Loading sub module "wfb"
[   324.965] (II) LoadModule: "wfb"
[   324.965] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[   324.965] (II) Module wfb: vendor="X.Org Foundation"
[   324.965]    compiled for 1.21.1.4, module version = 1.0.0
[   324.965]    ABI class: X.Org ANSI C Emulation, version 0.4
[   324.965] (II) Loading sub module "ramdac"
[   324.965] (II) LoadModule: "ramdac"
[   324.965] (II) Module "ramdac" already built-in
[   324.965] (EE) Screen 0 deleted because of no matching config section.
[   324.965] (II) UnloadModule: "modesetting"
[   324.965] (EE)
Fatal server error:
[   324.965] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[   324.965] (EE)
[   324.965] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[   324.965] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   324.965] (EE)
[   324.972] (EE) Server terminated with error (1). Closing log file.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Oct 05, 2022 1:09 pm    Post subject: Reply with quote

Plz change
Code:

CONFIG_DRM_I915=y
to
CONFIG_DRM_I915=m

via menuconfig and rebuild the kernel.
Plz install linux-firmware preferably latest
and create
Code:

/etc/X11/xorg.conf.d/20-modesetting.conf

Section "Device"
        Identifier  "Intel Graphics"
        Driver      "modesetting"
        BusID "PCI:0:2:0"
EndSection

_________________
:)
Back to top
View user's profile Send private message
zeronada
n00b
n00b


Joined: 22 Aug 2016
Posts: 5
Location: Germany

PostPosted: Wed Oct 05, 2022 8:18 pm    Post subject: Reply with quote

Nice! Thanks for the hint and your quick response!

I got it working now, although I had in startx minimal environment where xterm is running massive screen tearing issues.
They are (basically) gone in plasma5 with composer enabled, but I am sure they will rise up again if the load increases to a certain level.

Thanks alamahant, I think this issue is resolved.

Just for readers with recent intel graphics:

I built i915 as module and got the following hint form dmesg:

Code:
[   23.776934] i915 0000:00:02.0: Your graphics device 46a6 is not properly supported by the driver in this
               kernel version. To force driver probe anyway, use i915.force_probe=46a6
               module parameter or CONFIG_DRM_I915_FORCE_PROBE=46a6 configuration option,
               or (recommended) check for kernel updates.


Without forcing, the driver is not loaded and I end up with the same problem:

Code:
  *-display UNCLAIMED
       description: VGA compatible controller
       product: Alder Lake-P Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 0c
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: iomemory:600-5ff iomemory:400-3ff memory:6052000000-6052ffffff memory:4000000000-401fffffff ioport:3000(size=64) memory:c0000-dffff memory:4100000000-4106ffffff memory:4020000000-40ffffffff
  *-display
       description: 3D controller
       product: TU117GLM [T550 Laptop GPU]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:600-5ff iomemory:600-5ff irq:197 memory:bd000000-bdffffff memory:6040000000-604fffffff memory:6050000000-6051ffffff ioport:2000(size=128)
  *-graphics
       product: simple
       physical id: 2
       logical name: /dev/fb0
       capabilities: fb
       configuration: depth=32 resolution=3840,2400


The Xorg-logfile shows errors, as expected:

Code:
[   390.603]
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[   390.608] Current Operating System: Linux localhost.localdomain 5.15.69-gentoo-x86_64 #1 SMP Wed Oct 5 18:56:43 -00 2022 x86_64
[   390.608] Kernel command line: BOOT_IMAGE=/vmlinuz-5.15.69-gentoo-x86_64 root=/dev/mapper/vg0-root ro rootflags=subvol=root net.ifnames=0 dolvm keymap=de real_root=/dev/mapper/vg0-root crypt_root=/dev/nvme0n1p9
[   390.612] 
[   390.613] Current version of pixman: 0.40.0
[   390.617]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[   390.617] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   390.624] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct  5 21:19:19 2022
[   390.626] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   390.628] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   390.628] (==) No Layout section.  Using the first Screen section.
[   390.628] (==) No screen section available. Using defaults.
[   390.628] (**) |-->Screen "Default Screen Section" (0)
[   390.628] (**) |   |-->Monitor "<default monitor>"
[   390.628] (==) No device specified for screen "Default Screen Section".
   Using the first device section listed.
[   390.628] (**) |   |-->Device "Intel Graphics"
[   390.628] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[   390.628] (==) Automatically adding devices
[   390.628] (==) Automatically enabling devices
[   390.628] (==) Automatically adding GPU devices
[   390.628] (==) Automatically binding GPU devices
[   390.628] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   390.629] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   390.629]    Entry deleted from font path.
[   390.629] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   390.629]    Entry deleted from font path.
[   390.629] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   390.629]    Entry deleted from font path.
[   390.629] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[   390.629]    Entry deleted from font path.
[   390.629]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
[   390.630] (==) FontPath set to:
   /usr/share/fonts/misc,
   /usr/share/fonts/75dpi
[   390.630] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   390.630] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[   390.630] (II) Module ABI versions:
[   390.630]    X.Org ANSI C Emulation: 0.4
[   390.630]    X.Org Video Driver: 25.2
[   390.630]    X.Org XInput driver : 24.4
[   390.630]    X.Org Server Extension : 10.0
[   390.630] (++) using VT number 1

[   390.631] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   390.631] (II) xfree86: Adding drm device (/dev/dri/card0)
[   390.631] (II) Platform probe for /sys/devices/pci0000:00/0000:00:06.2/0000:03:00.0/drm/card0
[   390.632] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[   390.633] (--) PCI:*(0@0:2:0) 8086:46a6:17aa:22ea rev 12, Mem @ 0x6052000000/16777216, 0x4000000000/536870912, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[   390.633] (--) PCI: (3@0:0:0) 10de:1fb7:17aa:22ea rev 161, Mem @ 0xbd000000/16777216, 0x6040000000/268435456, 0x6050000000/33554432, I/O @ 0x00002000/128
[   390.633] (II) LoadModule: "glx"
[   390.633] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   390.636] (II) Module glx: vendor="X.Org Foundation"
[   390.636]    compiled for 1.21.1.4, module version = 1.0.0
[   390.636]    ABI class: X.Org Server Extension, version 10.0
[   390.636] (II) LoadModule: "modesetting"
[   390.636] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   390.638] (II) Module modesetting: vendor="X.Org Foundation"
[   390.638]    compiled for 1.21.1.4, module version = 1.21.1
[   390.638]    Module class: X.Org Video Driver
[   390.638]    ABI class: X.Org Video Driver, version 25.2
[   390.638] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   390.639] (WW) Falling back to old probe method for modesetting
[   390.639] (II) modeset(1): using default device
[   390.639] (II) modeset(G0): using drv /dev/dri/card0
[   390.639] (EE) Screen 0 deleted because of no matching config section.
[   390.639] (II) UnloadModule: "modesetting"
[   390.639] (EE)
Fatal server error:
[   390.639] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[   390.639] (EE)
[   390.639] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[   390.639] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   390.639] (EE)
[   390.645] (EE) Server terminated with error (1). Closing log file.



But after loading module with the parameter:

Code:
modprobe i915 force_probe=46a6


Now the startx-command works and I do not end up with errors in X (but unfortunately with massive screen tearing, which is not so terrible as it sounds as plasma5 and its composer fix it).

Code:
[   513.018]
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[   513.022] Current Operating System: Linux localhost.localdomain 5.15.69-gentoo-x86_64 #1 SMP Wed Oct 5 18:56:43 -00 2022 x86_64
[   513.022] Kernel command line: BOOT_IMAGE=/vmlinuz-5.15.69-gentoo-x86_64 root=/dev/mapper/vg0-root ro rootflags=subvol=root net.ifnames=0 dolvm keymap=de real_root=/dev/mapper/vg0-root crypt_root=/dev/nvme0n1p9
[   513.025] 
[   513.026] Current version of pixman: 0.40.0
[   513.029]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[   513.029] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   513.035] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct  5 21:21:21 2022
[   513.036] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   513.037] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   513.037] (==) No Layout section.  Using the first Screen section.
[   513.037] (==) No screen section available. Using defaults.
[   513.037] (**) |-->Screen "Default Screen Section" (0)
[   513.037] (**) |   |-->Monitor "<default monitor>"
[   513.037] (==) No device specified for screen "Default Screen Section".
   Using the first device section listed.
[   513.037] (**) |   |-->Device "Intel Graphics"
[   513.037] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[   513.037] (==) Automatically adding devices
[   513.037] (==) Automatically enabling devices
[   513.037] (==) Automatically adding GPU devices
[   513.037] (==) Automatically binding GPU devices
[   513.037] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   513.037] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   513.037]    Entry deleted from font path.
[   513.037] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   513.037]    Entry deleted from font path.
[   513.037] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   513.038]    Entry deleted from font path.
[   513.038] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[   513.038]    Entry deleted from font path.
[   513.038]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
[   513.038] (==) FontPath set to:
   /usr/share/fonts/misc,
   /usr/share/fonts/75dpi
[   513.038] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   513.038] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[   513.038] (II) Module ABI versions:
[   513.038]    X.Org ANSI C Emulation: 0.4
[   513.038]    X.Org Video Driver: 25.2
[   513.038]    X.Org XInput driver : 24.4
[   513.038]    X.Org Server Extension : 10.0
[   513.038] (++) using VT number 1

[   513.039] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   513.039] (II) xfree86: Adding drm device (/dev/dri/card1)
[   513.039] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card1
[   513.040] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 10 paused 0
[   513.040] (II) xfree86: Adding drm device (/dev/dri/card0)
[   513.040] (II) Platform probe for /sys/devices/pci0000:00/0000:00:06.2/0000:03:00.0/drm/card0
[   513.040] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[   513.041] (--) PCI:*(0@0:2:0) 8086:46a6:17aa:22ea rev 12, Mem @ 0x6052000000/16777216, 0x4000000000/536870912, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[   513.041] (--) PCI: (3@0:0:0) 10de:1fb7:17aa:22ea rev 161, Mem @ 0xbd000000/16777216, 0x6040000000/268435456, 0x6050000000/33554432, I/O @ 0x00002000/128
[   513.041] (II) LoadModule: "glx"
[   513.041] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   513.041] (II) Module glx: vendor="X.Org Foundation"
[   513.041]    compiled for 1.21.1.4, module version = 1.0.0
[   513.041]    ABI class: X.Org Server Extension, version 10.0
[   513.041] (II) LoadModule: "modesetting"
[   513.041] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   513.042] (II) Module modesetting: vendor="X.Org Foundation"
[   513.042]    compiled for 1.21.1.4, module version = 1.21.1
[   513.042]    Module class: X.Org Video Driver
[   513.042]    ABI class: X.Org Video Driver, version 25.2
[   513.042] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   513.042] (II) modeset(0): using drv /dev/dri/card1
[   513.042] (II) modeset(G0): using drv /dev/dri/card0
[   513.042] (II) modeset(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[   513.042] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[   513.042] (==) modeset(0): RGB weight 888
[   513.042] (==) modeset(0): Default visual is TrueColor
[   513.042] (II) Loading sub module "glamoregl"
[   513.042] (II) LoadModule: "glamoregl"
[   513.042] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[   513.051] (II) Module glamoregl: vendor="X.Org Foundation"
[   513.051]    compiled for 1.21.1.4, module version = 1.0.1
[   513.051]    ABI class: X.Org ANSI C Emulation, version 0.4
[   513.211] (II) modeset(0): glamor X acceleration enabled on Mesa Intel(R) Graphics (ADL GT2)
[   513.211] (II) modeset(0): glamor initialized
[...]
[   513.222] (II) Loading sub module "fb"
[   513.222] (II) LoadModule: "fb"
[   513.222] (II) Module "fb" already built-in
[   513.222] (II) Loading sub module "shadow"
[   513.222] (II) LoadModule: "shadow"
[   513.222] (II) Loading /usr/lib64/xorg/modules/libshadow.so
[   513.222] (II) Module shadow: vendor="X.Org Foundation"
[   513.222]    compiled for 1.21.1.4, module version = 1.1.0
[   513.222]    ABI class: X.Org ANSI C Emulation, version 0.4
[   513.236] (==) modeset(0): Backing store enabled
[   513.236] (==) modeset(0): Silken mouse enabled
[   513.326] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[   513.326] (==) modeset(0): DPMS enabled
[   513.326] (II) modeset(0): [DRI2] Setup complete
[   513.326] (II) modeset(0): [DRI2]   DRI driver: iris
[   513.326] (II) modeset(0): [DRI2]   VDPAU driver: va_gl
[   513.326] (==) modeset(G0): Backing store enabled
[   513.326] (==) modeset(G0): Silken mouse enabled
[   513.326] (II) modeset(G0): Initializing kms color map for depth 24, 8 bpc.
[   513.326] (==) modeset(G0): DPMS enabled
[   513.326] (II) Initializing extension Generic Event Extension
[   513.326] (II) Initializing extension SHAPE
[...]
[   519.708] (II) systemd-logind: releasing fd for 13:66
[   519.778] (II) UnloadModule: "libinput"
[   519.778] (II) systemd-logind: releasing fd for 13:78
[   519.918] (II) UnloadModule: "libinput"
[   519.918] (II) systemd-logind: releasing fd for 13:79
[   520.060] (II) Server terminated successfully (0). Closing log file.



lshw shows that the driver work as expected:

Code:
  *-display
       description: VGA compatible controller
       product: Alder Lake-P Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 0c
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 mode=3840x2400 resolution=3840,2400 visual=truecolor xres=3840 yres=2400
       resources: iomemory:600-5ff iomemory:400-3ff irq:199 memory:6052000000-6052ffffff memory:4000000000-401fffffff ioport:3000(size=64) memory:c0000-dffff memory:4100000000-4106ffffff memory:4020000000-40ffffffff
  *-display
       description: 3D controller
       product: TU117GLM [T550 Laptop GPU]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:600-5ff iomemory:600-5ff irq:197 memory:bd000000-bdffffff memory:6040000000-604fffffff memory:6050000000-6051ffffff ioport:2000(size=128)



But unfortunately the kernel shows this error message when loading the i915 driver:

Code:
[  477.439913] Setting dangerous option force_probe - tainting kernel
[  477.440134] i915 0000:00:02.0: enabling device (0006 -> 0007)
[  477.440973] Console: switching to colour dummy device 80x25
[  477.441003] i915 0000:00:02.0: vgaarb: deactivate vga console
[  477.441449] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=mem
[  477.441934] Loading firmware: i915/adlp_dmc_ver2_10.bin
[  477.449584] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/adlp_dmc_ver2_10.bin (v2.10)
[  478.124335] i915 0000:00:02.0: [drm] failed to retrieve link info, disabling eDP
[  478.140133] Loading firmware: i915/adlp_guc_62.0.3.bin
[  478.147233] Loading firmware: i915/tgl_huc_7.9.3.bin
[  478.167030] i915 0000:00:02.0: [drm] GuC firmware i915/adlp_guc_62.0.3.bin version 62.0 submission:enabled
[  478.167032] i915 0000:00:02.0: [drm] GuC SLPC: enabled
[  478.167033] i915 0000:00:02.0: [drm] HuC firmware i915/tgl_huc_7.9.3.bin version 7.9 authenticated:yes
[  478.167880] i915 0000:00:02.0: [drm] GuC RC: enabled
[  478.390276] ------------[ cut here ]------------
[  478.390289] i915 0000:00:02.0: drm_WARN_ON(intel_dp->pps.vdd_wakeref)
[  478.390301] WARNING: CPU: 6 PID: 3849 at drivers/gpu/drm/i915/display/intel_pps.c:591 intel_pps_vdd_on_unlocked+0x273/0x280 [i915]
[  478.390359] Modules linked in: i915(+) snd_ctl_led snd_hda_codec_realtek snd_hda_codec_generic hid_multitouch nvidia_drm(PO) nvidia_modeset(PO) i2c_designware_platform i2c_designware_core nvidia(PO) snd_hda_intel snd_intel_dspcfg snd_hda_codec iwlmvm crct10dif_pclmul processor_thermal_device_pci snd_hda_core processor_thermal_device snd_pcm pcspkr processor_thermal_rfim snd_timer i2c_i801 processor_thermal_mbox intel_lpss_pci iwlwifi snd ttm processor_thermal_rapl i2c_smbus intel_lpss int3403_thermal int3400_thermal int340x_thermal_zone acpi_thermal_rel efivarfs crc32c_intel e1000e xhci_pci ptp pps_core xhci_hcd [last unloaded: i915]
[  478.390373] CPU: 6 PID: 3849 Comm: modprobe Tainted: P     U     O    T 5.15.69-gentoo-x86_64 #1
[  478.390376] Hardware name: LENOVO 21AK0015GE/21AK0015GE, BIOS N3BET47W (1.25 ) 07/11/2022
[  478.390376] RIP: 0010:intel_pps_vdd_on_unlocked+0x273/0x280 [i915]
[  478.390414] Code: 4c 8b 6f 50 4d 85 ed 75 03 4c 8b 2f e8 76 54 1e ce 48 c7 c1 78 9d 65 c0 4c 89 ea 48 c7 c7 01 83 66 c0 48 89 c6 e8 6d 43 79 ce <0f> 0b e9 1e fe ff ff e8 21 79 80 ce 90 41 54 55 53 48 89 fb e8 24
[  478.390415] RSP: 0018:ffffa64ec0327710 EFLAGS: 00010282
[  478.390416] RAX: 0000000000000000 RBX: ffff97158c25c170 RCX: 0000000000000027
[  478.390417] RDX: ffff971cdf19c468 RSI: 0000000000000001 RDI: ffff971cdf19c460
[  478.390417] RBP: ffff97158c130000 R08: ffffffff8f73ae88 R09: 00000000ffffdfff
[  478.390418] R10: ffffffff8f65aea0 R11: ffffffff8f65aea0 R12: 0000000000000001
[  478.390418] R13: ffff971581b48d80 R14: ffff97158c1307d0 R15: ffff97158c130000
[  478.390419] FS:  00007f203c8e7c40(0000) GS:ffff971cdf180000(0000) knlGS:0000000000000000
[  478.390419] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  478.390420] CR2: 0000559392a344c0 CR3: 000000010163e004 CR4: 0000000000770ee0
[  478.390420] PKRU: 55555554
[  478.390421] Call Trace:
[  478.390422]  <TASK>
[  478.390423]  ? intel_display_power_get+0x4d/0x60 [i915]
[  478.390466]  intel_dp_aux_xfer+0xe4/0x790 [i915]
[  478.390506]  ? __schedule+0x2ae/0x870
[  478.390508]  ? schedule+0x59/0xe0
[  478.390509]  intel_dp_aux_transfer+0x14b/0x2a0 [i915]
[  478.390545]  ? gen12_fwtable_read32+0x91/0x1f0 [i915]
[  478.390581]  drm_dp_dpcd_access+0x68/0x120
[  478.390583]  drm_dp_dpcd_write+0x84/0xd0
[  478.390584]  intel_dp_set_power+0x5e/0x190 [i915]
[  478.390627]  intel_ddi_post_disable+0x404/0x420 [i915]
[  478.390666]  intel_encoders_post_disable+0x76/0x90 [i915]
[  478.390709]  intel_old_crtc_state_disables+0xd0/0x1a0 [i915]
[  478.390745]  intel_atomic_commit_tail+0x1080/0x1700 [i915]
[  478.390780]  ? flush_workqueue_prep_pwqs+0x104/0x120
[  478.390781]  ? flush_workqueue+0x17f/0x3f0
[  478.390782]  intel_atomic_commit+0x317/0x3a0 [i915]
[  478.390813]  intel_modeset_init+0x182/0x260 [i915]
[  478.390848]  i915_driver_probe+0x61d/0xcf0 [i915]
[  478.390882]  ? i915_pci_probe+0x3a/0x140 [i915]
[  478.390914]  pci_device_probe+0xce/0x150
[  478.390916]  really_probe.part.0+0xb0/0x2a0
[  478.390919]  __driver_probe_device+0x8b/0x120
[  478.390920]  driver_probe_device+0x19/0x90
[  478.390921]  __driver_attach+0x69/0x130
[  478.390922]  ? __device_attach_driver+0xb0/0xb0
[  478.390923]  bus_for_each_dev+0x70/0xc0
[  478.390924]  bus_add_driver+0x119/0x1d0
[  478.390925]  driver_register+0x8a/0xe0
[  478.390926]  i915_init+0x51/0x19f [i915]
[  478.390959]  ? 0xffffffffc2f58000
[  478.390959]  do_one_initcall+0x3c/0x1d0
[  478.390961]  do_init_module+0x43/0x220
[  478.390963]  __do_sys_finit_module+0xa0/0xe0
[  478.390963]  do_syscall_64+0x59/0xc0
[  478.390965]  ? exit_to_user_mode_prepare+0x2b/0x140
[  478.390967]  entry_SYSCALL_64_after_hwframe+0x61/0xcb
[  478.390968] RIP: 0033:0x7f203c9e30a9
[  478.390970] Code: 08 44 89 e0 5b 41 5c c3 66 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 47 dd 0c 00 f7 d8 64 89 01 48
[  478.390970] RSP: 002b:00007ffcaa9f79c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[  478.390972] RAX: ffffffffffffffda RBX: 0000562bcf180d20 RCX: 00007f203c9e30a9
[  478.390972] RDX: 0000000000000000 RSI: 0000562bcf1812a0 RDI: 0000000000000003
[  478.390973] RBP: 0000000000040000 R08: 0000000000000000 R09: 0000562bcf183760
[  478.390973] R10: 0000000000000003 R11: 0000000000000246 R12: 0000562bcf1812a0
[  478.390973] R13: 0000000000000000 R14: 0000562bcf180e50 R15: 0000562bcf180d20
[  478.390974]  </TASK>
[  478.390974] ---[ end trace 56c8464533677407 ]---
[  479.395456] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 1
[  479.395603] ACPI: video: [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[  479.395636] ACPI: video: Video Device [PEGP] (multi-head: yes  rom: no  post: no)
[  479.395697] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:06/LNXVIDEO:00/input/input24
[  479.397473] ACPI: video: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[  479.397608] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input25
[  479.407866] fbcon: i915drmfb (fb0) is primary device
[  479.411031] Console: switching to colour frame buffer device 240x75
[  479.433582] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
[  513.430015] i915 0000:00:02.0: [drm] Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS.
[  515.809197] i915 0000:00:02.0: [drm] *ERROR* CPU pipe A FIFO underrun: soft,transcoder,


This error message is known and I can confirm it happens at 5.19.12, too. I will try the unstable kernels, maybe it gets better.
Back to top
View user's profile Send private message
jerith
n00b
n00b


Joined: 04 Jan 2005
Posts: 14

PostPosted: Mon Dec 05, 2022 3:58 pm    Post subject: Reply with quote

I can confirm this error goes away with kernel 6.0.8.
Back to top
View user's profile Send private message
zeronada
n00b
n00b


Joined: 22 Aug 2016
Posts: 5
Location: Germany

PostPosted: Mon Dec 05, 2022 4:01 pm    Post subject: Reply with quote

Great, thanks for sharing. I will give it a try.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Mon Dec 05, 2022 6:16 pm    Post subject: Reply with quote

jerith,

Your LTS kernel
Code:
5.15.69-gentoo-x86_64
is quite old compared to the Gentoo testing kernel, which was 6.0.10 when I looked last.

5.15 does not get new functionality added, just bug fixes. Messages like
Code:
Your graphics device 46a6 is not properly supported by the driver in this
               kernel version. To force driver probe anyway, use i915.force_probe=46a6
are an indication to try a newer kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum