1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="logout-automatic" xml:lang="cs">
<info>
<link type="guide" xref="login#management"/>
<!-- <link type="seealso" xref="dconf-profiles" />-->
<link type="seealso" xref="dconf-lockdown"/>
<link type="seealso" xref="login-automatic"/>
<revision pkgversion="3.12" date="2014-06-18" status="review"/>
<credit type="author copyright">
<name>Ekaterina Gerasimova</name>
<email>kittykat3756@gmail.com</email>
<years>2013</years>
</credit>
<credit type="editor">
<name>Petr Kovar</name>
<email>pknbe@volny.cz</email>
<years>2014</years>
</credit>
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
<desc>Jak ukončit nečinné sezení uživatele.</desc>
</info>
<title>Nastavení automatického odhlašování</title>
<p>Uživatelovo sezení, které je po zadanou dobu nečinné, může být automaticky ukončeno. Nastavením příslušného klíče <sys its:translate="no">dconf</sys> můžete určit různá chování na základě toho, jestli počítač běží na baterií nebo je napájen z elektrické sítě, a následně nastavení zamknout.</p>
<note style="warning">
<p>Mějte na paměti, že když sezení automaticky ukončíte, může uživatel případně přijít o neuložená data.</p>
</note>
<steps>
<title>Nastavení automatického odhlášení pro stroje napájené ze sítě</title>
<include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user'])"/>
<include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user-dir'])"/>
<item>
<p>Vytvořte databázi <em>local</em> pro celosystémové nastavení v <file>/etc/dconf/db/local.d/00-autologout</file>:</p>
<listing>
<code>
[org/gnome/settings-daemon/plugins/power]
# Set the timeout to 900 seconds when on mains power
sleep-inactive-ac-timeout=900
# Set action after timeout to be logout when on mains power
sleep-inactive-ac-type='logout'
</code>
</listing>
</item>
<item>
<p>Přepište uživatelova nastavení a zabraňte mu ve změnách pomocí souboru <file>/etc/dconf/db/local.d/locks/autologout</file>:</p>
<listing>
<code>
# Lock automatic logout settings
/org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-timeout
/org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-type
</code>
</listing>
</item>
<include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-update'])"/>
<include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-logoutin'])"/>
</steps>
<!-- There will shortly be a way to get key descriptions using gsettings, we
should recommend this instead of listing the terms here. See
https://bugzilla.gnome.org/show_bug.cgi?id=668232 -->
<p>Zajímají nás následující klíče GSettings:</p>
<terms>
<item>
<title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-ac-timeout</code></title>
<p>Počet sekund, po které počítač musí být neaktivní, než se uspí, když běží napájený z elektrické sítě.</p>
</item>
<item>
<title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-ac-type</code></title>
<p>Co by se mělo stát, když uběhne časový limit a počítač běží napájený z elektrické sítě.</p>
</item>
<item>
<title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-battery-timeout</code></title>
<p>Počet sekund, po které počítač musí být neaktivní, než se uspí, když běží napájený z baterie.</p>
</item>
<item>
<title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-battery-type</code></title>
<p>Co by se mělo stát, když uběhne časový limit a počítač běží napájený z baterie.</p>
</item>
</terms>
<p>Můžete spustit <cmd>gsettings range</cmd> na klíči, který vás zajímá, aby se vám vypsaly hodnoty, které je možné použít. Například:</p>
<screen>$ <input>gsettings range org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type</input>
enum
'blank' # blanks the screen
'suspend' # suspends the system
'shutdown' # starts a standard shutdown procedure
'hibernate' # hibernates the system
'interactive' # shows a pop-up query asking the user what to do
'nothing' # does nothing
'logout' # log out from the session</screen>
</page>
|