clementine-player / Clementine

:tangerine: Clementine Music Player
https://www.clementine-player.org/
GNU General Public License v3.0
3.73k stars 674 forks source link

Playback doesn't prevent suspend on Ubuntu #7191

Open kryger opened 2 years ago

kryger commented 2 years ago

Before posting

Please follow the steps below and check the boxes with [x] once you did the step.

System information

Please provide information about your system and the version of Clementine used.

Expected behaviour / actual behaviour

On a system with power management set to "suspend after X minutes of inactivity" playing music via Clementine should prevent the system from going to sleep. Stopping/pausing the music should let the inactivity timer go again and allow going to sleep in X minutes. Currently music playback is interrupted after X minutes of inactivity and the system suspends.

Steps to reproduce the problem (only for bugs)

In power management settings set "suspend after 15 minutes of inactivity", start playing music and wait 15 minutes.

No idea if it's Clementine itself that should periodically ping the OS that it's still "active", or the sound engine's/backend's responsibility. Rhythmbox doesn't suffer from this problem.