Fix power profile synchronization and add one-click scripts#320
Open
Ishtiaqe wants to merge 1 commit into
Open
Fix power profile synchronization and add one-click scripts#320Ishtiaqe wants to merge 1 commit into
Ishtiaqe wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR improves power profile synchronization, resolves the startup/close overwrite issues, and simplifies the build and installation process with top-level scripts.
Changes:
Robust D-Bus Property Access:
queryPowerProfile()andqueryChargerState()inPowerMonitorto use Qt's nativeiface.property()instead of raw D-BusGetcalls..canConvert<QDBusVariant>()checks) to ensure compatibility on different D-Bus architectures.Wildcard Signal Connections:
""service name wildcard), resolving signal delivery failures caused by unique name or alias resolution mismatches.Low-power Mode Mappings Conflict Resolution:
on_PowerProfileChange, if the reported system profile isPowerSaver, it keeps eitherSilentorSuper Batterymode if the hardware is already configured in one of those low-power modes, preventing the UI from overriding the user's manual preference.Startup Overwrite Prevention:
loadSettings()inOperateto check ifautoPPDorautoAcDcare enabled on startup. If auto-profiles are active, it skips applying the saved"UserMode"to the EC, allowing the system's power state to be checked and synchronized bidirectionally on launch.Top-level One-click Installer and Uninstaller:
install.shanduninstall.shat the repository root to clean, build, and deploy all binary components, system D-Bus configurations, and shortcuts in a single step.