Ksysguard not showing any graph and libGL error

Hi everyone!
I have a Lenovo S540:

Operating System: Manjaro Linux
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Kernel Version: 5.8.16-2-MANJARO
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 7.5 GiB of RAM

Today I tried to run Ksysguard and I noticed that it didn’t show any graph. Then I tried running it from konsole and Ksysguard starts, but on konsole I have:

libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/dri)
libGL error: failed to load driver: swrast

Is there a way to fix this error?

Thanks,
Paola

Hello,

Please make sure you run:
sudo pacman-mirrors && sudo pacman -Syyu
sudo pacman -S lib32-mesa mesa
and you reboot your system after that.

1 Like

Thank you. Done, but nothing changed. I can add that there is nothing under list of sensors in ksysguard, only “localhost” that continously blinks.
Paola

Please post the output of inxi -Gxxx

Thank you. Here it is:
Graphics:
Device-1: Intel UHD Graphics vendor: Lenovo driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:9b41
Device-2: Chicony Integrated Camera type: USB driver: uvcvideo bus ID: 1-6:2
chip ID: 04f2:b61e serial: 0001
Display: x11 server: X.Org 1.20.9 compositor: kwin_x11 driver: intel
unloaded: modesetting alternate: fbdev,vesa resolution: 1920x1080 s-dpi: 96
OpenGL: renderer: N/A v: N/A direct render: N/A

There’s your problem. Please post the output of cat /var/log/Xorg.0.log | grep EE and journalctl -p3 -b

EDIT: Also ls /etc/X11/xorg.conf.d

cat /var/log/Xorg.0.log | grep EE
[ 3.383] Current Operating System: Linux paola-81nf 5.8.16-2-MANJARO #1 SMP PREEMPT Mon Oct 19 11:33:03 UTC 2020 x86_64
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 3.430] (EE) Failed to load module “fbdev” (module does not exist, 0)
[ 3.430] (EE) Failed to load module “vesa” (module does not exist, 0)
[ 3.445] (II) Initializing extension MIT-SCREEN-SAVER
[ 4.140] (EE) libinput: MSFT0001:02 04F3:30BC Touchpad: Failed to create a device for /dev/input/mouse1
[ 4.140] (EE) PreInit returned 2 for “MSFT0001:02 04F3:30BC Touchpad”
[ 4.325] (EE) Failed to open authorization file “/var/run/sddm/{08bc567f-ee7e-4d89-9966-b7486dec670e}”: No such file or directory
[ 1769.891] (EE) client bug: timer event15 trackpoint: scheduled expiry is in the past (-599ms), your system is too slow
[ 1769.891] (EE) client bug: timer event15 trackpoint: scheduled expiry is in the past (-593ms), your system is too slow
[ 1769.891] (EE) client bug: timer event15 trackpoint: scheduled expiry is in the past (-319ms), your system is too slow
[ 1769.891] (EE) client bug: timer event15 trackpoint: scheduled expiry is in the past (-291ms), your system is too slow
[ 1769.891] (EE) client bug: timer event15 trackpoint: scheduled expiry is in the past (-285ms), your system is too slow
[ 1860.687] (EE) client bug: timer event15 tap: scheduled expiry is in the past (-317ms), your system is too slow
[ 3202.996] (EE) event15 - MSFT0001:02 04F3:30BC Touchpad: kernel bug: Touch jump detected and discarded.
[ 3388.851] (EE) client bug: timer event15 keyboard: scheduled expiry is in the past (-367ms), your system is too slow

journalctl -p3 -b

– Logs begin at Mon 2020-10-12 18:43:34 CEST, end at Mon 2020-11-02 14:02:07 CET. –
nov 01 18:57:35 paola-81nf systemd-coredump[1124]: Process 1120 (perl) of user 1000 dumped core.

                                               Stack trace of thread 1120:
                                               #0  0x00007f41cd5bee84 __nss_readline (/usr/lib/libc-2.32.so + 0x124e84)
                                               #1  0x00007f41cd66690d n/a (/usr/lib/libnss_files-2.32.so + 0x390d)
                                               #2  0x00007f41cd666bcf _nss_files_getprotobyname_r (/usr/lib/libnss_files-2.32.so + 0x3bcf)
                                               #3  0x00000000007eb32d n/a (/home/paola/IDriveForLinux/idriveIt/perl + 0x3eb32d)

