Skip to content

Restore saved hardware settings on plugin startup#18

Open
lonsdaleite wants to merge 1 commit into
PixelAddictUnlocked:mainfrom
lonsdaleite:fix/restore-settings-on-startup
Open

Restore saved hardware settings on plugin startup#18
lonsdaleite wants to merge 1 commit into
PixelAddictUnlocked:mainfrom
lonsdaleite:fix/restore-settings-on-startup

Conversation

@lonsdaleite

Copy link
Copy Markdown

Summary

  • Add _apply_settings() and call it from _main() after load_settings()
  • Restores persisted RGB, CPU boost, SMT, charge limit, TDP, and fan settings to hardware on plugin load

Problem

Settings were saved to settings.json when changed, but were not reapplied after a Decky Loader restart or system reboot. For example, CPU Boost and RGB would reset to defaults even though the UI/settings file still reflected the saved values.

Test plan

  • Disable CPU Boost, restart plugin_loader, confirm boost stays disabled
  • Change RGB color/effect, restart plugin_loader, confirm lighting matches saved settings
  • Set charge limit below 100%, reboot, confirm limit is still applied
  • Select a performance profile, restart plugin_loader, confirm TDP/fan profile is restored

Apply persisted RGB, CPU, charge limit, TDP, and fan settings when the plugin loads so they survive Decky restarts and reboots.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant