Hi jk_14

I am working on trying to control fan on the rigs due to shitty GPU fan speed curve on the bios.
most cards runs at a ridiculous low fan speed to
enforce planned obsolescence "prevent noise" or so they say, the result is, the card is hot as fuck, and the fan runs at 20 or 25% speed at the most, plain stupid.
this is what i got so far:
activate cool-bits 28:
service lightdm stop
nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
reboot
now we can use this to control the fan
nvidia-settings -a '[gpu:0]/GPUFanControlState=1'
nvidia-settings -a '[fan:0]/GPUTargetFanSpeed=80'
this will set fan speed to a fixed 80% PWM.
remember that once GPUFanControlState is set to 1, if you don't set GPUTargetFanSpeed the fan will remain off (0% ) even if the card is burning up!!! so remember to execute both at the same time or before the miner starts.
now this works fantastically well when i have the monitor connected, but if i don't connect the monitor i get this error (this is where i'm stuck)
/usr/bin/nvidia-settings -a '[gpu:0]/GPUFanControlState=1'
No protocol specified
** (nvidia-settings:2680): WARNING **: Could not open X display
No protocol specified
ERROR: The control display is undefined; please run `/usr/bin/nvidia-settings --help` for usage
information.
I tried to export DISPLAY=:0 but no success.
any ideas?
i don't know what to do, if the monitor is plugged in i can control it fine, but if not, i have that error.
so far i tested it on only one GPU, dunno what will happens when i try to set all the cards but only one connected to the monitor.
will i need HDMI dummy plugs? those are impossible to find here

any ideas greatly appreciated

cheers
indkt.