aarron-lee / SimpleDeckyTDP

Decky TDP plugin for alternative PC handhelds
Other
49 stars 8 forks source link

SMT disabled breaks suspend/resume #39

Closed Emiliopg91 closed 1 month ago

Emiliopg91 commented 2 months ago

Hi

For Ally X its a well known issue that if you suspend with SMT disabled, when you resume the device, randomly everything will be frozen and you have to force a device reboot

I suggest next: -créate a hook for DFL for listening suspend-resume events -on pre suspend suspend events, store in a variable current SMT status and always enable it -on post-resume events, restore the previous SMT status

This may fix this issue If my baby and wife allow me, i'll fork the project and make a POC. If everything is ok, ill do a PR ASAP

Other thing i Want to include is adding battery charge limit to increase battery life span, but I thing I dont known when will i do it (right now i hav done it in a systemd service and it works properly)

aarron-lee commented 1 month ago

sorry, I was busy for the past few days and didn't see this issue. I'll take a look at the issue + open PRs and see what can be done.

aarron-lee commented 1 month ago

resolved by #40