Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Detecting screensaver and mplayer fullscreen modes
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Tue Feb 01, 2005 7:58 am    Post subject: Detecting screensaver and mplayer fullscreen modes Reply with quote

I was just wondering for a script if there was any way where I could detect either when the screensaver for XFCE (I assume it's xscreensaver) is running, or when mplayer is in full screen mode. I just wanted to add a conditional to decrease CPU usage since everytime I run xfdesktop -reload the CPU usage goes to 100% for a second and lags my system. This isn't an issue with other programs really, but it's annoying when I am watching a video, tv, or something along those lines...
Back to top
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Thu Feb 03, 2005 4:48 am    Post subject: Reply with quote

Bump.

Doesn't anyone have an idea about how to accomplish this, or did I ask in the wrong section of the forum?
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Sat Feb 05, 2005 8:05 pm    Post subject: Reply with quote

You asked in the right place, actually i was wondering the same thing, i too had been annoyed by the screensaver in mplayer :x
_________________
We are not alone.
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Sat Feb 05, 2005 8:19 pm    Post subject: Reply with quote

After reading this thread, i came up with this wraper:

Code:

xscreensaver-command -exit
mplayer "$1"
xscreensaver -nosplash &


/EDIT: just realized that one can start mplayer with the -stop-xscreensaver argument, or can put stop-xscreensaver=1 in the mplayer.conf file. Haven't tested yet, but it probably works. :wink:
_________________
We are not alone.
Back to top
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Sat Feb 05, 2005 9:52 pm    Post subject: Reply with quote

Hmmm... that would help for disabling the screensaver, but I'm looking for functionality to detect when I'm in fullscreen mode to avoid having my desktop change in the background and lag my video for a little bit during the change (since xfdesktop essentially reloads all of its settings when the background changes). I'll see about what the devs say in terms of checking for fullscreen mode though since I just emailed them about it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum