Charge Current Limits Not Working - "hwmon3/maximum_battery_charge_rate`: Permission denied" #156
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected Behaviour
Just did a clean install on Steam Deck (re-image/wiped everything) using Steam image: steamdeck-repair-20231127.10-3.5.7. After installing Steam (and applying update to v3.5.19), I installed Decky using shortcut/script on their GitHub (v2.12.0) and their instructions. I then installed PowerTools from Decky repo (v2.0.2). I then tried to reduce the maximum charge rate (only setting I've ever changed on this install of PowerTools). After confirming it's not reducing wattage draw (never dropped from ~34 watts power draw), I went digging for logs.
Actual Behaviour
PowerTools is not reducing maximum charge rate (confirmed with USB C power supply).
Steps To Reproduce
Anything else?
Log:
18:54:36 [INFO] CLI arguments, as parsed: Args { port: None, log: None, verbose: false, op: None }
18:54:36 [INFO] Starting back-end (powertools v2.0.2)
18:54:36 [INFO] Current dir
/home/deck/homebrew/services
18:54:36 [INFO] home dir: Some("/home/deck")
18:54:36 [INFO] Last version file: 2.0.2
18:54:36 [INFO] Updated version file succesfully
18:54:36 [INFO] limits_worker starting...
18:54:36 [INFO] Failed to open limits override file
/home/deck/homebrew/settings/PowerTools/limits_override.ron
: No such file or directory (os error 2)18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck gpu drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck gpu hwmon amdgpu in sysfs: /sys/class/hwmon/hwmon5
18:54:36 [INFO] Found SteamDeck battery power_supply in sysfs: /sys/class/power_supply/BAT1
18:54:36 [WARN] Failed to find SteamDeck battery hwmon jupiter in sysfs (Success (os error 0)), trying alternate name
18:54:36 [INFO] Found SteamDeck battery hwmon steamdeck_hwmon in sysfs: /sys/class/hwmon/hwmon3
18:54:36 [INFO] Failed to open limits override file
/home/deck/homebrew/settings/PowerTools/limits_override.ron
: No such file or directory (os error 2)18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck gpu drm in sysfs: /sys/class/drm/card0
18:54:36 [INFO] Found SteamDeck gpu hwmon amdgpu in sysfs: /sys/class/hwmon/hwmon5
18:54:36 [INFO] Found SteamDeck battery power_supply in sysfs: /sys/class/power_supply/BAT1
18:54:36 [WARN] Failed to find SteamDeck battery hwmon jupiter in sysfs (Success (os error 0)), trying alternate name
18:54:36 [INFO] Found SteamDeck battery hwmon steamdeck_hwmon in sysfs: /sys/class/hwmon/hwmon3
18:54:36 [INFO] Detected device automatically SteamDeck, using driver: SteamDeck (This can be overriden)
18:54:36 [INFO] resume_worker starting...
18:54:36 [INFO] power_worker starting...
18:54:36 [ERROR] Startup Settings.on_set() error: Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13)18:54:36 [INFO] chmod/chown ~/.config/powertools for user
deck
(1000)18:54:36 [INFO] api_worker starting...
18:54:36 [INFO] Server::run; addr=127.0.0.1:44443
18:54:36 [INFO] listening on http://127.0.0.1:44443
18:55:02 [ERROR] Failed to load translations for language
en-US
: No such file or directory (os error 2)18:55:02 [INFO] Last id is 0, assuming resumed connection (overriding last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] FRONT-END: Unregistered PowerTools callbacks, so long and thanks for all the fish.
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [WARN] FRONT-END: A resolve failed
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [WARN] FRONT-END: A resolve failed
18:55:02 [INFO] Call ID is low, assuming new connection (resetting last id)
18:55:02 [INFO] FRONT-END: POWERTOOLS: Governors from backend schedutil,schedutil,schedutil,schedutil,schedutil,schedutil,schedutil,schedutil
18:55:35 [INFO] limits_worker completed startup wait
19:02:48 [ERROR] Failed to load translations for language
en-US
: No such file or directory (os error 2)19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] FRONT-END: Unregistered PowerTools callbacks, so long and thanks for all the fish.
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [WARN] FRONT-END: A resolve failed
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [WARN] FRONT-END: A resolve failed
19:02:48 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:48 [INFO] FRONT-END: POWERTOOLS: Governors from backend schedutil,schedutil,schedutil,schedutil,schedutil,schedutil,schedutil,schedutil
19:02:52 [INFO] Call ID is low, assuming new connection (resetting last id)
19:02:57 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:57 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:57 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:57 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:57 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:57 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:57 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:57 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:58 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:58 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:58 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),19:02:58 [ERROR] Settings on_set() err:
Battery setting error: Failed to write to
/sys/class/hwmon/hwmon3/maximum_battery_charge_rate
: Permission denied (os error 13),Version
v2.0.2-rls
Platform
SteamDeck
OS
SteamOS 3 (Stable)
Power Limits - "hwmon3/maximum_battery_charge_rate`: Permission denied"to Charge Current Limits Not Working - "hwmon3/maximum_battery_charge_rate`: Permission denied"It seems like the actual sysfs interface has changed too. I've made the change to align it with the new limits, but I don't see any indication that it actually does anything.