PowerTools attempts to set battery charge rate on startup #151

Closed
opened 2024-05-05 18:09:48 +01:00 by stanto · 3 comments

Expected Behaviour

PowerTools not to try to set the battery charge rate when it is not explicitly attempted as an override

Actual Behaviour

From /tmp/powertools.log:

16:58:09 [INFO] CLI arguments, as parsed: Args { port: None, log: None, verbose: false, op: None }
16:58:09 [INFO] Starting back-end (powertools v2.0.2)
16:58:09 [INFO] Current dir /home/deck/homebrew/services
16:58:09 [INFO] home dir: Some("/home/deck")
16:58:09 [INFO] Last version file: 2.0.2
16:58:09 [INFO] Updated version file succesfully
16:58:09 [INFO] limits_worker starting...
16:58:09 [INFO] Failed to open limits override file /home/deck/homebrew/settings/PowerTools/limits_override.ron: No such file or directory (os error 2)
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck gpu drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck gpu hwmon amdgpu in sysfs: /sys/class/hwmon/hwmon5
16:58:09 [INFO] Found SteamDeck battery power_supply in sysfs: /sys/class/power_supply/BAT1
16:58:09 [WARN] Failed to find SteamDeck battery hwmon jupiter in sysfs (Success (os error 0)), trying alternate name
16:58:09 [INFO] Found SteamDeck battery hwmon steamdeck_hwmon in sysfs: /sys/class/hwmon/hwmon3
16:58:09 [INFO] Failed to open limits override file /home/deck/homebrew/settings/PowerTools/limits_override.ron: No such file or directory (os error 2)
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck gpu drm in sysfs: /sys/class/drm/card0
16:58:09 [INFO] Found SteamDeck gpu hwmon amdgpu in sysfs: /sys/class/hwmon/hwmon5
16:58:09 [INFO] Found SteamDeck battery power_supply in sysfs: /sys/class/power_supply/BAT1
16:58:09 [WARN] Failed to find SteamDeck battery hwmon jupiter in sysfs (Success (os error 0)), trying alternate name
16:58:09 [INFO] Found SteamDeck battery hwmon steamdeck_hwmon in sysfs: /sys/class/hwmon/hwmon3
16:58:09 [INFO] Detected device automatically SteamDeck, using driver: SteamDeck (This can be overriden)
16:58:09 [INFO] resume_worker starting...
16:58:09 [INFO] power_worker starting...
16:58:09 [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)

Steps To Reproduce

  1. Install decky loader
  2. Install powertools
  3. Open powertools.log after first boot
  4. See that it's trying to set the maximum charge rate

Anything else?

LCD SteamDeck on BIOS 131

Version

2.0.2-rls

Platform

SteamDeck

OS

SteamOS 3 (Stable)

### Expected Behaviour PowerTools not to try to set the battery charge rate when it is not explicitly attempted as an override ### Actual Behaviour From /tmp/powertools.log: 16:58:09 [INFO] CLI arguments, as parsed: Args { port: None, log: None, verbose: false, op: None } 16:58:09 [INFO] Starting back-end (powertools v2.0.2) 16:58:09 [INFO] Current dir `/home/deck/homebrew/services` 16:58:09 [INFO] home dir: Some("/home/deck") 16:58:09 [INFO] Last version file: 2.0.2 16:58:09 [INFO] Updated version file succesfully 16:58:09 [INFO] limits_worker starting... 16:58:09 [INFO] Failed to open limits override file `/home/deck/homebrew/settings/PowerTools/limits_override.ron`: No such file or directory (os error 2) 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck gpu drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck gpu hwmon amdgpu in sysfs: /sys/class/hwmon/hwmon5 16:58:09 [INFO] Found SteamDeck battery power_supply in sysfs: /sys/class/power_supply/BAT1 16:58:09 [WARN] Failed to find SteamDeck battery hwmon jupiter in sysfs (Success (os error 0)), trying alternate name 16:58:09 [INFO] Found SteamDeck battery hwmon steamdeck_hwmon in sysfs: /sys/class/hwmon/hwmon3 16:58:09 [INFO] Failed to open limits override file `/home/deck/homebrew/settings/PowerTools/limits_override.ron`: No such file or directory (os error 2) 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck gpu drm in sysfs: /sys/class/drm/card0 16:58:09 [INFO] Found SteamDeck gpu hwmon amdgpu in sysfs: /sys/class/hwmon/hwmon5 16:58:09 [INFO] Found SteamDeck battery power_supply in sysfs: /sys/class/power_supply/BAT1 16:58:09 [WARN] Failed to find SteamDeck battery hwmon jupiter in sysfs (Success (os error 0)), trying alternate name 16:58:09 [INFO] Found SteamDeck battery hwmon steamdeck_hwmon in sysfs: /sys/class/hwmon/hwmon3 16:58:09 [INFO] Detected device automatically SteamDeck, using driver: SteamDeck (This can be overriden) 16:58:09 [INFO] resume_worker starting... 16:58:09 [INFO] power_worker starting... 16:58:09 [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) ### Steps To Reproduce 1. Install decky loader 2. Install powertools 3. Open powertools.log after first boot 4. See that it's trying to set the maximum charge rate ### Anything else? LCD SteamDeck on BIOS 131 ### Version 2.0.2-rls ### Platform SteamDeck ### OS SteamOS 3 (Stable)
stanto added the
bug
label 2024-05-05 18:09:48 +01:00
Owner

This is expected behaviour

This is expected behaviour
Author

@NGnius Why is it setting the charge rate if I'm not purposefully overriding the charge rate?

@NGnius Why is it setting the charge rate if I'm not purposefully overriding the charge rate?
Owner

Everything, including charge rate, gets set to default values when a profile is loaded

Everything, including charge rate, gets set to default values when a profile is loaded
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: NG-SD-Plugins/PowerTools#151
No description provided.