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

Inhibit system idle timeouts #257

Closed
spikespaz opened this issue Jul 29, 2023 · 3 comments
Closed

Inhibit system idle timeouts #257

spikespaz opened this issue Jul 29, 2023 · 3 comments
Assignees
Labels
Available in next release bug Something isn't working enhancement New feature or request

Comments

@spikespaz
Copy link

While playing, the program should inhibit idle deamons.

On Xorg/X11, this can be accomplished with the DBus messages:
https://www.freedesktop.org/wiki/Software/systemd/inhibit/

On Wayland, this can be done by utilizing the idle-inhibit-unstable-v1 protocol:
https://wayland.app/protocols/idle-inhibit-unstable-v1

If implementing support for Wayland protocols is too much effort, you could get away with using the freedesktop-compliant inhibit messages over DBus, because us Wayland users have a tool called idlehack to make the two inhibit protocols inter-compatible.

@Mastermindzh
Copy link
Owner

Mastermindzh commented Jul 31, 2023

I'll have a look whether we can send a "sleep" inhibitor whilst music is playing 😄

edit: after reading more, probably going to take an idle lock whilst music is playing and release it when music stops/is paused.

@Mastermindzh Mastermindzh added bug Something isn't working enhancement New feature or request labels Jul 31, 2023
@Mastermindzh Mastermindzh self-assigned this Aug 12, 2023
@Mastermindzh
Copy link
Owner

Electron offers PowerSaveBlocker for this.

I will implement it for the next release.

@Mastermindzh
Copy link
Owner

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Available in next release bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants