Setting NVIDIA fan speed without logging in graphically
Hi,
I'm try to set my fans to 30% speed when my machine boots
I've been using nvidia-settings to do it via CLI and even set up a small script to do a fan profile for me every changing every ~5C (before I discovered GreenWithEnvy )
I'm using SDDM with Plasma. I tried adding the below to my /usr/share/sddm/scripts/Xsession
nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUTargetFanSpeed=30" -a "[fan:1]/GPUTargetFanSpeed=30"
It doesn't seem to activate when SDDM starts. It seems like nvidia-settings doesn't run at all unless a user is logged in graphically. To confirm this, I logged in to tty2 after SDDM started and was sitting at the user login screen. I ran nvidia-settings and it failed, however after adding DISPLAY=:0, it failes with a different error about MIT-MAGIC-COOKIE missing.
Both of those are kind of beside the problem though. If this was a headless server that wasn't running X, how would I go about using nvidia-settings to set the fanspeed?
About this post
- Posted
- Archived
- Score
- 2 · 100% up
- Kind
- Text
- ID
- ubwslt