You are not logged in.

#26 2024-12-16 22:46:36

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

it's not a problem with x though. as soon as i boot, i get a black screen. it happens on live usb drives, different distros... i had to go in with nomodeset to even install arch

Offline

#27 2024-12-17 08:01:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,673

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

See whether you can reproduce this an preserve a journal (either ssh into the blind system or reboot by frenetically pressing ctrl+alt+del or using the https://wiki.archlinux.org/title/Keyboa … el_(SysRq) ) so we can see what's going on.

Are non-wxwidget clients affected by the insufficient EGL version a well (eg. gtk3-demo)?

Online

#28 2024-12-17 19:07:10

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

gtk3-demo works fine.

[main@archlinux ~]$ ldd /usr/lib/libwx_gtk3u_gl-3.2.so | grep -i egl
	libEGL.so.1 => /usr/lib/nvidia/libEGL.so.1 (0x00007df8d9600000)
	libwayland-egl.so.1 => /usr/lib/libwayland-egl.so.1 (0x00007df8dac01000)
[main@archlinux ~]$  readelf -sW /usr/lib/libEGL.so.1 | grep eglCreatePlatformWindowSurface
    92: 0000000000008460   109 FUNC    GLOBAL DEFAULT   10 eglCreatePlatformWindowSurface
[main@archlinux ~]$ pacman -Qo /usr/lib/libEGL.so.1
/usr/lib/libEGL.so.1 is owned by libglvnd 1.7.0-1

i can get you the journal, i'll send it over when i'll be near a vga monitor tongue    how should i blacklist the nvidia driver correctly though?

Offline

#29 2024-12-17 19:50:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,673

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

This is the problem:

libEGL.so.1 => /usr/lib/nvidia/libEGL.so.1 (0x00007df8d9600000)

readelf -sW /usr/lib/nvidia/libEGL.so.1 | grep eglCreatePlatformWindowSurface

But don't try to just replace the library - that will probably make things worse.

Does explicitly selecting the X11 backend help?

GDK_BACKEND=x11 kicad

Online

#30 2024-12-17 20:52:23

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

yep, it's not in the nvidia library. the backend set didn't help :c

Offline

#31 2024-12-17 21:09:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,673

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

What happens for

LD_PRELOAD=/usr/lib/libEGL.so.1 kicad

?

Online

#32 2024-12-17 21:56:41

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

woah it works!! thank you angel ^^, anything i can do so i can open it from the de? exporting it system-wide sounds like a bad idea
also i fixed the gtk thing by exporting GDK_DISABLE=egl. some stuff is definitely broken (the icons in gnome-control-center are very low res for some reason), but it works which is nice
i'll start the nouveau investigation soon, maybe i'll switch if it starts working and the performance doesn't decrease much

Offline

#33 2024-12-17 22:08:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,673

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

exporting it system-wide sounds like a bad idea

Very bad idea - you'll have to be careful, it might run kicad into unexpected issues if it ends up actually using egl ("GDK_DISABLE=egl" alone doesn't work?)

/usr/local/bin/kicad

#!/bin/sh
export LD_PRELOAD=/usr/lib/libEGL.so.1
exec /usr/bin/kicad "$@"

Online

#34 2024-12-17 23:28:16

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

nope, doesn't work without the linker thingy
the script doesn't change anything i think? edit: nvm had to make it executable

Last edited by slug001 (2024-12-17 23:28:42)

Offline

#35 2024-12-18 08:01:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,673

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB