You are not logged in.

#1 2012-10-18 11:08:55

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

SMPlayer can't disable the screensaver

SMPlayer there is an option to disable the screensaver, but does not work.
The tick box is checked by default but still it doesn't work.

SMPlayer > Options> Preferences > General > Video > Disable Screensaver.


Steps to Reproduce:
1. Open SMPlayer
2. Load a Movie
3. Wait.... wait... SCREENSAVER.... (ruins the movie).
But vlc works fine.
Downgrading to 0.8.0-1 didn't help either.

couldn't find out what is causing the issue.
any ideas?


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#2 2012-10-18 12:54:44

oldtimeyjunk
Member
From: /world/europe/uk/england
Registered: 2011-04-30
Posts: 202
Website

Re: SMPlayer can't disable the screensaver

Which screensaver are you using? (Xscreensaver, gnome-screensaver, etc.).
SMPlayer only knows how to disable a certain few.

Last edited by oldtimeyjunk (2012-10-18 12:56:11)


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed." - Unix for Dummies, 2nd Edition

Offline

#3 2012-10-18 13:35:51

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: SMPlayer can't disable the screensaver

I have also noticed such a behaviour (KDE, no screen saver here, only the power manager is supposed to dim the display after a certain time of inactivity). It's probably a bug in SMPlayer (MPlayer itself doesn't seem to be affected).


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#4 2012-10-18 13:59:34

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: SMPlayer can't disable the screensaver

Xscreensaver works fine as per the  workaround given in the wiki.
But gnome-screensaver is the one that's producing issues.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#5 2012-10-18 22:53:28

mac1202
Member
Registered: 2011-05-24
Posts: 33

Re: SMPlayer can't disable the screensaver

On my laptop smplayer doesn't disable the screen powersaving since the xorg update. I'm using kde.

Offline

#6 2012-10-19 02:11:14

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: SMPlayer can't disable the screensaver

Any idea which package of xorg is offending?

Does downgrading help?

note:
At work now, no access to my ArchBox.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#7 2012-10-19 02:17:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: SMPlayer can't disable the screensaver

I noticed this stopped working after a recent update (using mplayer). Havn't looked into it too much, but hacked together a workaround:

#!/bin/bash
# wrapper to prevent screen blanking

usage() {
    printf "%s\n" "Usage: ${0##*/} /path/to/file" 
    exit 1
}

case $# in
    1)  if [[ "$1" =~ "Videos" ]]; then
            xset dpms 0 0 0
            xautolock -disable
            mplayer "$1"
            xautolock -enable
            xset dpms 900 900 900
        else
            usage
        fi
        ;;
    *) usage
        ;;
esac

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2012-10-29 17:41:43

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: SMPlayer can't disable the screensaver

Thanks for the workaround script.
But I couldn't make it work on my computer by running like this,

[candice@archboot Desktop]$ smplayer shell.sh

Where shell.sh is the file name which contains your script.
How else should I try?


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#9 2012-10-29 21:18:05

dontbugme
Banned
Registered: 2011-11-04
Posts: 166
Website

Re: SMPlayer can't disable the screensaver

Hmm, I was hit by that bug too, but I strongly assumed it was connected to the broken gnome / Xorg update, which killed almost all hotkeys. At least, I noticed this shortly after I noticed the hotkeys bug. It's really annoying that disabling the screensaver is broken again. It was broken for a long time before. I was very relieved after I found out that it finally works, and now .. again sad.

Offline

#10 2012-10-29 21:32:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: SMPlayer can't disable the screensaver

hadrons123 wrote:

Thanks for the workaround script.
But I couldn't make it work on my computer by running like this,

[candice@archboot Desktop]$ smplayer shell.sh

Where shell.sh is the file name which contains your script.
How else should I try?


If you rename it vplay, you call it with an argument, eg.,

vplay /path/to/video.mp4

Note that it checks that the video that you want to play is actually somewhere in a path that contains /Videos/ - you can remove that if you like...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2012-10-29 21:34:27

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: SMPlayer can't disable the screensaver

Caffeine in AUR:

https://aur.archlinux.org/packages.php?ID=29762

Is also a good little system tray program to quickly disable or enable any screensaver..

Offline

#12 2012-11-08 12:46:58

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: SMPlayer can't disable the screensaver

I did a rebuild of mplayer-svn-35368-1 from AUR and it seems to work a bit different. Can anyone else confirm this?

Edit:
Since I moved to mplayer version 35368-1, The screensaver enables for a 5 -10 seconds and disables.

Last edited by hadrons123 (2012-11-10 18:43:40)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

Board footer

Powered by FluxBB