Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-10-2007, 12:22 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 26

Rep: Reputation: 15
disabling screensaver during monitor poweroff

Hello all. What I'm looking to do seems pretty simple, but I haven't fully accomplished my goal. I like to run the electric sheep screensaver (which is pretty sweet by the way) during brief periods of inactivity, after a while I like the monitor to completely shut off, like at night. However electric sheep doesn't need to run all night long and slowly inch my cpu towards an early demise. I binded (bound?)

xset dpms force off
as a key on my keyboard for when I want to manually turn off the monitor (I'm on a laptop by the way, with no power button). I'm not 100% sure if this is the command gnome-screensaver executes after its triggered time, but either way, electric sheep runs in the bg. Does anyone know any way to stop this from happening?

I've gotten as far as

killall gnome-screensaver && xset dpms force off
that is fine and it does the job, but obviously kills gnome-screensaver until i restart or decided to manually start it again, which I'd never remember to do, nor do I want to remember.

anybody got any suggestions? I'm sure there is some way I can use scripting to acomplish this, maybe to capture a mouse movement event to automatically restart gnome-screensaver?

Any insight would be great
thanks all
Old 10-11-2007, 09:17 PM   #2
LQ Newbie
Registered: Feb 2006
Posts: 26

Original Poster
Rep: Reputation: 15

Old 10-11-2007, 09:40 PM   #3
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Maybe you can do this via the DBUS interface? I'm a KDE user and KDE apps use DCOP for (I think) the same sort of thing. In the case of DCOP, it is possible to control KDE apps using the command-line dcop program. I am not certain, but I imagine there is a similar thing for gnome programs that support DBUS.

A short search found this document, which documents the DBUS interface for gnome-screensaver. I didn't try to read it. Good luck


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
disabling flickering of monitor b4 screensaver invocation gnurza Linux - Newbie 4 09-05-2007 09:17 AM
Monitor Poweroff rigelan Slackware 8 07-10-2006 11:17 PM
Console ACPI? (Monitor Poweroff) juanbobo Linux - General 0 06-19-2006 06:23 PM
Disabling screensaver on tty1 (virtual console) ElectroLinux Linux - General 11 05-02-2006 10:22 PM
SLES9 Monitor Poweroff/Screensaver jdozarchuk SUSE / openSUSE 4 11-08-2004 02:17 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration