LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14.2 Bug Screensaver Stops Mplayer From Playing (https://www.linuxquestions.org/questions/slackware-14/slackware-14-2-bug-screensaver-stops-mplayer-from-playing-4175584219/)

Ztcoracat 07-09-2016 11:56 PM

Slackware 14.2 Bug Screensaver Stops Mplayer From Playing
 
I'm running Slackware 14.2 on a AMD Quad core desktop and all was well after a fresh install until yesterday.

When the screensaver activates it locks up/pauses Mplayer and the music stops playing.

The only way I can get the music or video to start playing again is to click on the small blue box on the player and drag it across the horizontal line.

I looked through the settings in the Screensaver and the Tools on Mplayer but didn't find anything I could change to control what's going on.

When I was running 14.1 the screensaver would come up the Mplayer would pause for 1 or 2 seconds and the music would resume.

I don't know the first thing about fixing bugs so any suggestions are welcome.

Thanks in advance:-

ponce 07-10-2016 01:07 AM

when I use mplayer, to listen to audio o watch movies, I don't want xscreensaver to kick in at all, so I personally made a wrapper to kill xscreensaver when launching mplayer and restart it when I close mplayer.
I added this to my ~/.bashrc
Code:

function mplayerwrap {
        xscreensaver-command -exit
        xset -dpms
        mplayer "$@"
        xset +dpms
        xscreensaver &
}
# make wrapper execute by default
alias mplayer="mplayerwrap"

the only corner case with this is if you launch multiple mplayer: when you exit the first, xscreensaver get started again...

allend 07-10-2016 02:07 AM

There is a setting in gmplayer under Misc to turn off XScreenSaver.

Conrad_Troutman 07-10-2016 10:16 AM

On any new Slackware install I just put:
Quote:

heartbeat-cmd="xdg-screensaver reset"
in ~/.mplayer/config.

cwizardone 07-10-2016 10:41 AM

Quote:

Originally Posted by allend (Post 5573418)
There is a setting in gmplayer under Misc to turn off XScreenSaver.

Ditto SMPlayer, but recently I've noticed it no longer works and when the screensaver kicks in it hangs the video. The only way out is to kill SMPlayer and restart the video (and drag the progress bar over to where it left off).

Edit in: Just FYI, this started before the release of Slackware-14.2 and the 4.4.14 kernel.

Ztcoracat 07-11-2016 08:08 PM

Quote:

Originally Posted by Conrad_Troutman (Post 5573582)
On any new Slackware install I just put:

in ~/.mplayer/config.

Did you add that to the mplayer configuration file?

Ztcoracat 07-11-2016 08:11 PM

Quote:

when I use mplayer, to listen to audio o watch movies, I don't want xscreensaver to kick in at all, so I personally made a wrapper to kill xscreensaver when launching mplayer and restart it when I close mplayer.
I added this to my ~/.bashrc
I'll think about editing my .bashrc but I don't really want to disable the screensaver.
This might be the only choice until this issue is fixed.

bassmadrigal 07-11-2016 09:03 PM

Are you opposed to using a gui frontend? As allend and cwizardone mentioned, many frontends provide you the ability to disable the screensaver during playback.

But I just installed smplayer to check their mplayer command, and if you call mplayer by hand, you can add "-stop-xscreensaver" as an option to, well, obviously, stop xscreensaver.

Ztcoracat 07-11-2016 09:35 PM

Quote:

Originally Posted by bassmadrigal (Post 5574404)
Are you opposed to using a gui frontend? As allend and cwizardone mentioned, many frontends provide you the ability to disable the screensaver during playback.

But I just installed smplayer to check their mplayer command, and if you call mplayer by hand, you can add "-stop-xscreensaver" as an option to, well, obviously, stop xscreensaver.

No, not opposed just don't want to permanently disable the screensaver.

I'm thinking I could increase the time on it till the movie or music I'm listening to is over.

If I edit the .bashrc with what ponce has listed in code tags how would I restart the xscreensaver?
Go into xscreensaver and re-set it?

Ztcoracat 07-11-2016 09:37 PM

Quote:

Originally Posted by allend (Post 5573418)
There is a setting in gmplayer under Misc to turn off XScreenSaver.

Thanks allend-

I found the setting to disable the xscreensaver.

bassmadrigal 07-12-2016 06:42 AM

Quote:

Originally Posted by Ztcoracat (Post 5574420)
No, not opposed just don't want to permanently disable the screensaver.

I'm thinking I could increase the time on it till the movie or music I'm listening to is over.

The options within the frontends or the -stop-xscreensaver option won't permanently disable the screensaver, it should only do it during playback.

Quote:

Originally Posted by Ztcoracat (Post 5574420)
If I edit the .bashrc with what ponce has listed in code tags how would I restart the xscreensaver?
Go into xscreensaver and re-set it?

If you use ponce's option, as soon as mplayer has exited, it will restart the screensaver service automatically.

Ztcoracat 07-12-2016 03:06 PM

Quote:

If you use ponce's option, as soon as mplayer has exited, it will restart the screensaver service automatically.
Thanks for the confirmation on that.;)


All times are GMT -5. The time now is 12:24 PM.