You are not logged in.
After upgrading CPU, programs running with the intel intergrated graphics card such as glxgears render correctly and at a high frame rate but the results are only displayed when the window is resized. Programs like firefox which do not use the gpu in this way display fine.
For example:
[hxm@hxm ~]$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
1202 frames in 5.0 seconds = 240.291 FPS
But the gears will appear stationary until the window is resized and will stop refreshing once the resizing is complete.
There are also a couple of related X11 log errors but I do not know which, if any, are causing the issue.
[ 34.336] (II) LoadModule: "fbdev"
[ 34.336] (WW) Warning, couldn't open module fbdev
[ 34.336] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 34.375] (EE) AIGLX error: dlopen of /usr/lib/dri/i965_dri.so failed (/usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or>
[ 34.375] (EE) AIGLX error: unable to load driver i965
[ 34.616] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 34.623] (EE) intel(0): Failed to submit rendering commands (Invalid argument), disabling acceleration.
I have not found any explanation to why this is happening. Any help/pointers would be greatly appreciated.
Xorg log:
[ 34.300]
X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
[ 34.300] Current Operating System: Linux arch20c 5.17.7-arch1-1 #1 SMP PREEMPT Thu, 12 May 2022 18:55:54 +0000 x86_64
[ 34.300] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img cryptdevice=UUID=26fcc2ea-a2b7-4195-b752-2d153198c284:cryptlvm root=/dev/G1/root rw intel_iommu=on
[ 34.301]
[ 34.301] Current version of pixman: 0.40.0
[ 34.301] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 34.301] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 34.301] (==) Log file: "/home/hvm/.local/share/xorg/Xorg.0.log", Time: Sun May 15 07:36:34 2022
[ 34.302] (==) Using config file: "/etc/X11/xorg.conf"
[ 34.302] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 34.302] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 34.303] (==) No Layout section. Using the first Screen section.
[ 34.303] (==) No screen section available. Using defaults.
[ 34.303] (**) |-->Screen "Default Screen Section" (0)
[ 34.303] (**) | |-->Monitor "<default monitor>"
[ 34.304] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 34.304] (==) Automatically adding devices
[ 34.304] (==) Automatically enabling devices
[ 34.304] (==) Automatically adding GPU devices
[ 34.304] (==) Automatically binding GPU devices
[ 34.304] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 34.305] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 34.305] Entry deleted from font path.
[ 34.305] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[ 34.305] Entry deleted from font path.
[ 34.305] (Run 'mkfontdir' on "/usr/share/fonts/TTF").
[ 34.306] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 34.306] Entry deleted from font path.
[ 34.306] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 34.306] Entry deleted from font path.
[ 34.306] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[ 34.306] Entry deleted from font path.
[ 34.306] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[ 34.306] Entry deleted from font path.
[ 34.306] (==) FontPath set to:
[ 34.306] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 34.306] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 34.306] (II) Module ABI versions:
[ 34.306] X.Org ANSI C Emulation: 0.4
[ 34.306] X.Org Video Driver: 25.2
[ 34.306] X.Org XInput driver : 24.4
[ 34.306] X.Org Server Extension : 10.0
[ 34.307] (++) using VT number 1
[ 34.310] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[ 34.312] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 34.312] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[ 34.313] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[ 34.318] (--) PCI:*(0@0:2:0) 8086:4680:1462:7d25 rev 12, Mem @ 0x41000000/16777216, 0x50000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[ 34.318] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 34.318] (II) LoadModule: "glx"
[ 34.321] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 34.330] (II) Module glx: vendor="X.Org Foundation"
[ 34.330] compiled for 1.21.1.3, module version = 1.0.0
[ 34.330] ABI class: X.Org Server Extension, version 10.0
[ 34.330] (==) Matched intel as autoconfigured driver 0
[ 34.330] (==) Matched modesetting as autoconfigured driver 1
[ 34.330] (==) Matched fbdev as autoconfigured driver 2
[ 34.330] (==) Matched vesa as autoconfigured driver 3
[ 34.330] (==) Assigned the driver to the xf86ConfigLayout
[ 34.330] (II) LoadModule: "intel"
[ 34.331] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 34.334] (II) Module intel: vendor="X.Org Foundation"
[ 34.334] compiled for 1.21.1.1, module version = 2.99.917
[ 34.334] Module class: X.Org Video Driver
[ 34.334] ABI class: X.Org Video Driver, version 25.2
[ 34.334] (II) LoadModule: "modesetting"
[ 34.334] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 34.336] (II) Module modesetting: vendor="X.Org Foundation"
[ 34.336] compiled for 1.21.1.3, module version = 1.21.1
[ 34.336] Module class: X.Org Video Driver
[ 34.336] ABI class: X.Org Video Driver, version 25.2
[ 34.336] (II) LoadModule: "fbdev"
[ 34.336] (WW) Warning, couldn't open module fbdev
[ 34.336] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 34.336] (II) LoadModule: "vesa"
[ 34.336] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 34.336] (II) Module vesa: vendor="X.Org Foundation"
[ 34.336] compiled for 1.21.1.1, module version = 2.5.0
[ 34.336] Module class: X.Org Video Driver
[ 34.336] ABI class: X.Org Video Driver, version 25.2
[ 34.337] (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
[ 34.337] (II) intel: Driver for Intel(R) HD Graphics
[ 34.337] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[ 34.337] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[ 34.337] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 34.337] (II) VESA: driver for VESA chipsets: vesa
[ 34.337] xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted)
[ 34.338] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20201103
[ 34.338] (II) intel(0): SNA compiled from 2.99.917-916-g31486f40
[ 34.356] (WW) Falling back to old probe method for modesetting
[ 34.356] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 34.357] (WW) intel(0): Unknown chipset
[ 34.357] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 8 threads
[ 34.357] (II) intel(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 34.357] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 34.357] (==) intel(0): RGB weight 888
[ 34.357] (==) intel(0): Default visual is TrueColor
[ 34.359] (II) intel(0): Output HDMI1 has no monitor section
[ 34.359] (II) intel(0): Enabled output HDMI1
[ 34.359] (II) intel(0): Output HDMI2 has no monitor section
[ 34.359] (II) intel(0): Enabled output HDMI2
[ 34.359] (II) intel(0): Output DP1 has no monitor section
[ 34.360] (II) intel(0): Enabled output DP1
[ 34.360] (II) intel(0): Output HDMI3 has no monitor section
[ 34.360] (II) intel(0): Enabled output HDMI3
[ 34.360] (II) intel(0): Output DP2 has no monitor section
[ 34.360] (II) intel(0): Enabled output DP2
[ 34.360] (II) intel(0): Output HDMI4 has no monitor section
[ 34.360] (II) intel(0): Enabled output HDMI4
[ 34.360] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[ 34.361] (II) intel(0): Output VIRTUAL1 has no monitor section
[ 34.361] (II) intel(0): Enabled output VIRTUAL1
[ 34.361] (--) intel(0): Output HDMI1 using initial mode 1920x1080 on pipe 0
[ 34.361] (--) intel(0): Output DP1 using initial mode 1920x1080 on pipe 1
[ 34.362] (==) intel(0): TearFree enabled
[ 34.362] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[ 34.362] (==) intel(0): DPI set to (96, 96)
[ 34.362] (II) Loading sub module "dri3"
[ 34.362] (II) LoadModule: "dri3"
[ 34.362] (II) Module "dri3" already built-in
[ 34.362] (II) Loading sub module "dri2"
[ 34.362] (II) LoadModule: "dri2"
[ 34.362] (II) Module "dri2" already built-in
[ 34.362] (II) Loading sub module "present"
[ 34.362] (II) LoadModule: "present"
[ 34.362] (II) Module "present" already built-in
[ 34.362] (II) UnloadModule: "modesetting"
[ 34.362] (II) Unloading modesetting
[ 34.362] (II) UnloadModule: "vesa"
[ 34.362] (II) Unloading vesa
[ 34.364] (II) intel(0): SNA initialized with generic backend
[ 34.364] (==) intel(0): Backing store enabled
[ 34.364] (==) intel(0): Silken mouse enabled
[ 34.364] (II) intel(0): HW Cursor enabled
[ 34.365] (==) intel(0): DPMS enabled
[ 34.366] (==) intel(0): Display hotplug detection enabled
[ 34.366] (II) intel(0): Textured video not supported on this hardware or backend
[ 34.367] (II) intel(0): [DRI2] Setup complete
[ 34.367] (II) intel(0): [DRI2] DRI driver: i965
[ 34.367] (II) intel(0): [DRI2] VDPAU driver: va_gl
[ 34.367] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[ 34.367] (II) intel(0): hardware support for Present enabled
[ 34.367] (II) Initializing extension Generic Event Extension
[ 34.367] (II) Initializing extension SHAPE
[ 34.367] (II) Initializing extension MIT-SHM
[ 34.368] (II) Initializing extension XInputExtension
[ 34.369] (II) Initializing extension XTEST
[ 34.369] (II) Initializing extension BIG-REQUESTS
[ 34.369] (II) Initializing extension SYNC
[ 34.370] (II) Initializing extension XKEYBOARD
[ 34.370] (II) Initializing extension XC-MISC
[ 34.370] (II) Initializing extension SECURITY
[ 34.371] (II) Initializing extension XFIXES
[ 34.371] (II) Initializing extension RENDER
[ 34.371] (II) Initializing extension RANDR
[ 34.372] (II) Initializing extension COMPOSITE
[ 34.372] (II) Initializing extension DAMAGE
[ 34.372] (II) Initializing extension MIT-SCREEN-SAVER
[ 34.373] (II) Initializing extension DOUBLE-BUFFER
[ 34.373] (II) Initializing extension RECORD
[ 34.373] (II) Initializing extension DPMS
[ 34.373] (II) Initializing extension Present
[ 34.374] (II) Initializing extension DRI3
[ 34.374] (II) Initializing extension X-Resource
[ 34.374] (II) Initializing extension XVideo
[ 34.374] (II) Initializing extension XVideo-MotionCompensation
[ 34.374] (II) Initializing extension GLX
[ 34.375] (EE) AIGLX error: dlopen of /usr/lib/dri/i965_dri.so failed (/usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or directory)
[ 34.375] (EE) AIGLX error: unable to load driver i965
[ 34.616] (II) IGLX: Loaded and initialized swrast
[ 34.616] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 34.616] (II) Initializing extension XFree86-VidModeExtension
[ 34.617] (II) Initializing extension XFree86-DGA
[ 34.617] (II) Initializing extension XFree86-DRI
[ 34.617] (II) Initializing extension DRI2
[ 34.623] (EE) intel(0): Failed to submit rendering commands (Invalid argument), disabling acceleration.
[ 34.624] (II) intel(0): switch to mode 1920x1080@60.0 on HDMI1 using pipe 0, position (0, 0), rotation normal, reflection none
[ 34.627] (II) intel(0): switch to mode 1920x1080@60.0 on DP1 using pipe 1, position (0, 0), rotation normal, reflection none
[ 34.641] (II) intel(0): Setting screen physical size to 508 x 285
[ 34.694] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[ 34.694] (**) Power Button: Applying InputClass "libinput keyboard catchall"
Last edited by 1lumin (2022-06-06 20:56:47)
Offline
I managed to solve this issue by adding a /etc/X11/xorg.conf.d/20-intel.conf file containing:
Section "Device"
Identifier "Intel Graphics"
Driver "modesetting"
Option "AccelMethod" "glamor"
Option "DRI" "3"
EndSection
The default mesa configuration is incorrect because it is using SNA instead of glamor and because it is using intel driver instead of kernel modesetting.
Now all applications work as expected with no issues.
The full solution was found here
Offline
This has nothing to do with mesa, you can just not install xf86-video-intel in the first place and the config you posted above becomes a noop since all of this is default already, granted xf86-video-intel isn't installed.
Offline