Skip to content

Commit

Permalink
Merge pull request #672 from AdamWill/set-on-battery-before-switch-pr…
Browse files Browse the repository at this point in the history
…ofile

controller init: set _on_battery before switching profile
  • Loading branch information
yarda authored Aug 19, 2024
2 parents 0a85d3c + 1831343 commit c082797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuned/ppd/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def initialize(self):
self._config = PPDConfig(PPD_CONFIG_FILE)
active_profile = self.active_profile()
self._base_profile = active_profile if active_profile != UNKNOWN_PROFILE else self._config.default_profile
self.switch_profile(self._base_profile)
self._on_battery = False
self.switch_profile(self._base_profile)
if self._config.battery_detection:
self.setup_battery_signaling()

Expand Down

0 comments on commit c082797

Please sign in to comment.