Skip to content

feat!: replace presuspend unit with dbus integration#755

Merged
languitar merged 1 commit intomainfrom
feature/get-rid-of-presuspend-hook
Feb 10, 2026
Merged

feat!: replace presuspend unit with dbus integration#755
languitar merged 1 commit intomainfrom
feature/get-rid-of-presuspend-hook

Conversation

@languitar
Copy link
Owner

@languitar languitar commented Feb 8, 2026

Instead of requiring a second systemd unit for detecting going into suspend, use dbus directly to get notified about an upcoming suspension. This avoids filesystem-based synchronization including the portalock dependency.

A few config options have been removed due not needed a woke up file anymore.

BREAKING CHANGE: dbus and pygobject are now mandatory dependencies

@codecov
Copy link

codecov bot commented Feb 8, 2026

Codecov Report

❌ Patch coverage is 85.24590% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.64%. Comparing base (dad0eb6) to head (5c2a080).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/autosuspend/__init__.py 84.21% 6 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #755      +/-   ##
==========================================
- Coverage   95.81%   95.64%   -0.17%     
==========================================
  Files          20       20              
  Lines        1338     1333       -5     
  Branches      115      116       +1     
==========================================
- Hits         1282     1275       -7     
+ Misses         46       45       -1     
- Partials       10       13       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@languitar languitar force-pushed the feature/get-rid-of-presuspend-hook branch 4 times, most recently from 4eac828 to da7814c Compare February 10, 2026 22:12
@languitar languitar marked this pull request as ready for review February 10, 2026 22:12
Instead of requiring a second systemd unit for detecting going into
suspend, use dbus directly to get notified about an upcoming suspension.
This avoids filesystem-based synchronization including the portalocker
dependency.

A few config options have been removed due not needing a woke up file
anymore.

Readthedocs build had to be bumped to Ubuntu 24.04 for having pygobject
dependencies available.

BREAKING CHANGE: dbus and pygobject are now a mandatory dependencies
@languitar languitar force-pushed the feature/get-rid-of-presuspend-hook branch from da7814c to 5c2a080 Compare February 10, 2026 22:15
@languitar languitar enabled auto-merge February 10, 2026 22:15
@languitar languitar merged commit 8a2dda6 into main Feb 10, 2026
9 of 10 checks passed
@languitar languitar deleted the feature/get-rid-of-presuspend-hook branch February 10, 2026 22:16
@renovate-releases
Copy link

🎉 This PR is included in version 10.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant