You are not logged in.
Hello!
Not so long ago I got a new graphics card, AMD RX 9070 XT, and since then at times my computer was suddenly rebooting in the middle of playing a game (instant reboot, without freezing on anything). It was happening rare enough, but now with Subnautica 2 it happens very often. My first suspicion is that my old motherboard and/or power supply fail to deliver the necessary power to the graphics card, so I wanted to set a power limit and see hot it goes. Yet, when I try to do so, I fail:
sudo echo 230000000 > /sys/class/drm/card1/device/hwmon/hwmon2/power1_cap
zsh: permission denied: /sys/class/drm/card1/device/hwmon/hwmon2/power1_cap
Is there a reason I cannot setup the power limit like that? I did set up the kernel parameter amdgpu.ppfeaturemask for overclocking, as was indicated in the wiki. Could someone please advise me on what to do?
Offline
sudo applies to the echo command, but not to the redirect.
Try:
sudo bash -c "sudo echo 230000000 > /sys/class/drm/card1/device/hwmon/hwmon2/power1_cap"or
echo 230000000 | sudo tee /sys/class/drm/card1/device/hwmon/hwmon2/power1_capThe first case runs a bash shell with elevated privilege and runs the given command entirely with elevated rights.
The second case runs the echo as an ordinary user and redirects to an instance of tee that runs with elevated privilege.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Try:
sudo bash -c "sudo echo 230000000 > /sys/class/drm/card1/device/hwmon/hwmon2/power1_cap"
Thank you that totally worked! Will it help to put a stop to these random reboots remains to be seen
Offline