LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   avoiding system suspension during mplayer playback (http://www.linuxquestions.org/questions/slackware-14/avoiding-system-suspension-during-mplayer-playback-803999/)

danix85 04-24-2010 05:21 PM

avoiding system suspension during mplayer playback
 
Hi everybody,
I'd like to know if there's a way to disable system suspension during mplayer playback, I'm using kde 4.4.2 by AlienBob on my slackware64-current, and powerdevil as the power manager.

In powerdevil I've setup the performance profile to suspend the system after 30 minutes with no user interaction, and the presentation profile is setup not to use suspension at all, but I always forget to switch the profile before playing some long video on mplayer and the system goes down after 30 minutes of playback...

Does someone knows a way, a hidden mplayer setting (powerdevil setting would be ok too) that lets me disable suspension only when mplayer is working and nobody is using the system for more than 30 minutes??


Thanks a lot in advance ;)

T3slider 04-24-2010 06:49 PM

mplayer has the -heartbeat-cmd option that is probably what you want. I use it to prevent xscreensaver from kicking in.

danix85 04-25-2010 02:29 PM

Quote:

Originally Posted by T3slider (Post 3946690)
mplayer has the -heartbeat-cmd option that is probably what you want. I use it to prevent xscreensaver from kicking in.

Hi, thanks for replying, I think this is the way to go, but since I don't use xscreensaver I don't know what command should I use to let powerdevil know that I'm using the system...

I'll try to investigate, thanks for your suggestion... ;)


All times are GMT -5. The time now is 09:18 AM.