Skip to content
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

Open
StefanBruens opened this issue Dec 13, 2023 · 0 comments · May be fixed by #963
Open

Jackdbus wakes up every 200ms #962

StefanBruens opened this issue Dec 13, 2023 · 0 comments · May be fixed by #963
Labels

Comments

@StefanBruens
Copy link

Even when jackdbus is just listening for DBus events it continuously wakes up every 200 ms.

Environment

  • JACK Version: 1.9.22
  • Operating System: Linux (openSUSE Tumbleweed 20231212)
  • Installation: Distribution packages

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.

while (!g_exit_command && dbus_connection_read_write_dispatch (g_connection, 200))

The only actual need for the timed wakeup is a pending save.

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
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 a pull request may close this issue.

1 participant