Issues saving Nvidia settings

Hey, running nvidia 450xx and kernel 5.4, massive stutters and fps drops, cant get the nvidia configs to save [OpenGL high performance and PowerMIzer prefer max performance, saved as .nvidia-settings-rc, edited the xinit:
exec nvidia-settings --load-config-only
exec $(get_session)
Doesnt work.
probably because i chose free drivers by mistake. Im trying to reinstall manjaro but booting from the old usb gets stuck in “ a start job in running for livemedia mhwd script
Know of any different way of reinstalling it or solving the drivers issue without having the need for it?. Thanks

Hello,

Can we have a confirmation that by

you refer to the ~/.xinitrc aka the .xinitrc in your home directory?

This in the Live Media or when? If you installed the 450xx by MHWD and previously of that you removed video-linux and rebooted the system, then the nonfree drivers are loaded.

That can be caused by something else. Please provide from your installed system:
inxi -Fxza --no-host
mhwd -li
cat /etc/X11/mhwd.d/nvidia.conf

1 Like

Yes

I installed manjaro kde from rufus live usb, and chose free drivers :))

wow i didnt know that. Should I uninstall 450xx, remove video-linux, and reinstall?

inxi -Fxza --no-host
System:    Kernel: 5.4.64-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 
           root=UUID=20da062c-e348-4031-b050-7cbb1fc46c9e rw quiet apparmor=1 security=apparmor 
           udev.log_priority=3 
           Desktop: KDE Plasma 5.19.5 tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: MSI model: A68HM-E33 V2 (MS-7721) v: 9.0 serial: <filter> 
           UEFI: American Megatrends v: 8.3 date: 04/07/2016 
