-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jackdbus wakes up every 200ms #962
Labels
Comments
StefanBruens
added a commit
to StefanBruens/jack2
that referenced
this issue
Dec 13, 2023
Most processing happens as a result of an incoming DBus event. The only case when a timed processing is needed is due to an pending save. Instead of implementing a full event loop just run the timed loop while a save is pending, and use an infinite timeout otherwise. Fixes: jackaudio#962
nedko
pushed a commit
to LADI/jackdbus
that referenced
this issue
Aug 26, 2024
Most processing happens as a result of an incoming DBus event. The only case when a timed processing is needed is due to an pending save. Instead of implementing a full event loop just run the timed loop while a save is pending, and use an infinite timeout otherwise. Fix for jackaudio/jack2#962 Thanks you @StefanBruens (cherry picked from commit fd1ac1422460c02cba17ea3053a4e6517290750c)
nedko
pushed a commit
to LADI/jackdbus
that referenced
this issue
Aug 26, 2024
Most processing happens as a result of an incoming DBus event. The only case when a timed processing is needed is due to an pending save. Instead of implementing a full event loop just run the timed loop while a save is pending, and use an infinite timeout otherwise. Fix for jackaudio/jack2#962 Thanks @StefanBruens (cherry picked from commit fd1ac1422460c02cba17ea3053a4e6517290750c)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even when jackdbus is just listening for DBus events it continuously wakes up every 200 ms.
Environment
Steps To Reproduce
Start jackbus
Attach strace
Expected vs. actual behavior
When jackdbus is idle, it should not wake up.
Waking up, even when there are no actual events pending, shortens runtime on battery. This is especially important as jackdbus is often just running in the background.
jack2/dbus/jackdbus.c
Line 950 in 886b35c
The only actual need for the timed wakeup is a pending save.
The text was updated successfully, but these errors were encountered: