nvidia-settings, can't change my screen resolution.  [Solved]

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

Re: nvidia-settings, can't change my screen resolution.

#11 Post by pete67 »

@Huckleberry Finn
hello my friend. I added "xorg=nvidia" under the boot parameters in my german MX-Boot-Options und "Kernel-Parameter". I hope that's what you mean with "boot parameters".

I wanted to save my In "Nvidia X-Server-Einstellungen" my setting to save and tried it via the button "Save to X Configuration File" where it would save
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 510.47.03

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Samsung C49HG9x"
HorizSync 30.0 - 170.0
VertRefresh 50.0 - 144.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA GeForce GTX 1660 Ti"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-4"
Option "metamodes" "nvidia-auto-select +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
But when I want to save it a message pops up which says "Unable to open X config file '/etc/S11/xorg.conf' for writing."

I think I must get root-rights first to save that file but I don't know how to get them. Do I have to boot as root that I can save the settings or how can I do that to save the X Configuration file via the graphic too Nvidia Settings with root rights?

Huckleberry Finn

Re: nvidia-settings, can't change my screen resolution.

#12 Post by Huckleberry Finn »

pete67 wrote: Thu May 05, 2022 9:11 am... added "xorg=nvidia" under the boot parameters in my german MX-Boot-Options und "Kernel-Parameter"...
No, that one is for the installed system, you don't need it now. That was just, when you create a snapshot iso, then write it on a usb and try to boot with that.. only then type it on welcome screen (press E ) ...

Huckleberry Finn

Re: nvidia-settings, can't change my screen resolution.

#13 Post by Huckleberry Finn »

You can do it manually for now, rather than logging in as root :

Code: Select all

sudo -E geany /etc/X11/xorg.conf
Then copy-paste these, save, close, reboot.

Code: Select all

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 510.47.03

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Samsung C49HG9x"
HorizSync 30.0 - 170.0
VertRefresh 50.0 - 144.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA GeForce GTX 1660 Ti"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-4"
Option "metamodes" "nvidia-auto-select +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
P.S. You can replace geany with your favorite text editor, or whatever is installed , or just sudo nano /etc/X11/xorg.conf )

User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

Re: nvidia-settings, can't change my screen resolution.

#14 Post by pete67 »

Hi @Huckleberry Finn , I've done as you wrote but when I want to save the file it says the following:
"/ect/X11/xorg.conf" E212: Datei kann nicht zum Schreiben geöffnet werden" In English "....File cannot be opened for writing"

So I used
sudo nano /etc/X11/xorg.conf
as you suggested put the code in the file saved it and that works. Wonder why vim wasn't able to save it!?

Huckleberry Finn

Re: nvidia-settings, can't change my screen resolution.

#15 Post by Huckleberry Finn »

pete67 wrote: Sat May 07, 2022 9:34 am... but when I want to save the file it says the following:
"/ect/X11/xorg.conf" E212: Datei kann nicht zum Schreiben geöffnet werden" In English "....File cannot be opened for writing"...
Cause there's no such directory /ect/... (if it was not just a typo when posting here) :)

Huckleberry Finn

Re: nvidia-settings, can't change my screen resolution.

#16 Post by Huckleberry Finn »

Meanwhile, it's ok on your installed system. But having such a file may cause such an issue: When you take a snapshot and write your iso , then need to boot (your live medium) on another pc which's non-Nvidia, then it may cause black screen / boot problems. Cause this one tells it directly to use nvidia driver for xorg:

Section "Device"
Identifier "Device0"
Driver "nvidia"

... So, it may be good to rename that file to ..old (or move to somewhere or delete) before running MX Snapshot (for your iso be bootable on all machines, no matter Intel, Amd ... )

User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

Re: nvidia-settings, can't change my screen resolution.

#17 Post by pete67 »

Hi, @Huckleberry Finn , meanwhile I could save the setting under /etc/X11/xorg.conf and above I can save changes in the file directly out of the graphical program. As the permissions lies by the user root this is a miracle for me, but I works, without mistakes to save this file.

Meanwhile I made a snapshot and let the lines for booting with all kinds of graphic cards uncommented. So I think when I boot it into the live mode it will select the driver for the built-in graphic card or uses the default xorg driver or not? Am I right or is this a false assumption?

User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

Re: nvidia-settings, can't change my screen resolution.

#18 Post by pete67 »

@Huckleberry Finn BTW: I used
sudo nano /etc/X11/xorg.conf
and added the coding into it and saved it. Why isn't Vim able to save that file as nano does?

Huckleberry Finn

Re: nvidia-settings, can't change my screen resolution.

#19 Post by Huckleberry Finn »

... Shortly, when there's no such file or such lines (like the official iso) , it just selects the required driver automatically according to that machine (hardware) : amdgpu, radeon, nouveau, intel, modesetting etc.

But such a file forces it to use "that" driver . That's why many times it causes black screens or resolution issues or no brightness controls etc. Cause sometimes it is:

Driver "vesa"

or

Driver "fbdev"

and the user is unaware of that, then asks why they can't change resolution, brightness etc.. (Cause the real / appropriate driver is not loaded due to that).

Also, that's why the suggestion is to add on live session xorg=nvidia (which will be temporary; just for that boot)
... cause if you make it permanent (like in your xorg file) then it'll be ok for that pc (you won't even need to type such a thing).. But on another pc it will still try to use Nvidia driver (the wrong one) when that machine has an Amd or Intel card .
_________________________

As for Vim : As above, have you tried with the correct path? (you had a typo as /ect/ )

User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

Re: nvidia-settings, can't change my screen resolution.

#20 Post by pete67 »

Well for other people I will create a full live Stick with the MX-Tool "MX Live USB Erzeugung (MX Live USB Generation) and I think this will not have the nvidia driver per default, or do I go wrong again with this suggestion?

On the other hand, in mentioned tool one can refer to a freshly downloaded iso, right?

Post Reply

Return to “MX KDE Official Release”