You are not logged in.

#1 2026-05-22 13:40:28

tema726
Member
Registered: 2023-02-28
Posts: 4

Cannot set up power limits foe my AMD graphics card

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

#2 2026-05-22 14:45:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,634

Re: Cannot set up power limits foe my AMD graphics card

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_cap

The 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

#3 2026-05-22 14:59:27

tema726
Member
Registered: 2023-02-28
Posts: 4

Re: Cannot set up power limits foe my AMD graphics card

ewaller wrote:

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

Board footer

Powered by FluxBB