SCIENTIFIC-LINUX-USERS Archives

June 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jim Campbell <[log in to unmask]>
Reply To:
Date:
Tue, 9 Jun 2015 11:56:40 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (85 lines)
Hi Gilbert,

On Tue, Jun 9, 2015, at 10:54 AM, Gilbert E. Detillieux wrote:
> On 08/06/2015 10:20 PM, Jim Campbell wrote:
> > Can you try this? I have tested it, and was able to get it to work for
> > me.  We should file a bug against the upstream docs, though.
> >
> > The commands should be entered with root or sudo privileges (shown here
> > as root). The dashes are just shown to separate the commands from the
> > text. You shouldn't include the dashes in your file, though.
> >
> > # vi /etc/dconf/profile/user
> > --------------------------------------------------------------------
> > user-db:user
> > system-db:local
> > --------------------------------------------------------------------
> 
> I didn't create this file, as it already was installed as part of the 
> dconf-0.16.0-6.el7.x86_64 package, and contained the following:
> 
> user-db:user
> system-db:local
> system-db:site
> system-db:distro
> 
> The extra system-db records shouldn't be a problem, since they don't 
> override the settings we're interested in.
> 
> > # mkdir -p /etc/dconf/db/local.d/locks
> 
> Also existed already, as part of the same dconf package.
> 
> > # vi /etc/dconf/db/local.d/00-autologout
> > --------------------------------------------------------------------
> > [org/gnome/settings-daemon/plugins/power]
> > # Set the timeout to 900 seconds when on primary power
> > sleep-inactive-ac-timeout=900
> > # Set action after timeout to be logout when on primary power
> > sleep-inactive-ac-type='logout'
> > --------------------------------------------------------------------
> 
> I did this, but using a different (larger) timeout value.  I've since 
> played around with the timeout value, and found that it worked for very 
> small values (e.g. 300).  My current hunch (which I'm still testing) is 
> that it works as long as the screensaver and/or screen lock hasn't 
> kicked in yet.  (I'm trying to find out which of the two might be the 
> issue.)
> 
> > this next step prevents regular users from changing the setting...
> >
> > # vi /etc/dconf/db/local.d/locks/autologout
> > --------------------------------------------------------------------
> > # Lock automatic logout settings
> > /org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-timeout
> > /org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-type
> > --------------------------------------------------------------------
> >
> > # dconf update
> >
> > You'll need to log out and log back in for the settings to take effect.
> 
> I had initially skipped the step of creating the lock file, since I 
> didn't think it would affect the testing.  When things didn't work 
> initially, I created the file (exactly as above), and redid these last 2 
> steps, but it made no difference.
> 
> > Let us know if it works for you. Thanks,
> 
> I'll report back after I've found more about what timeout values work 
> and which don't, and how that compares to my screensaver/screen-lock 
> settings.
> 
> -- 
> Gilbert E. Detillieux           E-mail: <[log in to unmask]>
> Dept. of Computer Science       Web:   
> http://www.cs.umanitoba.ca/~gedetil/
> University of Manitoba          Phone:  (204)474-8161
> Winnipeg MB CANADA  R3T 2N2     Fax:    (204)474-7609

Interesting. I tested this with a short timeout (2min - 600 seconds)
myself, and didn't test it with a longer timeout. I'll try a longer
timeout, too.

Jim

ATOM RSS1 RSS2