<?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" lang="eu">

  <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>

    <license xmlns="http://projectmallard.org/1.0/" href="https://creativecommons.org/licenses/by-sa/3.0/">
  <p>This work is licensed under a <link href="https://creativecommons.org/licenses/by-sa/3.0/">Creative
  Commons Attribution-ShareAlike 3.0 Unported License</link>.</p>
</license>

    <desc>Amaitu erabiltzaile-saio inaktibo bat.</desc>

  </info>

  <title>Konfiguratu saio-amaiera automatikoa</title>

  <p>User sessions that have been idle for a specific period of time can be
  ended automatically. You can set different behaviour based on whether the
  machine is running from a battery or from mains power by setting the
  corresponding <sys its:translate="no">dconf</sys> key, then locking it.</p>

  <note style="warning">
    <p>Kontuan izan erabiltzaileek datuak galdu ditzaketela inaktibo dagoen saio bat automatikoki amaitzen bada.</p>
  </note>

  <steps>
    <title>Set automatic logout for a mains powered machine</title>
    <item xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" xml:id="dconf-profile-user">
    <p>Sortu <file its:translate="no">user</file> profila honako lerroekin:</p>
    <listing its:translate="no">
      <title><file>/etc/dconf/profile/user</file></title>
      <code>user-db:user
system-db:local</code>
    </listing>
    <p><input its:translate="no">local</input> izena <sys its:translate="no" xref="dconf">dconf</sys> datu-basearen izena da.</p>
  </item>
    <item xmlns="http://projectmallard.org/1.0/" xml:id="dconf-profile-user-dir">
    <p>Create the directory <file>/etc/dconf/db/local.d/</file>
    if it does not already exist.</p>
  </item>
    <item>
      <p>Sortu makina osorako diren ezarpenak gordetzeko <sys>local</sys> datu-base bat <file>/etc/dconf/db/local.d/00-autologout</file> fitxategian:</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>Indargabetu erabiltzailearen ezarpena eta eragotzi aldatu dezala <file>/etc/dconf/db/local.d/locks/autologout</file> fitxategian:</p>
      <listing>
        <code>
# Blokeatu saio-amaiera automatikoaren ezarpenak
/org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-timeout
/org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-type
</code>
</listing>
    </item>
    <item xmlns="http://projectmallard.org/1.0/" xml:id="dconf-update">
    <p>Eguneratu sistemaren datu-baseak:</p>
    <screen><output style="prompt"># </output><input>dconf update</input></screen>
  </item>
    <item xmlns="http://projectmallard.org/1.0/" xml:id="dconf-logoutin">
    <p>Erabiltzaileek saioa amaitu eta berriro hasi behar dute sistema-ezarpenak indarrean sartzeko.</p>
  </item>
  </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>Interesgarriak dira honako GSettings gakoak:</p>
  <terms>
    <item>
      <title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-ac-timeout</code></title>
      <p>Ordenagailua inaktibo egon behar duen segundo kopurua lotara joan baino lehen, entxufatuta dagoenean.</p>
    </item>
    <item>
      <title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-ac-type</code></title>
      <p>Zer gertatuko den denbora-muga gainditu denean eta ordenagailua entxufatuta exekutatzen ari bada.</p>
    </item>
    <item>
      <title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-battery-timeout</code></title>
      <p>Ordenagailua inaktibo egon behar duen segundo kopurua lotara joan baino lehen, bateriarekin ari denean.</p>
    </item>
    <item>
      <title><code>org.gnome.settings-daemon.plugins.power.sleep-inactive-battery-type</code></title>
      <p>Zer gertatuko den denbora-muga gainditu denean eta ordenagailua bateriarekin exekutatzen ari bada.</p>
    </item>
  </terms>

  <p>You can run <cmd>gsettings range</cmd> on a key for a list of values which
  you can use. For example: </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>
