Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The PowerTools Decky Loader plugin is nonfunctional. #60

Closed
jerbmega opened this issue Jul 20, 2023 · 11 comments
Closed

The PowerTools Decky Loader plugin is nonfunctional. #60

jerbmega opened this issue Jul 20, 2023 · 11 comments

Comments

@jerbmega
Copy link

Not sure how fixable it is, but no options have any effect at all. May be related to #57?

@KyleGospo
Copy link
Member

This should be universal, it's used by various other handhelds for hardware controls. You may try disabling SELinux with sudo setenforce 0 to test if this begins working as expected.

@jerbmega
Copy link
Author

No change, at least according to MangoHUD. The karg in #57 also had no effect.

@KyleGospo
Copy link
Member

Powertools should be creating a log at /tmp/powertools.log, can you provide that?

@jerbmega
Copy link
Author

jerbmega commented Jul 20, 2023

https://paste.rs/NOc0O
Main thing I tried was changing the GPU clock speed (as a workaround for the BPM toggle not working right now). It looks like it's expecting the GPU to be present under card0, but on Bazzite it shows up as card1. For what it's worth, that matches the behavior on my custom Universal Blue image on my desktop with an RDNA2 graphics card as well. The battery errors are similar, expecting a device to show up with a specific hwmon number, but Bazzite's values don't match SteamOS here.

These settings appear to be hardcoded within PowerTools source code at https://github.com/NGnius/PowerTools/tree/main/backend/src/settings/steam_deck. I think this line of the log is particularly notable: 02:17:07 [INFO] Detected device automatically, starting with driver: SteamDeck (This can be overriden)

Maybe setting this to a generic driver would be good enough?

(EDIT: While I could've sworn I tried this earlier and it didn't have any effect, disabling SMT and threads does work in PowerTools. I can also confirm that changing CPU governor works here. However, CPU frequency is not respected regardless of SELinux mode, and GPU setting woes remain.)

@KyleGospo
Copy link
Member

Very strange that they use hardcoded hwmon paths. I'll try messaging Ngnius and see if we can get some direction here.

@NGnius
Copy link

NGnius commented Jul 20, 2023

For now it would be best to use a different device driver. These can be forced by editing the game config provider you want changed in the specific <gameId>.json file in ~/.config/powertools (options are steam-deck, generic, generic-amd, unknown, gabe-boy). Provider should be auto by default. The underlying issue is that PowerTools has hard coded paths since it expects everyone on Steam Deck to be using SteamOS.

@EyeCantCU
Copy link
Member

Every option I've tested seems to have some effect (monitored in mangohud), but there are errors thrown for a couple toggles

https://paste.centos.org/view/3a861d0b

@NGnius
Copy link

NGnius commented Jul 24, 2023

Changing the driver should simply hide the UI elements that won't work. The only alarming error that I see in that log is that the battery current limit can't be set correctly by the steam deck driver, which is consistent with the rest of this issue.

@KyleGospo
Copy link
Member

Steam Deck's vpower service is ported now which throws some battery data in /run.

That should put us at absolute feature parity with the only issue being the differing hwmon paths, which should change often here.

@aarron-lee
Copy link
Contributor

aarron-lee commented Aug 25, 2023

This should be universal, it's used by various other handhelds for hardware controls.

As far as I know, PowerTools has never been functional on other hardware and distros. You might be mixing up PowerTools with PowerControl (this fork has better description and pictures)

For ChimeraOS, HoloISO, etc, PowerControl has been the plugin to use on alternative hardware. Unfortunately, it's not available in the Decky store so it has to be manually installed.

@NGnius
Copy link

NGnius commented Aug 26, 2023

PowerTools does have limited support for other handhelds, but since I only own a Steam Deck that's got the best support. The rest is mostly accomplished by me blindly changing things and crossing my fingers, and the occasional contribution from others. I try not to buy unnecessary electronics since they're expensive and bad for the environment, but occasionally fun overrides my good judgement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

5 participants