LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-08-2010, 05:36 PM   #1
trymore
LQ Newbie
 
Registered: Feb 2010
Posts: 4

Rep: Reputation: 0
Question how to determine if Gnome is in screen saver mode


I am running a SLC 5.2 with a Gnome 2.16 desktop setup for all the class room terminals. Where can I determine the status of the screensaver. The value could then be periodicaly tested within a "cron" script. If screen saver was running then a "skill" could then be called to force a complete logout releasing the terminal for another student.
 
Old 02-08-2010, 08:01 PM   #2
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
Does the screensaver come on when it's left for awhile? I don't like screensavers. I just use screenblanker. Maybe that's what you really need.
 
Old 02-09-2010, 04:52 AM   #3
trymore
LQ Newbie
 
Registered: Feb 2010
Posts: 4

Original Poster
Rep: Reputation: 0
The user preferences has set the screen saver routine to become active after 10 minutes of no activity. Note that it uses "ScreenSaver" as supplied by Gnome and NOT "Xscreensaver".
 
Old 02-12-2010, 12:24 PM   #4
unix1adm
Member
 
Registered: Oct 2008
Posts: 626

Rep: Reputation: 30
what file do you set the defaults in?
I want to set all my users to use a blank screensaver and a time out of 20min. password required
Have beenlooking all over the place for a valid config file I can edit and the syntax for it.
I should also mention I want these to be default for all user that CANNOT be changed except by root.
Red Hat running gnome in my case.
Thanx

Last edited by unix1adm; 02-12-2010 at 02:06 PM.
 
Old 02-12-2010, 01:44 PM   #5
unix1adm
Member
 
Registered: Oct 2008
Posts: 626

Rep: Reputation: 30
I found this here
http://live.gnome.org/GnomeScreensav..._in_as_root.3F


but they dont tell me where this file is .. When I do a find on the system it give me directories not a file GConf.

find / -name GConf
/usr/lib/GConf
/usr/share/GConf
/usr/lib64/GConf


I'm a systems administrator. How can I set policies for all users of my system?

You can set mandatory policies in GConf. Here are some typical policies for a "locked down" system:

gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/gnome-screensaver/idle_activation_enabled true
gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/gnome-screensaver/lock_enabled true
gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type string \
--set /apps/gnome-screensaver/mode blank-only
gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type int \
--set /apps/gnome-screensaver/idle_delay 10
 
Old 02-14-2010, 07:51 AM   #6
unix1adm
Member
 
Registered: Oct 2008
Posts: 626

Rep: Reputation: 30
wow no one has posted back on how to find what file I am suppose to use. Please help need this for an audit on Monday
 
Old 02-14-2010, 01:31 PM   #7
trymore
LQ Newbie
 
Registered: Feb 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I could only respond today.

In regards to letter of 12 Feb, I found the following items as listed below:

"ftp://ftp.gnome.org/pub/gnome/desktop/2.16/2.16.0/sources/"

You can access from the above: "gnome-screensaver-2.16.0.tar.bz2" and/or
"gnome-screensaver-2.16.0.tar.gz".

The above supplied a "HOW TO" for a screen-saver which intern
directs you to "dbus" ,for C, and "dbus python" ,for line commands (or put into script files).

The "gconf" lines supplied on the 12th helps me more to understand how the screensaver might start. I assume that "dbus" is one, possibly only, way to test and alter the screensaver settings via dbus once screensaver is running..

Note that I am only looking at the 2.16 version as that is what I have to work with.
 
Old 02-15-2010, 11:54 AM   #8
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: SLED, openSUSE
Posts: 1,022

Rep: Reputation: 173Reputation: 173
Maybe you could enable the feature which makes a logout option appear on the screensaver lock screen after while. So if a student leaves a computer locked for ages then other students have the option to log that student out. The relevant gconf keys are

/apps/gnome-screensaver/logout_enabled
/apps/gnome-screensaver/logout_delay
 
Old 02-15-2010, 03:52 PM   #9
trymore
LQ Newbie
 
Registered: Feb 2010
Posts: 4

Original Poster
Rep: Reputation: 0
>>Maybe you could enable the feature which makes a logout option appear on the screensaver lock screen after while. So if a student leaves a >>computer locked for ages then other students have the option to log that student out. The relevant gconf keys are

>>/apps/gnome-screensaver/logout_enabled
>>/apps/gnome-screensaver/logout_delay

I've still had no luck yet determining screensaver engagement via "dbus". I'll have a try with the above method next. I'll make a closer look at "gconftool-2" options also.

thank you and also to the previous replies...
 
  


Reply


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
how to disable screen saver in text mode libin88 Linux - General 2 11-21-2008 04:50 PM
Tosh m35x freezes after screen saver or hibernate mode gonzojd7 Linux - Laptop and Netbook 0 08-01-2008 09:44 PM
Screen Saver Crash Azureus in Gnome DaveyB Debian 0 10-22-2006 11:04 PM
X Screen saver Password Doesn't work under Gnome 2.4 technodude90 Linux - Software 0 07-25-2004 09:19 AM
KDE Screen Saver In Gnome MarcRJacobs Linux - Newbie 0 03-31-2003 08:33 PM


All times are GMT -5. The time now is 03:11 AM.

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