prevent suspend when playing

Post Reply
dafreez
Posts: 3
Joined: Tue Feb 22, 2011 2:18 pm

prevent suspend when playing

Post by dafreez » Fri May 04, 2012 1:49 am

I often use guayadeque to listen to music while I work (not on the computer) After 10 minutes Gnome Power Manager activates suspend. I can use sleep inhibitor to prevent this, but a feature/option that prevents the computer suspending while guayadeque is playing music would be awesome.

l300lvl
Posts: 226
Joined: Sun Mar 06, 2011 12:21 pm

prevent suspend when playing

Post by l300lvl » Fri May 04, 2012 6:33 am

Have you ever heard of Caffeine? It allows you to control a list of applications which if detected the program will then inhibit sleep for you. I actually like caffeine because I can control inhibit for the entire system all with one app. I have used it for over 2 years now on various distros and it uses VERY little overhead, so little I never realize it's even running.

It is probably in the ubuntu/mint repos and I know it is also available for openSuSe, but let me know if you need help. http://launchpad.net/caffeine/

dafreez
Posts: 3
Joined: Tue Feb 22, 2011 2:18 pm

prevent suspend when playing

Post by dafreez » Tue May 08, 2012 8:59 am

I just switched for caffeine. I like the possibility to list apps which prevent suspend. Ideally, however, I would want it to only prevent suspend when guayadeque is actually playing music and not if ti is running but paused/stopped...

bmbaker
Posts: 72
Joined: Tue Oct 19, 2010 3:12 am

prevent suspend when playing

Post by bmbaker » Sun Oct 28, 2012 4:19 am

i have been trying to get guayadeque to wk with caffeine but no joy!
if i use guayadeque or /usr/bin/guayadeque i get nothing !
any ideas?
I am running gnome-shell 3.7.1 with ubuntu 12.10 (quantal)

l300lvl
Posts: 226
Joined: Sun Mar 06, 2011 12:21 pm

prevent suspend when playing

Post by l300lvl » Sun Oct 28, 2012 11:08 am

So basically under 3.7.1, after adding guayadeque to Caffeine's list, the screen still locks or blanks?

Can you check that caffeine works/doesn't work, with another app like vlc or totem?

bmbaker
Posts: 72
Joined: Tue Oct 19, 2010 3:12 am

prevent suspend when playing

Post by bmbaker » Sun Oct 28, 2012 5:18 pm

it wks fine with vlc !

l300lvl
Posts: 226
Joined: Sun Mar 06, 2011 12:21 pm

prevent suspend when playing

Post by l300lvl » Mon Oct 29, 2012 8:16 am

ok. i asked because i have problems in 3.6 where the screen constantly locks after a certain time regardless of what i'm doing, so it might be a 3.6 specific bug. i was curious if it affected you as well.

you could always try something else like manually installing the Caffeine extension:

https://github.com/eonpatapon/gnome-she ... n-caffeine

You need to download the zip and change the metadata version to 3.7 then save it and extract everything in it to ~/.local/share/gnome-shell/extensions/caffeine@patapon.info

An empty cup signifies the screensaver is being inhibited

bmbaker
Posts: 72
Joined: Tue Oct 19, 2010 3:12 am

prevent suspend when playing

Post by bmbaker » Thu Nov 01, 2012 2:46 am

i have just tried it in 3.6 and 3.7 and your right it doesn't wk
i did some googling :-)
http://pragmattica.wordpress.com/2009/1 ... -released/

bmbaker
Posts: 72
Joined: Tue Oct 19, 2010 3:12 am

prevent suspend when playing

Post by bmbaker » Thu Nov 01, 2012 3:44 pm


bmbaker
Posts: 72
Joined: Tue Oct 19, 2010 3:12 am

prevent suspend when playing

Post by bmbaker » Fri Nov 02, 2012 11:44 am

so i got guayadeque to wk with caffeine
first i added /usr/share/applications/guayadeque to the "List of programs Caffeine activates for"
then i played ..... found that the full coffee cup keeps your computer from going to sleep!

http://pragmattica.wordpress.com/2009/1 ... -released/
"When you click on it, the coffee-cup fills up and keeps your computer from going to sleep!"

this wks in GS 3.7.1 i manually installed the caffeine extension from https://github.com/eonpatapon/gnome-she ... n-caffeine, not sure if it will wk in 3.6 ?

Post Reply