You are not logged in.

#1 2021-04-19 16:54:12

jbhall
Member
Registered: 2021-03-11
Posts: 18

Cannot overclock gpu after nvidia upgrade

Hello. I just upgraded my machine today, and now my commands to overclock my GPU are giving me "Unknown Error". I've been digging for hours now, and cannot figure out how to fix it.

My driver version is now 465. My xorg.conf is the same as it always has been. Please see it below. I've tried so many things, but I just keep getting Unknown Error. My commands have always worked until now. Here's an example of what I'm getting for an error, and the xorg config is after.

$ nvidia-settings --verbose=all -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUTargetFanSpeed=100"

  Attribute 'GPUFanControlState' (hal:0[gpu:0]) assigned value 1.


ERROR: Error assigning value 100 to attribute 'GPUTargetFanSpeed' (hal:0[fan:0]) as specified in assignment '[fan:0]/GPUTargetFanSpeed=100' (Unknown Error).
# XOrg config

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1"
    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     "DP-2"
    Modeline       "2560x1440_60.00" 311.83 2560 2744 3024 3488 1440 1441 1444 1490 -HSync +Vsync
    Option         "PreferredMode" "2560x1440_60.00"
    Option         "Primary" "true"
    Option         "LeftOf" "DP-0"
    Option         "Position" "0 640"
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "DP-0"
    Modeline       "1440x2560_60.00" 311.83 1440 1441 1444 1490 2560 2744 3024 3488 -HSync +Vsync
    Option         "PreferredMode" "1440x2560_60.00"
    Option         "RightOf" "DP-2"
    Option         "Position" "2560 0"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "RTX3080"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce RTX 3080"
    BusID          "PCI:9:0:0"
    Option         "Coolbits" "31"
EndSection

Section "Device"
    Identifier     "RTX2070SUPER"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce RTX 2070 SUPER"
    BusID          "PCI:10:0:0"
    Option         "Coolbits" "31"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "RTX3080"
    Monitor        "DP-2"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "RTX2070SUPER"
    Monitor        "DP-0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Last edited by jbhall (2021-05-04 15:00:27)

Offline

#2 2021-04-19 16:59:02

PastExcitement
Member
Registered: 2018-03-01
Posts: 24

Re: Cannot overclock gpu after nvidia upgrade

I encountered the same issue and had to downgrade nvidia and linux kernel versions. See https://forums.developer.nvidia.com/t/4 … set/175640.

cd /var/cache/pacman/pkg
sudo pacman -U nvidia-460.67-5-x86_64.pkg.tar.zst nvidia-utils-460.67-1-x86_64.pkg.tar.zst nvidia-settings-460.67-1-x86_64.pkg.tar.zst linux-5.11.11.arch1-1-x86_64.pkg.tar.zst linux-headers-5.11.11.arch1-1-x86_64.pkg.tar.zst

Last edited by PastExcitement (2021-04-19 17:01:55)

Offline

#3 2021-04-19 17:14:10

jbhall
Member
Registered: 2021-03-11
Posts: 18

Re: Cannot overclock gpu after nvidia upgrade

Thank you. I will try that.

Offline

#4 2021-04-19 17:55:51

jbhall
Member
Registered: 2021-03-11
Posts: 18

Re: Cannot overclock gpu after nvidia upgrade

That worked. I really appreciate the concise answer. Thank you so much. I figured I needed to downgrade, but wasn't sure all that it would entail, so again, I really appreciate the inclusion of the command needed.

Offline

#5 2021-04-19 19:01:37

Paethon
Member
Registered: 2020-05-10
Posts: 1

Re: Cannot overclock gpu after nvidia upgrade

Same issue. Since a few days ago I can't manually control the GPU fan speed anymore (which according to your error message) seems to be the problem. Downgrading solved it for me as well.

Last edited by Paethon (2021-04-19 19:30:11)

Offline

#6 2021-05-04 15:01:28

jbhall
Member
Registered: 2021-03-11
Posts: 18

Re: Cannot overclock gpu after nvidia upgrade

So I've marked this unsolved now because downgrading the kernel is not a good solution. I have a requirement to upgrade my kernel now (virtualbox + vagrant issues). Now I can't overclock my cards. What's the actual fix for this?

Offline

#7 2021-05-04 15:07:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,764

Re: Cannot overclock gpu after nvidia upgrade

I've seen a few reports that the new nvidia driver might support running xorg in rootless mode but this disables overclock support. Check the user xorg is run as and try forcing that to be root by changing the relevant option in /etc/X11/Xwrapper.config

If that doesn't work you can still just downgrade the nvidia driver packages but use your kernels kernel header and the nvidia-dkms package to keep the module compatible.

Offline

#8 2021-05-04 15:18:39

jbhall
Member
Registered: 2021-03-11
Posts: 18

Re: Cannot overclock gpu after nvidia upgrade

