Since x11 commonly run as root, you can run things like
nvidia-settings -a GPUFanControlState=1 -a GPUTargetFanSpeed=50
and it will work. But on wayland, you will get
ERROR: The current user does not have permission for operation
unless called with sudo. What exactly is the permission model about calling nvidia-settings/NVML? Is it possible to add user to some specific group to allow access, or any other way than sudo, so I can use it in scripts etc.?
I am on Arch, using nvidia-open 570.86.16-2, if that makes any difference. Thank you!