nov 01 18:57:36 paola-81nf akonadiserver[1340]: org.kde.pim.akonadiserver: Failed to detect mysqld version!
nov 01 18:57:36 paola-81nf akonadiserver[1340]: org.kde.pim.akonadiserver: Could not start database server!
nov 01 18:57:36 paola-81nf akonadiserver[1340]: org.kde.pim.akonadiserver: executable: “/usr/bin/mysqld”
nov 01 18:57:36 paola-81nf akonadiserver[1340]: org.kde.pim.akonadiserver: arguments: ("–defaults-file=/home/paola/.local/share/akonadi/mysql.conf", “–datadir=/home/paola/.local/share/akonadi/db_data/”, “–socket=/run/user/1000/akonadi>
nov 01 18:57:36 paola-81nf akonadiserver[1340]: org.kde.pim.akonadiserver: process error: “execvp: Permission denied”
nov 01 18:57:36 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
nov 01 18:57:36 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset unit: rfcomm_bind: Address already in use (98)
nov 01 19:03:45 paola-81nf akonadiserver[8016]: org.kde.pim.akonadiserver: Failed to detect mysqld version!
nov 01 19:03:45 paola-81nf akonadiserver[8016]: org.kde.pim.akonadiserver: Could not start database server!
nov 01 19:03:45 paola-81nf akonadiserver[8016]: org.kde.pim.akonadiserver: executable: “/usr/bin/mysqld”
nov 01 19:03:45 paola-81nf akonadiserver[8016]: org.kde.pim.akonadiserver: arguments: (”–defaults-file=/home/paola/.local/share/akonadi/mysql.conf", “–datadir=/home/paola/.local/share/akonadi/db_data/”, "–socket=/run/user/1000/akonadi>
nov 01 19:03:45 paola-81nf akonadiserver[8016]: org.kde.pim.akonadiserver: process error: “execvp: Permission denied”
nov 01 19:58:34 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
nov 01 19:58:34 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset unit: rfcomm_bind: Address already in use (98)
nov 01 21:19:29 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
nov 01 21:19:29 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset unit: rfcomm_bind: Address already in use (98)
nov 01 22:57:51 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
nov 01 22:57:51 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset unit: rfcomm_bind: Address already in use (98)
nov 01 22:57:57 paola-81nf systemd-coredump[24454]: Process 24452 (perl) of user 1000 dumped core.

                                                Stack trace of thread 24452:
                                                #0  0x00007fbdc4c9ee84 __nss_readline (/usr/lib/libc-2.32.so + 0x124e84)
                                                #1  0x00007fbdc4d4690d n/a (/usr/lib/libnss_files-2.32.so + 0x390d)
                                                #2  0x00007fbdc4d46bcf _nss_files_getprotobyname_r (/usr/lib/libnss_files-2.32.so + 0x3bcf)
                                                #3  0x00000000007eb32d n/a (/home/paola/IDriveForLinux/idriveIt/perl + 0x3eb32d)

nov 02 08:07:07 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
nov 02 08:07:07 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset unit: rfcomm_bind: Address already in use (98)
nov 02 08:09:34 paola-81nf systemd-coredump[32091]: Process 32089 (perl) of user 1000 dumped core.

                                                Stack trace of thread 32089:
                                                #0  0x00007fb3b85ace84 __nss_readline (/usr/lib/libc-2.32.so + 0x124e84)
                                                #1  0x00007fb3b865490d n/a (/usr/lib/libnss_files-2.32.so + 0x390d)
                                                #2  0x00007fb3b8654bcf _nss_files_getprotobyname_r (/usr/lib/libnss_files-2.32.so + 0x3bcf)
                                                #3  0x00000000007eb32d n/a (/home/paola/IDriveForLinux/idriveIt/perl + 0x3eb32d)

nov 02 09:46:26 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
nov 02 09:46:26 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset unit: rfcomm_bind: Address already in use (98)
nov 02 09:48:45 paola-81nf systemd-coredump[36070]: Process 36065 (perl) of user 1000 dumped core.

                                                Stack trace of thread 36065:
                                                #0  0x00007ff0f422ae84 __nss_readline (/usr/lib/libc-2.32.so + 0x124e84)
                                                #1  0x00007ff0f42d290d n/a (/usr/lib/libnss_files-2.32.so + 0x390d)
                                                #2  0x00007ff0f42d2bcf _nss_files_getprotobyname_r (/usr/lib/libnss_files-2.32.so + 0x3bcf)
                                                #3  0x00000000007eb32d n/a (/home/paola/IDriveForLinux/idriveIt/perl + 0x3eb32d)

nov 02 12:48:49 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
nov 02 12:48:49 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset unit: rfcomm_bind: Address already in use (98)
nov 02 12:50:54 paola-81nf systemd-coredump[43755]: Process 43751 (perl) of user 1000 dumped core.

                                                Stack trace of thread 43751:
                                                #0  0x00007fcf410b9e84 __nss_readline (/usr/lib/libc-2.32.so + 0x124e84)
                                                #1  0x00007fcf4116190d n/a (/usr/lib/libnss_files-2.32.so + 0x390d)
                                                #2  0x00007fcf41161bcf _nss_files_getprotobyname_r (/usr/lib/libnss_files-2.32.so + 0x3bcf)
                                                #3  0x00000000007eb32d n/a (/home/paola/IDriveForLinux/idriveIt/perl + 0x3eb32d)

nov 02 13:59:21 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
nov 02 13:59:21 paola-81nf bluetoothd[808]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset unit: rfcomm_bind: Address already in use (98)
nov 02 14:01:37 paola-81nf systemd-coredump[54497]: Process 54495 (perl) of user 1000 dumped core.

                                                Stack trace of thread 54495:
                                                #0  0x00007f915fd3ae84 __nss_readline (/usr/lib/libc-2.32.so + 0x124e84)
                                                #1  0x00007f915fde290d n/a (/usr/lib/libnss_files-2.32.so + 0x390d)
                                                #2  0x00007f915fde2bcf _nss_files_getprotobyname_r (/usr/lib/libnss_files-2.32.so + 0x3bcf)
                                                #3  0x00000000007eb32d n/a (/home/paola/IDriveForLinux/idriveIt/perl + 0x3eb32d)

lines 12-69/69 (END)

ls /etc/X11/xorg.conf.d
00-keyboard.conf 30-touchpad.conf

I can add that if I do

export MESA_LOADER_DRIVER_OVERRIDE=i965; ksysguard

then inxi -Gxxx shows:

Graphics:
Device-1: Intel UHD Graphics vendor: Lenovo driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:9b41
Device-2: Chicony Integrated Camera type: USB driver: uvcvideo bus ID: 1-6:2
chip ID: 04f2:b61e serial: 0001
Display: x11 server: X.Org 1.20.9 compositor: kwin_x11 driver: intel
unloaded: modesetting alternate: fbdev,vesa resolution: 1920x1080 s-dpi: 96
OpenGL: renderer: Mesa DRI Intel UHD Graphics (CML GT2) v: 4.6 Mesa 20.1.8
compat-v: 3.0 direct render: Yes

And then LIBGL_DEBUG=verbose ksysguard
libGL: Can’t open configuration file /etc/drirc: File o directory non esistente.
libGL: Can’t open configuration file /home/paola/.drirc: File o directory non esist
ente.
libGL: MESA-LOADER: dlopen(/usr/lib/dri/i965_dri.so)
libGL: Can’t open configuration file /etc/drirc: File o directory non esistente.
libGL: Can’t open configuration file /home/paola/.drirc: File o directory non esist
ente.
libGL: Can’t open configuration file /etc/drirc: File o directory non esistente.
libGL: Can’t open configuration file /home/paola/.drirc: File o directory non esist
ente.
libGL: Using DRI3 for screen 0
libGL: Can’t open configuration file /etc/drirc: File o directory non esistente.
libGL: Can’t open configuration file /home/paola/.drirc: File o directory non esistente.

I can see several errors, but no obvious reason why OpenGL isn’t working properly. Maybe if you try to write a xorg config file.

Create a file in /etc/X11/xorg.conf.d, let’s call it 91-intel.conf. Put the following inside it and then reboot.

## Intel driver config

Section "Device"
        Identifier  "Intel UHD Graphics"
        Driver      "intel"
        BusID       "PCI:0:2:0"
        Option      "DRI"      "3"
        Option      "TearFree" "true"
EndSection
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
  
Section "Extensions"
        Option "Composite" "Enable"
        Option "RENDER"    "Enable"
EndSection
  
Section "InputClass"
        Identifier          "Keyboard Defaults"
        MatchIsKeyboard     "yes"
        Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Done. No changes after trying, first, inxi -Gxxx and then launching ksysguard thorugh konsole.

Could something change by installing mesa-git and removing mesa?

I have no idea. According to archwiki these issues can happens, though I have a laptop with intel and it works very well.

I tried with the suggestions on archwiki but I didn’t solve the problem. I read that someone had a similar problem and solved it by downgrading mesa. Is it safe to do that?

After: export LIBGL_DEBUG=verbose

I got

glxinfo | grep “OpenGL version”

libGL: Can’t open configuration file /etc/drirc: No such file or directory.
libGL: Can’t open configuration file /home/paola/.drirc: No such file or directory.
libGL: using driver i915 for 4
libGL: Can’t open configuration file /etc/drirc: No such file or directory.
libGL: Can’t open configuration file /home/paola/.drirc: No such file or directory.
libGL: using driver i915 for 4
libGL: pci id for fd 4: 8086:9b41, driver iris
libGL: MESA-LOADER: failed to open /usr/lib/dri/iris_dri.so: libsensors.so.5: cannot open shared object file: No such file or directory
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL: using driver i915 for 4
libGL: Can’t open configuration file /etc/drirc: No such file or directory.
libGL: Can’t open configuration file /home/paola/.drirc: No such file or directory.
libGL: using driver i915 for 4
libGL: pci id for fd 4: 8086:9b41, driver iris
libGL: MESA-LOADER: failed to open /usr/lib/dri/iris_dri.so: libsensors.so.5: cannot open shared object file: No such file or directory
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL: MESA-LOADER: failed to open /usr/lib/dri/swrast_dri.so: libsensors.so.5: cannot open shared object file: No such file or directory
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/dri)
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 60
Current serial number in output stream: 59

However in /usr/lib/dri/ I have those drivers.

Solved! I had installed lm_sensors-max_of_fctemps 3.4.0-3. So I removed it and installed lm_sensors. It immediatly worked.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.