So yeah, when I start xorg as root, my overclock commands work again...

However, in doing so, my entire GUI is completely broken because my xinitrc doesn't get run. I understand sometimes there are bugs, and they take time to fix, but has this even been reported or actually discussed somewhere? All these "fixes" seem like they should be temporary...

Offline

#9 2021-05-04 15:20:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,764

Re: Cannot overclock gpu after nvidia upgrade

You shouldn't run xorg as root, but adjust that file I mentioned and then start xorg as your normal user. The actual xorg process should be started as root by the fact you adjusted that line in that file.

And you could compare whether xorg runs as root or not in the downgraded case, in which case this "workaround" wouldn't be a workaround but the proper fix until nvidia has expanded their xorg user support.

As for being discussed somewhere: https://forums.developer.nvidia.com/t/4 … /175640/18

Last edited by V1del (2021-05-04 15:23:39)

Offline

#10 2021-05-04 15:23:33

jbhall
Member
Registered: 2021-03-11
Posts: 18

Re: Cannot overclock gpu after nvidia upgrade

OK, thanks V1del.

My current solution: use ctrl+alt+Fx to start a new virtual console. Run sudo startx to run xorg as root. Mine from that, switch back with ctrl+alt+f1.

Still feels like it should be temporary.

Offline

#11 2021-05-04 15:24:19

jbhall
Member
Registered: 2021-03-11
Posts: 18

Re: Cannot overclock gpu after nvidia upgrade

V1del, I appreciate your input, but I'm ignorant of what I should put in the Xwrapper.config even after googling for awhile.

Offline

#12 2021-05-04 15:24:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,764

Re: Cannot overclock gpu after nvidia upgrade

Set

needs_root_rights = yes

in the file  /etc/X11/Xwrapper.config

Run startx as your normal user.

That way you should be in the same logical situation as on the older driver.

Last edited by V1del (2021-05-04 15:26:00)

Offline

#13 2021-05-04 15:25:58

jbhall
Member
Registered: 2021-03-11
Posts: 18

Re: Cannot overclock gpu after nvidia upgrade

It's funny. Mining from a new virtual console actually improves my hashrate and also removes the slugishness of my GUI... so diamond in the rough. big_smile

Offline

#14 2021-05-04 15:26:34

jbhall
Member
Registered: 2021-03-11
Posts: 18

Re: Cannot overclock gpu after nvidia upgrade

Thanks. I will give your instructions a try right now.

Offline

#15 2021-05-04 15:29:55

jbhall
Member
Registered: 2021-03-11
Posts: 18

Re: Cannot overclock gpu after nvidia upgrade

Unfortunately, needs_root_rights did not fix the issue. sad

Offline

#16 2021-05-04 17:11:48

loqs
Member
Registered: 2014-03-06
Posts: 13,862

Re: Cannot overclock gpu after nvidia upgrade

@jbhall have you also fixed the permissions on /usr/lib/Xorg.wrap?  https://bugs.archlinux.org/task/70469

Offline

#17 2021-05-04 18:36:42

jbhall
Member
Registered: 2021-03-11
Posts: 18

Re: Cannot overclock gpu after nvidia upgrade

Thanks loqs. I'll take a look this evening when I have some time.

Offline

#18 2021-05-13 12:34:31

npc_glitch
Member
Registered: 2021-05-13
Posts: 2

Re: Cannot overclock gpu after nvidia upgrade

Tried upgrading to linux-5.12.3.arch1-1  linux-headers-5.12.3.arch1-1  nvidia-465.27-6  nvidia-dkms-465.27-1 nvidia-settings-465.27-1 and nvidia-utils-465.27-1

Had to downgrade again, still no working fan control.
Does Nvidia know about this problem?

Offline

#19 2021-05-13 18:58:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,764

Re: Cannot overclock gpu after nvidia upgrade

Did you apply the things mentioned here? From everything we see here this is only an issue if you start xorg rootless, which I'm assuming is not an entirely supported/tested usecase.

Offline

#20 2021-05-14 16:42:43

npc_glitch
Member
Registered: 2021-05-13
Posts: 2

Re: Cannot overclock gpu after nvidia upgrade

V1del wrote:

Did you apply the things mentioned here? From everything we see here this is only an issue if you start xorg rootless, which I'm assuming is not an entirely supported/tested usecase.

Yes, but I had to make an Xwrapper.config since I didn't have one, and I put "needs_root_rights = yes" in it. Still no bueno.
For some reason when the fans go under 20% speed they're super loud.
I've been thinking of flashing my card instead of bothering with this. And also not buying Nvidia again lol.

Offline

#21 2021-05-14 18:22:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,764

Re: Cannot overclock gpu after nvidia upgrade

You also need to set a setuid bit on /usr/lib/Xorg.wrap as loqs mentioned

Offline

Board footer

Powered by FluxBB