vixalien / muzika

Elegant music streaming app
GNU General Public License v3.0
253 stars 15 forks source link

[Feature request] Inhibit suspend while playing #106

Open Alexmitter opened 7 months ago

Alexmitter commented 7 months ago

It is a very useful feature especially for those of us using the app on a mobile device but I see it as useful for desktop users too. Lollypop does the same, https://gitlab.gnome.org/World/lollypop/-/blob/master/lollypop/inhibitor.py

Currently we have to enter Settings -> Power and disable the sleep mechanism before starting to listen on the go and than go back and manually activate it again.

vixalien commented 7 months ago

Hmm. I would only consider inhibiting suspend when playing videos or looking at the lyrics, as you don't want your screen off in those cases. Are there any other use cases?

Alexmitter commented 7 months ago

On a phone you usually have the device playing music while being in your pocket, as the screen is off it will enter the sleep state as currently nothing is telling it to please don't. Inhibiting suspend and inhibiting the screen turning off are two different things. Suspend in the case of a mobile linux phone means Suspend to RAM.