You are not logged in.

#26 2022-08-31 19:47:19

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

Re: [SOLVED] Nvidia driver API mismatch

Nope, that seems fine.

GDK_BACKEND=x11 nvidia-settings

?

Online

#27 2022-09-01 09:31:20

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

Still segfaults.

❯ GDK_BACKEND=x11 nvidia-settings

(nvidia-settings:5132): Gtk-WARNING **: 11:31:05.069: Theme parsing error: gtk.css:263:12: 'text-align' is not a valid property name

(nvidia-settings:5132): Gtk-WARNING **: 11:31:05.070: Theme parsing error: gtk.css:772:14: Junk at end of value for opacity
[1]    5132 segmentation fault (core dumped)  GDK_BACKEND=x11 nvidia-settings

Last edited by diniamo (2022-09-01 09:31:46)

Offline

#28 2022-09-01 12:48:13

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

Re: [SOLVED] Nvidia driver API mismatch

Can you run nvidia-settings from an openbox session?
Do you run gdm on xorg?

Online

#29 2022-09-01 15:30:29

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

I don't know what openbox is, nor do I have it set up.
Yes, I'm pretty sure I do use GDM. (Just to clarify that's the what handles the login process, right?)

Offline

#30 2022-09-01 15:34:25

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

Online

#31 2022-09-01 16:15:58

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

Yes, I do use gdm, I tried disabling the EnableWayland option, but it didnt change anything, also tried to run nvidia-settings from openbox, still segfaults, although I'm not sure if I did it correctly.

Offline

#32 2022-09-01 20:06:45

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

Re: [SOLVED] Nvidia driver API mismatch

Neither do we.
Did you install openbox and select it as session in GDM?
Did you try to run nvidia-settings from kitty there as well?

xrandr -q
printenv

Online

#33 2022-09-02 13:46:48

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

OK yep, I definetly did it correctly this time, it still segfaults.

Offline

#34 2022-09-02 14:04:44

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

Re: [SOLVED] Nvidia driver API mismatch

seth wrote:

Neither do we.
Did you try to run nvidia-settings from kitty there as well? [the implication was: don't, try xterm or the ob menu]

xrandr -q
printenv

[the implication was to post those outputs]

Online

#35 2022-09-02 16:13:18

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

Appologies, it still crashes from xterm and here are the outputs in respective order:
http://0x0.st/opYB.txt
http://0x0.st/opYM.txt

Last edited by diniamo (2022-09-02 16:16:56)

Offline

#36 2022-09-02 16:32:40

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

Re: [SOLVED] Nvidia driver API mismatch

Because of

EGL_PLATFORM=wayland

Online

#37 2022-09-02 16:50:12

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

That was a problem previously for something else, I removed it and it was fixed.
I have no clue where it's set.
I'm running

sudo rg EGL_PLATFORM=wayland / 2> /dev/null

but I assume it won't do much.

Offline

#38 2022-09-02 17:01:28

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

But you are right, if I set it to anything else, it runs.

Offline

#39 2022-09-02 17:16:10

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

Re: [SOLVED] Nvidia driver API mismatch

You can also "unset" it.

PID=$$; while (( $PID != 0 )); do echo $PID; grep -z EGL_PLATFORM /proc/$PID/environ; echo "===="; PID=$(awk '/PPid/ {print $2}' < /proc/$PID/status); done

should help you to isolate the PID that first has this.

Last edited by seth (2022-09-02 17:16:36)

Online

#40 2022-09-02 17:19:31

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

❯ PID=$$; while (( $PID != 0 )); do echo $PID; grep -z EGL_PLATFORM /proc/$PID/environ; echo "===="; PID=$(awk '/PPid/ {print $2}' < /proc/$PID/status); done
24874
EGL_PLATFORM=wayland====
24860
EGL_PLATFORM=wayland====
1000
EGL_PLATFORM=wayland====
1
grep: /proc/1/environ: Permission denied
====

and what exactly does this tell me? what should I do with this?

Offline

#41 2022-09-02 17:24:58

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

Re: [SOLVED] Nvidia driver API mismatch

The first process w/ this has the PID 1000 - the process might help you to figure how and where you set that.
https://wiki.archlinux.org/title/Enviro … _variables

Online

#42 2022-09-02 17:40:01

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

it goes as

zsh
kitty
systemd --user
systemd

from top to bottom.

and I couldn't find anything

Offline

#43 2022-09-02 20:23:01

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

Re: [SOLVED] Nvidia driver API mismatch

It means that you're exporting the value at a rather global stage - did you check the link in #41?

Online

#44 2022-09-03 08:20:56

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

Hm yeah, I couldn't find it the first time I checked because I thought /etc/environment was a folder, and I couldn't cd into it so I thought it didn't exist.
Well, it's a file and it had the line, although I never added this manually, does it get parsed from .xprofile or something?

Anyways, thanks for the help, all of you. big_smile

Offline

Board footer

Powered by FluxBB