[gnome-user-docs] automatic logout page created and login banner modified
- From: Jana Svarova <jsvarova src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-user-docs] automatic logout page created and login banner modified
- Date: Wed, 5 Jun 2013 13:45:36 +0000 (UTC)
commit f827dd46b23e82ee05bf13256aae5408a5149fc5
Author: Jana Svarova <jsvarova redhat com>
Date: Fri May 24 11:46:19 2013 +0200
automatic logout page created and login banner modified
system-admin-guide/C/automatic-logout.page | 63 ++++++++++++++++++++++++++++
system-admin-guide/C/login-banner.page | 56 +++++++++++++-----------
2 files changed, 93 insertions(+), 26 deletions(-)
---
diff --git a/system-admin-guide/C/automatic-logout.page b/system-admin-guide/C/automatic-logout.page
new file mode 100644
index 0000000..e421ba1
--- /dev/null
+++ b/system-admin-guide/C/automatic-logout.page
@@ -0,0 +1,63 @@
+<page xmlns="http://projectmallard.org/1.0/"
+ type="topic" style="task"
+ id="automatic-logout">
+
+<info>
+
+ <revision version="0.1" date="2013-03-19" status="draft"/>
+ <link type="guide" xref="index" group="net" />
+ <credit type="author copyright">
+ <name>Jana Svarova</name>
+ <email>jana svarova gmail com</email>
+ <years>2013</years>
+ </credit>
+ <desc>How to end user sessions after a period of idle</desc>
+
+</info>
+
+<title>Automatic logout</title>
+
+ <p>To configure an end of a user session after a specified number of seconds
+ of idle, the following keys need to be changed:</p>
+<screen>
+org.gnome.settings-daemon.plugins.power.sleep-inactive-ac-timeout
+org.gnome.settings-daemon.plugins.power.sleep-inactive-ac-type
+org.gnome.settings-daemon.plugins.power.sleep-inactive-battery-timeout
+org.gnome.settings-daemon.plugins.power.sleep-inactive-battery-type
+</screen>
+ <p>As you can see from the list, the keys differ according to the power mode:
+ whether the computer is on battery (-battery-) or on ac power (-ac-).</p>
+
+ <p>Firstly, you can set what kind of automatic logout should
+ be used (<var>'hibernate'</var>, <var>'suspend'</var> or <var>'do nothing'</var>)
+ and, secondly, the number of seconds the user has been inactive to log them
+ out. See the examples below.</p>
+
+<steps>
+ <title>To suspend the computer after 5 minutes of idle:</title>
+ <item><p>Open the terminal.</p></item>
+ <item><p>Run the
+ <cmd>gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 300</cmd>
+ command to set the number of seconds (5 minutes equals 300 seconds).</p></item>
+</steps>
+
+<note>
+ <p>You do not need to specify the type of logout as <var>'suspend'</var> is
+ set by default.</p>
+</note>
+
+ <p>Whereas the first example concerned a computer on alternating current,
+ the second example deals with a computer on battery.</p>
+
+<steps>
+ <title>To hibernate the computer after 10 minutes of idle:</title>
+ <item><p>Open the terminal.</p></item>
+ <item><p>Run the
+ <cmd>gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 600</cmd>
+ command to set the number of seconds (10 minutes equals 600 seconds).</p></item>
+ <item><p>Run the
+ <cmd>gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'hibernate'</cmd>
+ command to set the type of logout.</p></item>
+</steps>
+
+</page>
diff --git a/system-admin-guide/C/login-banner.page b/system-admin-guide/C/login-banner.page
index f9b7ce5..2f59750 100644
--- a/system-admin-guide/C/login-banner.page
+++ b/system-admin-guide/C/login-banner.page
@@ -17,7 +17,7 @@
<email its:translate="no">mdhillca gmail com</email>
<years>2012</years>
</credit>
- <credit type="author copyright">
+ <credit type="editor">
<name>Jana Svarova</name>
<email its:translate="no">jana svarova gmail com</email>
<years>2013</years>
@@ -28,7 +28,8 @@
<years>2013</years>
</credit>
- <desc>Edit a <sys its:translate="no">GDM</sys> <sys its:translate="no">dconf</sys> profile to display a
text banner on the login screen.</desc>
+ <desc>Edit a <sys its:translate="no">GDM</sys> <sys its:translate="no">dconf</sys>
+ profile to display a text banner on the login screen.</desc>
</info>
<title>Add text to the login screen</title>
@@ -38,48 +39,51 @@
<p>Adapted from l-g-o SysAdminGuide page.</p>
</comment>
- <p>The text banner on the login screen is controlled by the
- <cmd>org.gnome.login-screen.banner-message-enable</cmd> and
- <cmd>org.gnome.login-screen.banner-message-text</cmd>
- <sys its:translate="no">GSettings</sys> keys.
- <sys its:translate="no">GDM</sys> uses its own
- <sys its:translate="no">dconf</sys> profile. To change settings in this
- profile, add a key file to the
- <file its:translate="no">/etc/dconf/db/gdm.d</file> directory and run
- <cmd its:translate="no">dconf update</cmd>.</p>
+ <p>The text banner on the login screen is controlled by the following
+ <sys its:translate="no">GSettings</sys> keys:</p>
+<screen>
+org.gnome.login-screen.banner-message-enable
+org.gnome.login-screen.banner-message-text
+</screen>
+ <p>The first key enables showing the banner message, the second is used to
+ show the text banner message in the login window.</p>
- <listing>
- <title>Sample <file its:translate="no">/etc/dconf/db/gdm.d/01-banner-message</file> file</title>
- <code its:translate="no">[org/gnome/login-screen]
+<steps>
+ <title>To add text to the login screen:</title>
+ <item><p>Add a key file to the
+ <file its:translate="no">/etc/dconf/db/gdm.d</file> directory and name it,
+ for example, <file>01-banner-message</file>.</p></item>
+ <item><p>Put the following content to the file:</p>
+<screen its:translate="no">[org/gnome/login-screen]
banner-message-enable=true
banner-message-text='<input its:translate="yes">Type the banner message here.</input>'
-</code>
- </listing>
+</screen>
+ </item>
+ <item><p>Run the <cmd its:translate="no">dconf update</cmd> command.</p></item>
+</steps>
- <note>
- <p><sys its:translate="no">dconf</sys> key files are slightly different
- from <sys its:translate="no">GSettings</sys> override files.</p>
- </note>
+ <p>Note that <sys its:translate="no">dconf</sys> key files are slightly different
+ from <sys its:translate="no">GSettings</sys> override files.</p>
-<!-- TODO
-<section>
+<!--
+<section id="not-display">
<title>What if the banner message does not display?</title>
-
+ <p></p>
<comment>
<cite>Kat</cite>
<p>Apparently the message may not be displayed if the theme does not
support it. Find out if this is really the case and how to check the
theme.</p>
</comment>
-
+pokud nema podporu, nemusi se zobrazit
</section>
+
<section id="prob-update">
<title>What if the banner message does not update?</title>
- TODO
-
</section>
+make sure that you run the cmd everytime you change..
-->
</page>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]