Repository navigation
Conversation
|
The retained Build and test run reports failure at the current head, but GitHub now returns zero jobs/check runs, so there is no diagnostic evidence available to identify a code failure. My rerun request returned HTTP 403 ( |
Treat an empty HoldProfile reply as a failed hold instead of retaining cookie zero. Exercise the real hold lifecycle against a fake bus so modern and legacy endpoints, missing services, denied requests and malformed replies are checked without changing the host power profile.
|
@codex review Please review the complete candidate against the current target branch (code review). Head Upstream merge remains a maintainer action after review and qualification. |
|
The signed empty-cookie repair at |
Summary
Use the power-profiles-daemon
HoldProfileAPI while GameMode is active.The first registered client requests the configured performance profile, and the final client releases it. The system D-Bus connection remains open for the lifetime of the hold, so daemon exit also releases it.
Behavior
org.freedesktop.UPower.PowerProfiles.net.hadess.PowerProfilesAPI used by older PPD versions and compatible implementations such as tuned-ppd.platform_profilehandling when neither API exists,desiredprofcannot be represented by a PPD hold, ordefaultprofrequests exact restoration semantics.No new dependency or configuration option is added; the implementation uses the existing sd-bus dependency.
Testing
scripts/format-check.sh-Dwith-examples=truemeson test -C builddir --print-errorlogsclang-tidyon the changed daemon sources (only existing project-wide logging warnings)Full
gamemoded -thardware validation is pending the local removal of competing ASUS profile writers, hence this is submitted as a draft.Fixes #333
Fixes #462
Current qualification — 8 October 2026
Head
627aac2f605824d6ba71c73a6c2f7cbd197d661crejects emptyHoldProfilereplies instead of accepting cookie zero. The regression failed before the fix. Native Meson build with examples and all 18 Meson tests pass, including a new host-independent test of modern/legacy endpoints, unavailable services, denied requests, empty/malformed replies and bus failure. Scoped clang-format checks pass.The new test uses a fake system bus. Full hardware/PPD qualification, current Codex review and hosted upstream CI remain outstanding.
Current upstream CI — 8 October 2026
Run 37754242744 is
completed/action_requiredat signed head627aac2f605824d6ba71c73a6c2f7cbd197d661c. Maintainers must approve the fork workflow and obtain passing current-head CI. Native build and all 18 Meson tests pass; hardware/PPD qualification and the existing complete-candidate Codex review remain open.