In Linux Mint 17 I have Suspend when inactive for under Power Management set to 10 minutes.The problem is that the system suspends even when I'm listening to music using Spotify.Is there any way to prevent this?
Prevent Mint from suspending while playing music in Spotify
linux mint;power management
I found this article which suggests a couple of ways to stop the screensaver from activating. I have not tested this but since they presumably issue events to stop the activation (the second does at least), that should also count as activity for the inactivity monitor. You'll have to test this though, I'm not sure it will work. Install caffeine. This can be done by adding a ppa to your system and then installing it like any other package. As long as you're using the normal Mint, this should also work for you.sudo add-apt-repository ppa:caffeine-developers/ppasudo apt-get updatesudo apt-get install caffeineThen, launch caffeine and its icon should appear in your system tray. You can choose which programs should cancel suspending.Note: As of the 2.7 release of caffeine, the program no longer has a GUI and works only as a daemon. When running, it will prevent the screensaver from activating so long as the active window is full screen. The LightsOn script. It won't check spotify by default but it is easy enough to modify it to do so. Just add spotify to the delay_progs array at the beginging of the script:delay_progs=(spotify)Then, add the script to your startup programs so it runs in the background.  and it should stop you from suspending if spotify is running. Note that this does not check whether any music is playing, just whether the program is running.Let me know if these don't work for the suspension and I'll try and hack something together using xdotool or similar programs. 