You are not logged in.

#1 2010-06-10 08:54:39

shak
Member
Registered: 2009-03-16
Posts: 405

mplayer and gnome screensaver

Hi guys !

I haven't found a solution about this problem yet and i'm disappointed because mplayer is a great video player, imo the best for linux . I don't understand with mplayer doesn't implemented

this feature . Isn't something essential for video players ?

The issue with the screensaver is very annoying . I have tried to put the command heartbeat-cmd="gnome-screensaver-command -p"

in the config of mplayer but it doesn't seem to work . Is there any easy way without using scripts to disable it while using mplayer ?

I don't want to use totem because i'm havng issue with avi files , after some time playng a movie everything and frames become slower and i have to click again on the progress bar for the

movie to continue playing with normal rate .

Thanks for your help !

Offline

#2 2010-06-10 09:15:40

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: mplayer and gnome screensaver

mplayer implement it (-stop-xscreensaver), your screensaver don't implement it, so you are directing you disappointment to the wrong program.

And if you are disappointed, ask your money back.

But, if you are really disappointed not only bitching around, why  not write the needed code? In this case to the gnome-screensaver.

EDIT http://xkcd.com/196/

EDIT2 and are you sure its dont work? https://bugzilla.gnome.org/show_bug.cgi?id=552209

EDIT3 to make sure of my point (I dont need it, because you already googled and know all I has said including the solutions of your problems, because its discussed a lot) If a program dont work, you fix it, you dont change all the others programs to work around the problem of it.

Last edited by kazuo (2010-06-10 09:38:05)

Offline

#3 2010-06-10 10:00:37

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,954
Website

Re: mplayer and gnome screensaver

.mplayer/config

[default]
heartbeat-cmd="qdbus org.freedesktop.ScreenSaver /ScreenSaver org.freedesktop.ScreenSaver.SimulateUserActivity"

zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#4 2010-06-10 13:54:27

shak
Member
Registered: 2009-03-16
Posts: 405

Re: mplayer and gnome screensaver

It doesn't seem to work ! The screensaver appears and the screen becomes black . But thanks for your help

Offline

#5 2010-06-10 14:10:11

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: mplayer and gnome screensaver

http://bbs.archlinux.org/viewtopic.php? … 27#p632727

based on those and watching dbus-monitor. both are equal

heartbeat-cmd="gnome-screensaver-command -p"
or
heartbeat-cmd="dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call /org/gnome/ScreenSaver org.gnome.ScreenSaver.SimulateUserActivity"

Last edited by wonder (2010-06-10 14:41:37)


Give what you have. To someone, it may be better than you dare to think.

Offline

#6 2010-06-10 15:48:24

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: mplayer and gnome screensaver

I use GNOME and mplayer too. I remember having this problem. But maybe you will like my solution. sad

I disabled GNOME screensaver. I setup X to turn off the monitor after 10 minutes of inactivity ("DPMS"), and mplayer works correctly with DPMS just fine.

It's been a good setup for me. I don't need to watch a screensaver. I'd rather just save some electricity. tongue

Offline

#7 2010-06-10 15:56:27

shak
Member
Registered: 2009-03-16
Posts: 405

Re: mplayer and gnome screensaver

Thanks for your suggestion drcouzelis , i'' try it out . Do i need any additional settings in mplayer config file ?

Offline

#8 2010-06-10 16:12:57

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: mplayer and gnome screensaver

You might want to try out caffeine: it inhibits all sort of screensavers / screen blankings when activated.
Check this topic to know how to start and stop caffeine together with mplayer: it works pefectly! wink

Cheers,

Last edited by rent0n (2010-06-10 16:14:00)


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#9 2010-06-10 21:46:02

shak
Member
Registered: 2009-03-16
Posts: 405

Re: mplayer and gnome screensaver

Thanks for your suggestion but i think the suggestion of drcouzelis seems easier wink

But it seems the DPMS doesn't work . I have set the offtime in xorg and dpms but it doesn't work . What might be the issue ?

Offline

#10 2010-06-11 00:55:23

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: mplayer and gnome screensaver

Does it work with xset? Here's what I'm running in ~/.xinitrc:

xset s off dpms 0 0 240

(to switch the screen off after 4 minutes.)

Offline

#11 2010-06-11 14:52:02

Gruntz
Member
From: Haskovo, Bulgaria
Registered: 2007-08-31
Posts: 291

Re: mplayer and gnome screensaver

I had the same problem, but I found a solution for myself. That is what I added to my ~./mplayer/config:

stop-xscreensaver=1

and now my screensaver is not starting while I play a movie.

Hope that will help.

Offline

#12 2010-06-12 11:03:12

shak
Member
Registered: 2009-03-16
Posts: 405

Re: mplayer and gnome screensaver

This is for xscreensaver but for gnome screensaver it's doesn't work . I'll just use totem or mplayer with disabled screensaver . Thanks again

Offline

#13 2010-06-12 13:02:11

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: mplayer and gnome screensaver

I have gnome-screensaver and mplayer doesn't turn on when playing a file with mplayer. All I have is:

stop-xscreensaver=yes

in ~/.mplayer/config

Offline

#14 2010-10-17 18:38:39

peja
Member
From: Belgrade, Serbia
Registered: 2010-10-17
Posts: 2

Re: mplayer and gnome screensaver

Small hack that works with the gnome-screensaver, is to send key events periodically (for example the Ctrl key).

This could be achieved by invoking mplayer with:

mplayer -heartbeat-cmd "xdotool key ctrl"

Or by adding the line to a configuration file:

heartbeat-cmd="xdotool key ctrl"

You would need to install the xdotool package.

Offline

#15 2010-10-17 20:51:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,732
Website

Re: mplayer and gnome screensaver

Did nepherte's suggestion work for you?

Offline

#16 2010-10-17 21:08:40

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: mplayer and gnome screensaver

you don't have to add any fixes for mplayer to disable gnome-screemsaver.

in 2.30.2 has been enabled the mit-ext extension and mplayer is using that


Give what you have. To someone, it may be better than you dare to think.

Offline

#17 2010-10-17 21:55:41

peja
Member
From: Belgrade, Serbia
Registered: 2010-10-17
Posts: 2

Re: mplayer and gnome screensaver

wonder wrote:

you don't have to add any fixes for mplayer to disable gnome-screemsaver.

in 2.30.2 has been enabled the mit-ext extension and mplayer is using that

You are right. Mplayer's -stop-xscreensaver option works properly with gnome-screensaver.

Offline

Board footer

Powered by FluxBB