CPU:       Topology: Quad Core model: AMD A8-7600 Radeon R7 10 Compute Cores 4C+6G bits: 64 
           type: MCP arch: Steamroller family: 15 (21) model-id: 30 (48) stepping: 1 
           microcode: 6003106 L2 cache: 2048 KiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 24760 
           Speed: 2183 MHz min/max: 1400/3100 MHz boost: enabled Core speeds (MHz): 1: 2312 
           2: 2131 3: 2365 4: 2383 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full AMD retpoline, STIBP: disabled, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Kaveri [Radeon R7 Graphics] vendor: Micro-Star MSI driver: radeon 
           v: kernel alternate: amdgpu bus ID: 00:01.0 chip ID: 1002:1313 
           Device-2: NVIDIA GM107 [GeForce GTX 750 Ti] vendor: ASUSTeK driver: nvidia v: 450.66 
           alternate: nouveau,nvidia_drm bus ID: 01:00.0 chip ID: 10de:1380 
           Display: x11 server: X.Org 1.20.8 compositor: kwin_x11 driver: nvidia display ID: :0 
           screens: 1 
           Screen-1: 0 s-res: 1368x768 s-dpi: 75 s-size: 463x260mm (18.2x10.2") 
           s-diag: 531mm (20.9") 
           Monitor-1: VGA-0 res: 1368x768 hz: 60 
           OpenGL: renderer: GeForce GTX 750 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 450.66 
           direct render: Yes 
Audio:     Device-1: AMD Kaveri HDMI/DP Audio vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus ID: 00:01.1 chip ID: 1002:1308 
           Device-2: AMD FCH Azalia vendor: Micro-Star MSI driver: snd_hda_intel v: kernel 
           bus ID: 00:14.2 chip ID: 1022:780d 
           Device-3: NVIDIA GM107 High Definition Audio [GeForce 940MX] vendor: ASUSTeK 
           driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0fbc 
           Device-4: Focusrite-Novation Scarlett 18i8 type: USB driver: snd-usb-audio 
           bus ID: 4-2:3 chip ID: 1235:8014 serial: <filter> 
           Sound Server: ALSA v: k5.4.64-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI 
           driver: r8168 v: 8.048.03-NAPI modules: r8169 port: d000 bus ID: 02:00.0 
           chip ID: 10ec:8168 
           IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 937.12 GiB used: 780.48 GiB (83.3%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda vendor: Kingston model: SA400S37240G size: 223.57 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: B1E1 scheme: GPT 
           ID-2: /dev/sdb vendor: Seagate model: ST3750640NS size: 698.64 GiB block size: 
           physical: 512 B logical: 512 B speed: 3.0 Gb/s serial: <filter> rev: L scheme: MBR 
           ID-3: /dev/sdc type: USB vendor: SanDisk model: Cruzer Blade size: 14.91 GiB 
           block size: physical: 512 B logical: 512 B serial: <filter> rev: 2.01 scheme: MBR 
           SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure? 
Partition: ID-1: / raw size: 223.27 GiB size: 218.77 GiB (97.98%) used: 94.71 GiB (43.3%) fs: ext4 
           dev: /dev/sda2 
Swap:      Alert: No Swap data was found. 
Sensors:   System Temperatures: cpu: 11.4 C mobo: N/A 
           Fan Speeds (RPM): N/A 
           GPU: device: nvidia screen: :0.0 temp: 30 C fan: 32% device: radeon temp: 15 C 
Info:      Processes: 214 Uptime: 1h 37m Memory: 6.82 GiB used: 3.59 GiB (52.6%) Init: systemd 
           v: 246 Compilers: gcc: 10.2.0 Packages: 1486 pacman: 1476 lib: 463 flatpak: 10 
           Shell: Bash v: 5.0.18 running in: konsole inxi: 3.1.05

 mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI
           video-linux            2018.05.04                true            PCI
    video-nvidia-450xx            2019.10.25               false            PCI


Warning: No installed USB configs!

cat /etc/X11/mhwd.d/nvidia.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 450.66

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 450.66

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

Section "Files"
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 "InputClass"
    Identifier         "Keyboard Defaults"
    MatchIsKeyboard    "yes"
    Option         "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Section "Monitor"

    # HorizSync source: builtin, VertRefresh source: builtin
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    HorizSync       28.0 - 55.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 750 Ti"
    Option         "NoLogo" "1"
EndSection

Section "Screen"

# Removed Option "metamodes" "1368x768 +0+0"
# Removed Option "metamodes" "1368x768_60 +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "1368x768 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

BTW really appreciate it

Ok, so you have a Desktop PC with iGPU from AMD + dGPU Nvidia GeForce GTX 750 Ti. Your monitor is connected to dGPU and you can’t set the maximum performance.

We can try this:

  • disable iGPU from BIOS, but, if you plan later to use that as passtrough or attach more screens to it, i think that might not be what you want.
  • depending what you will want, there might be a need to tweak the conf file
  • to get things work better with the dGPU and since you use KDE Plasma, this is my proposal:

Test this for /etc/X11/mhwd.d/nvidia.conf but make sure you backup yours, so you can restore it if something goes wrong:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 450.66

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"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputClass"
    Identifier         "Keyboard Defaults"
    MatchIsKeyboard    "yes"
    Option         "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    HorizSync       28.0 - 55.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 750 Ti"
    Option         "TripleBuffer"  "On"
    Option  "ConnectToAcpid"    "Off"
    Option  "Coolbits"   "12"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "1368x768 +0+0 {ForceCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Since i added the Option "TripleBuffer" "On" in the Section "Device" then, for KWin to use it, we create the kwin.sh file in the correct place with this command from terminal:
echo "export KWIN_TRIPLE_BUFFER=1" | sudo tee /etc/profile.d/kwin.sh
Reboot and if that doesn’t help, then modify /etc/profile.d/kwin.sh to be like this:

export KWIN_TRIPLE_BUFFER=1
export __GL_YIELD=USLEEP
export __GL_MaxFramesAllowed=1

If i’m not mistaken, if you want to use PowerMizer to maximum Performance, you have to enable Coolbits, so i added that too.

Once you have done this changes, run this command:
sudo mhwd-gpu --setmod nvidia --setxorg /etc/X11/mhwd.d/nvidia.conf

Then reboot.

1 Like

Please don’t do that … I specified where that file has to be and how to create it. :slight_smile:

1 Like

heheh sorry that was just a lame attempt i had made before talking with you

1 Like

No worries. :slight_smile: Is better to keep things consistent so we know where to look next if other issues might rise along the way. The most important is to solve those issues you have.
And if works, then is even better! :smiley:

1 Like

Makes total sense…

After rebooting, the kwin.sh stayed the same (with only
export KWIN_TRIPLE_BUFFER=1). So i added the last two lines. Im not sure if thats what you meant

The last two lines, if added, should make things smoother. Also, if none of that helps, try disabling vsync in Compositor settings.

Ohh thats right, I really didnt consider the idea that anyone would write the entire config file so I forgot to add that I also needed to turn off “Sync to VBlan” and “Allow Flipping”. Anyway im rebooting

Okay so i rebooted, the Display configuration has reset, OpenGL Image and the PowerMizer pref mode remain automatic as before, althought theres a new menu available on the latter.

How did i missed that? :slight_smile: Please change it to:

nvidia-settings --load-config-only
exec $(get_session)

No need for the exec part. Reboot and test again.

1 Like

Hahah, my b.
I fixed it and rebooted, its still the same automatic config

I guess i wouldnt mind disabling iGPU.

Apparently you are not the only one with this issue

https://bbs.archlinux.org/viewtopic.php?id=258556

Later i will do a test on my other install.

Alright

thanks.

1 Like

Im not planning on using 2 screens in the future, but what do you mean with

The passthrough is if you will use one GPU for virtualbox or qemu
https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF

Like plugging a 2nd GPU to power the VM?

Exactly! It will use it as if was native.

By the way, have you tried to create profiles for the Nvidia GPU with the gwe from repository? GreenWithEnvy