Empty nvidia.conf, after auto install with MHWD

Hi, I’m trying to set up Green With Envy to under-clock my GPU in my laptop (thermal issues).

Installed it from flathub without any problems.

Realized I need to set coolbits in order to underclock, looked at the video and the readme for green with envy, the file was located elsewhere on manjaro.

The file /etc/X11/mhwd.d/nvidia.conf was there but just contained a comment.

I ran nvidia-xsettings specifying it to write to file and not its default path.

I rebooted, black screen.

So my best fix was to go into tty, delete /etc/X11/mhwd.d/nvidia.conf and reboot. I’m now back at square one.

Why does my computer not boot successfully after I use nvidia-xsettings ?

Graphic driver used is video-hybrid-amd-nvidia-prime.

config :

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   mathieub@IdeaPad16Pro5 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   ---------------------- 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   OS: Manjaro Linux x86_64 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Host: 82L5 IdeaPad 5 Pro 16ACH6 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Kernel: 6.1.103-1-MANJARO 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Uptime: 8 mins 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Packages: 1929 (pacman), 6 (flatpak) 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Shell: bash 5.2.26 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Resolution: 1920x1200 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   DE: Plasma 6.0.5 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   WM: KWin 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Theme: [Plasma], Adwaita [GTK2/3] 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Icons: [Plasma], breeze-dark [GTK2/3] 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Terminal: konsole 
                               CPU: AMD Ryzen 5 5600H with Radeon Graphics (12) @ 3.300GHz 
                               GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series 
                               GPU: NVIDIA GeForce RTX 3050 Mobile 
                               Memory: 2458MiB / 15341MiB

the us of

sudo nvidia-xconfig -c /etc/X11/mhwd.d/nvidia.conf -o /etc/X11/mhwd.d/nvidia.conf

Generated the following file

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

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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 "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

This is a bit of mess sorry, does anyone know why mhwd would generate an empty nvidia.conf file or why the one created by nvidia-xsettings does not work.

Thank you.

I’m afraid screenfetch, neofetch etc. don’t provide enough information; at the minimum please post output of inxi -zv8.

With this information, we’ll know more about your system.

Without this knowledge, the first things I’d check for would be blocked vents, clogged fans and maybe dried-out thermal compound on the CPU / GPU. This happens more than you might think.

As far as the hardware part of things is concern, I just have a faulty unit after the warranty period sadly. Vents aren’t clogged, fanned are spinning and the thermal compound is fine. It is the pain to go check it on a laptop btw.

I’m sorry I might have wasted a bit of your time, I currently I have many problems on this 2 year old and rather miss managed installl (was more of a noob back then than I am know).

I am going to reinstall a distro. I’m thiking about going ubuntu or arch to be honest. I’ve ran into a 3 or 4 manjaro specific issues recently (about being out of sync with arch, for both aur and manjaro repo packages).

Anyways thanks I leaned a lot with Manjaro, and you just leaned me about inxi.

1 Like

Because it doesn’t generate an Nvidia config file, Nvidia Setting does?
Because you’re not using the Nvidia card with the hybrid configuration, you’re only offloading on it on demand?

Because you have installed hybrid configuration already, and you’re conflicting with that installed configuration when you create an Xorg Nvidia configuration from Nvidia Settings?

Why don’t you just add the coolbits part? Maybe just that:

Section "OutputClass"
    Identifier "Nvidia Options"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "Coolbits" "24"
EndSection

Add it to the current enabled xorg config file which I don’t know which one it is with hybrid drivers.

//EDIT: marked as solution? Any comment about you marking this post as the solution @mathB?

1 Like

Thanks, I tinkered with this while I was backing up my files before reinstall, and well you’re correct this is the wrong file and I do have a conflict.

The thing that bogs me is that mhwd DOES generate a nvidia.conf file in the wrong folder that is empty. Which made me think I had to complete it. (if I had read the friendly documentation this would not have happened).

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.