Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Additional per-game configs #82

Open
3 tasks done
NGnius opened this issue Mar 19, 2023 · 3 comments
Open
3 tasks done

Additional per-game configs #82

NGnius opened this issue Mar 19, 2023 · 3 comments
Labels
enhancement New feature or request research Further investigation required
Milestone

Comments

@NGnius
Copy link
Owner

NGnius commented Mar 19, 2023

Please confirm

  • I have searched existing issues
  • This issue is not a duplicate of an existing one
  • I will fill this out to the best of my ability

Describe what you'd like to be able to do

Create multiple PowerTools configs for a game. This could be used for functionality such as having a high-power config for playing plugged in and a more efficient profile for playing on battery.

Changing between profiles could be done manually or automatically for certain scenarios. Manual config select could be done by a dropdown. Automatic could maybe be triggered by events like charger un/plugged, low battery, temperature, etc. (suggestions welcome).

This may be possible to do without breaking existing configs, but will undoubtedly force a file format upgrade which will change things in arbitrary (and possibly undesirable) ways. It may be best to make this a breaking change with no upgrade path.

Describe alternatives you've considered

Multiple configs can currently be accomplished by remembering the settings and applying them manually when desired. I'm not a fan of remembering things that I don't have to, though.

Anything else?

I think this is a misuse of the Steam Deck, since it isn't designed to increase performance like the Nintendo Switch when docked, but I'm not going to force my opinion on others.

@NGnius NGnius added the enhancement New feature or request label Mar 19, 2023
@NGnius NGnius added this to the Valerian milestone Mar 19, 2023
@NGnius NGnius added the research Further investigation required label Mar 19, 2023
@NGnius
Copy link
Owner Author

NGnius commented Mar 19, 2023

For detecting whether the Deck is plugged in, there's /sys/class/hwmon/hwmon5/in0_input which is the USB PD negotiated voltage (presumably in mV). It's 0 when unplugged, and changes based on the charger's capabilities (non-PD USB is 5000, my PD laptop charger through a dock is 15000).

I'd really like a way to detect that without polling, but I'd rather not have to tie it into the frontend battery event if possible. Frontend tie-in increases risk of breakages, since the JS is not guaranteed to be stable.

@phush0
Copy link

phush0 commented May 15, 2023

you can try ACPI event or UPOWER dbus, I don't know if it is installed on deck though. I have successfully used rust dbus to connect to it to write something similar for Razer laptops - aka profiles for plugged and unplugged.

@TedsGitHubEmporium
Copy link

This would be greatly appreciated. I use my deck in handheld mode alot and would like to have per game settings like the system profiles. This would allow me to limit tdp per game so it can be high when needed or capped without needed to tweak every single time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request research Further investigation required
Projects
None yet
Development

No branches or pull requests

3 participants