Unable to set power limit on 5.15
Brief summary of the problem:
I'm unable to set power limit via power1_cap when I try to do so through TTY (not starting any gui).
# echo 55000000 > cat /sys/class/drm/card0/device/hwmon/hwmon1/power1_cap
I'm getting write error: Not supported
Hardware description:
- CPU: Ryzen 5900HX
- GPU: RX 6800M
System information:
- Distro name and Version: Alpine 3.15
- Kernel version: 5.15.3+
- Custom kernel: -
How to reproduce the issue:
- Boot to tty
- Try to set power limit.
However
If I start a wayland compositor withing 5 seconds (same error happens if I do it later) after login prompt comes up, I can manipulate the parameter as I wish, it seems to work perfectly fine from terminal emulator.
dmesg
From TTY (unable to set power): https://pastebin.com/aRfQuyRR
From Wayland compositor, less than 5 seconds login delay (power sets as intended): https://pastebin.com/UgEvarYj
From Wayland compositor, more than 5 seconds login delay (unable to set power): https://pastebin.com/b8J5tZAF