LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-09-2016, 11:56 PM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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:-
 
Old 07-10-2016, 01:07 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
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...

Last edited by ponce; 07-12-2016 at 06:47 AM.
 
Old 07-10-2016, 02:07 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,376

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
There is a setting in gmplayer under Misc to turn off XScreenSaver.
 
1 members found this post helpful.
Old 07-10-2016, 10:16 AM   #4
Conrad_Troutman
LQ Newbie
 
Registered: Mar 2013
Location: Sweden
Distribution: Slackware
Posts: 12

Rep: Reputation: Disabled
On any new Slackware install I just put:
Quote:
heartbeat-cmd="xdg-screensaver reset"
in ~/.mplayer/config.
 
1 members found this post helpful.
Old 07-10-2016, 10:41 AM   #5
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,125

Rep: Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297
Quote:
Originally Posted by allend View Post
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.

Last edited by cwizardone; 07-10-2016 at 11:03 AM.
 
Old 07-11-2016, 08:08 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Conrad_Troutman View Post
On any new Slackware install I just put:

in ~/.mplayer/config.
Did you add that to the mplayer configuration file?
 
Old 07-11-2016, 08:11 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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.
 
Old 07-11-2016, 09:03 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
Old 07-11-2016, 09:35 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by bassmadrigal View Post
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?
 
Old 07-11-2016, 09:37 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by allend View Post
There is a setting in gmplayer under Misc to turn off XScreenSaver.
Thanks allend-

I found the setting to disable the xscreensaver.
 
Old 07-12-2016, 06:42 AM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Ztcoracat View Post
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 View Post
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.
 
Old 07-12-2016, 03:06 PM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MPLAYER stops playing audio music every 14~ sec Surka Linux - Software 6 05-11-2012 09:26 AM
mplayer behavior: playing a looping mms feed, stops after each video ncsuapex Linux - Software 2 11-21-2008 12:12 PM
KDE Screensaver stops working after mplayer barcode_linux Linux - Software 2 08-10-2008 02:29 PM
Mplayer stops playing when I move another window h2gofast Linux - Software 2 08-25-2004 01:34 PM
KDE 3.0.3 ScreenSaver BUG (RedHat 8.0) SoftwareParadis Linux - Software 0 01-05-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration