Warning: session_start(): open(/tmp/sess_ft1tccpd3fh1qhj0c921bmc0c3, O_RDWR) failed: No space left on device (28) in /www/H01/htdocs/lib/base/lib_base.php on line 280
KMPlayer screensaver disabler openDesktop.org
-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans  .- Knowledge Base  . 

KMPlayer screensaver disabler

   1.4  

KDE Other Utility

Score 64%
KMPlayer screensaver disabler
zoom


Link:  http://
Downloads:  440
Submitted:  Apr 23 2006
Updated:  Apr 27 2006

Description:

Basically, this is a wrapper script that prevents screensavers and monitor auto power-offs from working when KMPlayer is running.

It uses a simple program I wrote which periodically fakes user key presses (the default is the num-lock key pressed twice).

Of course, you can also modify the wrapper script so that another program is used instead of KMPlayer.

The attached file includes both the source and binary.

Hope this will prove useful to *someone* :) Though please note that this is, after all, a crude hack, and it'd be really nice if KMPlayer will have a built-in screensaver disabler in the near future.

--------------------------

Also, KMPlayer has a bug with regards to screensavers in that it will disable KScreensaver when in full screen mode, but forget to enable it again. I've written the following (very) short script to workaround the problem (just copy and paste into a file and set the execution permissions):

#!/bin/sh
screensaverstate=`dcop kdesktop KScreensaverIface isEnabled`
kmplayer $@
dcop kdesktop KScreensaverIface enable $screensaverstate

The idea is of course that if you're going to use the built in screensaver disabler in KMPlayer (which works *only* with KScreensaver), you won't need the fake-key-press program.




Changelog:

1.3 -> 1.4 - Added a SIGINT handler (uses the same exit routine as the SIGTERM handler) for keyboard aborts (Ctrl-C). Minor cleanup of the code.

1.2 -> 1.3 - Added a real SIGTERM handler which properly closes the X window connection instead of relying on the default SIGTERM procedure.

1.1 -> 1.2 - Fixed a really stupid bug in the wrapper script, where the script only passes the arguments including and after the second one onto kmplayer, while the first argument is discarded.




LicenseGPL
Send to a friend
Subscribe
Other  Content  from randomlinuxuser
Report inappropriate content



-

 It is easier...

 
 by ricce on: Apr 23 2006
 
Score 50%

Things can be much easier done:
----
#!/bin/bash
dcop kdesktop KScreensaverIface enable false
kmplayer $*
dcop kdesktop KScreensaverIface enable true
----

OK, this will only work if you are using kscreensaver, but you are right...

Anyway, I think kmplayer have a half working screensaver desabler.


Reply to this

-

 Re: It is easier...

 
 by randomlinuxuser on: Apr 23 2006
 
Score 50%

Well... this is another case of the classic "itch-scratching". I have a LCD monitor, so I don't use screensavers, but rather set it to auto power-off after 1 minute, and I can't find any dcop call that can disable that. I use auto power-off because screensavers are bad for LCDs as they don't actually "save" anything (the screen is still on and functioning as normal).

Plus, I heard MPlayer has the exact same idea for disabling the screensaver & co. during playback.


Reply to this

-

 Re: It is easier...

 
 by randomlinuxuser on: Apr 23 2006
 
Score 50%

Also, I can't seem to find *any* screensaver disabler in the KMPlayer config... where did you find the half-working one (I'm using Xine as backend btw, if that matters)? O.o


Reply to this

-

 Re: Re: It is easier...

 
 by ricce on: Apr 24 2006
 
Score 50%

At least my kmplayer disables the screesaver when I put it in fullscreen -- but it forgets to re-enable it again (quite annoying).


Reply to this

-

 Re: Re: Re: It is easier...

 
 by randomlinuxuser on: Apr 24 2006
 
Score 50%

Well, you can just write a wrapper script that fixes the problem :)

Actually I wrote one for that just now, and posted it in the description section of the page 'cause it's so short.


Reply to this

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team