This is a known problem having to do with the way that gnome3 controls the screensaver. Haven't looked into it for a while now but I used to have the same thing with vlc. According to the Arch wiki, you have two options. You can either disable it for mplayer
(which should also work for smplayer
) specifically, or you could use another program disable it for various programs.
The mplayer way
First, replace gnome-screensaver
with xscreensaver
:
sudo apt-get purge gnome-screensaver
sudo apt-get install xscreensaver
Then, add the following to ~/.mplayer/config
:
heartbeat-cmd="xscreensaver-command -deactivate >&- 2>&- &"
lightsOn
LighstOn is a simple BASH script that will inhibit the screensaver when it detects any of a list of user defined programs (mplayer, and therefore smplayer, are on the list by default) running in full screen mode.
Replace gnome-screensaver
with xscreensaver
: as described above. Then, download lightsOn from here. I just tried it and it works perfectly. You might want to make it start automatically by adding it to Cinnamon's start up application list.
caffeine
Caffeine is a system tray applet for Gnome3 (it may or may not work in Cinnamon, I have not tried it). According to this site, you can give it a list of programs and it will inhibit the screensaver if they are running (full screen or not). According to the same site, it can work with both xscreensaver
and gnome-screensaver
so you may want to check it out.
sudo add-apt-repository ppa:caffeine-developers/ppa
sudo apt-get update
sudo apt-get install caffeine python-glade2
I'm currently trying out a different solution and keeping gnome-screensaver: open smplayer, menu options > preferences > advanced (left menu) and select "Options for SMPlayer". There try adding this:
-heartbeat-cmd "gnome-screensaver-command -d"
-- then restart the smplayer. Not sure if it works, that's why this is a comment for now :) – Savvas Radevic – 2013-02-22T12:58:33.380