You are not logged in.

#1 2025-03-10 02:41:52

hugana
Member
Registered: 2022-05-10
Posts: 22

[SOLVED]-nvidia-xconfig error

nvidia-xconfig

WARNING: Unable to locate/open X configuration file.


WARNING: Unable to parse X.Org version string.


ERROR: Unable to write to directory '/etc/X11'.


Can someone explain me why i m having this error?

Last edited by hugana (2025-03-16 12:27:36)

Offline

#2 2025-03-10 02:44:49

mackin_cheese
Member
Registered: 2025-01-07
Posts: 477

Re: [SOLVED]-nvidia-xconfig error

what command were you trying to run that produced these errors? what were you trying to do in general? what reference page were you following?

Offline

#3 2025-03-10 02:53:43

hugana
Member
Registered: 2022-05-10
Posts: 22

Re: [SOLVED]-nvidia-xconfig error

i was just checking the arch wiki for nvidia, making the automatic configuration. I have KDE plasma and i m using X11 is this Xorg?

Last edited by hugana (2025-03-10 02:54:39)

Offline

#4 2025-03-10 03:00:35

mackin_cheese
Member
Registered: 2025-01-07
Posts: 477

Re: [SOLVED]-nvidia-xconfig error

you don't need to make a xorg config if you are using kde plasma

Offline

#5 2025-03-10 03:05:54

hugana
Member
Registered: 2022-05-10
Posts: 22

Re: [SOLVED]-nvidia-xconfig error

if i m using X11 i dont need to make any nvidia-xconfig like its saying in the wiki? so i just skip that and wayland aswell?

Offline

#6 2025-03-10 03:55:47

mackin_cheese
Member
Registered: 2025-01-07
Posts: 477

Re: [SOLVED]-nvidia-xconfig error

hugana wrote:

if i m using X11 i dont need to make any nvidia-xconfig like its saying in the wiki? so i just skip that and wayland aswell?

I don't know what wiki page you are following, but the wiki for nvidia states (or insinuates) that for wayland, it's the compositor that's doing the work for you when it comes to configs

for x11, it states:

The proprietary NVIDIA graphics card driver does not need any Xorg server configuration file. However, it may be required to create a configuration file (prefer /etc/X11/xorg.conf.d/20-nvidia.conf over /etc/X11/xorg.conf) in order to adjust various settings.

You would only need those configuration files to adjust settings. Those settings are usually only necessary when using a DE that doesn't do the work for you. When it comes to KDE plasma, you wouldn't necessarily need a manually created xorg conf

Offline

#7 2025-03-10 04:16:19

j4lnx
Member
Registered: 2025-03-10
Posts: 1

Re: [SOLVED]-nvidia-xconfig error

"

hugana wrote:

nvidia-xconfig

WARNING: Unable to locate/open X configuration file.


WARNING: Unable to parse X.Org version string.


ERROR: Unable to write to directory '/etc/X11'.


Can someone explain me why i m having this error?


---

I received a similar error when I ran `nvidia-xconfig` without sudo privileges.

Running `sudo nvidia-xconfig` and waiting ~30 seconds while `WARNING: Unable to locate/open X configuration file.` displayed, the command was able to fully complete. I did not get the "Unable to parse X.Org version string" error you did though.

Offline

#8 2025-03-10 08:47:20

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

Re: [SOLVED]-nvidia-xconfig error

DO NOT GENERATE STATIC X11 SERVER LAYOUTS.
LET ALONE BY SOME AUTOMATIC TOOL!

This has nothing to do with the x11 session you're running.
They're all dated back into the time befire Xorg had autoconfiguration and create cruft that will typicall either break stuff or stash problems behind the enforced setup.

Remove any kind of /etc/X11/xorg.conf that you have not written yourself because either you or the person instructing you knows what they're doing.
The canonical approach to nudge the server - ifff necessary at all - is via very specific drop-in configlets in /etc/X11/xorg.conf.d
Static server configurations are extremely rarely required for very specific setups in more complex hardware configurations.

Last edited by seth (2025-03-10 08:47:33)

Offline

Board footer

Powered by FluxBB