You are not logged in.
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
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
Thank you. I will try that.
Offline
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
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
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
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
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
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
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
V1del, I appreciate your input, but I'm ignorant of what I should put in the Xwrapper.config even after googling for awhile.
Offline
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
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.
Offline
Thanks. I will give your instructions a try right now.
Offline
Unfortunately, needs_root_rights did not fix the issue.
Offline
@jbhall have you also fixed the permissions on /usr/lib/Xorg.wrap? https://bugs.archlinux.org/task/70469
Offline
Thanks loqs. I'll take a look this evening when I have some time.
Offline
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
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
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
You also need to set a setuid bit on /usr/lib/Xorg.wrap as loqs mentioned
Offline