<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY app "MATE Power Manager">
<!ENTITY application "<application>&app;</application>">
<!ENTITY appversion "1.10.0">
<!ENTITY manrevision "1.10.0">
]>
<!--
      (Do not remove this comment block.)
  Template Maintained by the MATE Documentation Project:
	  https://mate-desktop.org/development/
  Template version: 2.0 beta
  Template last modified Feb 12, 2002
-->
<!-- =============Document Header ============================= -->
<article id="index" lang="cy">
<!-- please do not change the id; for translations, change lang to -->
<!-- appropriate code -->

  <articleinfo>
    <title lang="en"><application>MATE Power Manager</application> Manual</title>
    <abstract role="description">
      <para lang="en">
        <application>MATE Power Manager</application> is a session daemon for the MATE Desktop that
        manages the power settings for your laptop or desktop computer.
      </para>
    </abstract>
    <copyright lang="en">
      <year>2015-2021</year>
      <holder>MATE Documentation Team</holder>
    </copyright>
    <copyright lang="en">
      <year>2006-2009</year>
      <holder>Richard Hughes (richard@hughsie.com)</holder>
    </copyright>

  <!-- translators: uncomment this:

  <copyright>
   <year>2006</year>
   <holder>ME-THE-TRANSLATOR (Latin translation)</holder>
  </copyright>

  -->

<!-- An address can be added to the publisher information.  If a role is
     not specified, the publisher/author is the same for all versions of the
     document.  -->
    <publisher role="maintainer">
      <publishername lang="en">MATE Documentation Team</publishername>
    </publisher>
    <publisher role="maintainer">
      <publishername lang="en">Richard Hughes</publishername>
    </publisher>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="legal.xml"/>

    <authorgroup>
      <author role="maintainer" lang="en"> 
	<surname>MATE Documentation Team</surname>
	<affiliation>
	  <!-- <orgname>MATE Documentation
	  Project</orgname> -->
	  <!-- The email address of the author is optional and is commented out by default.
	  <address> <email>doc-writer2@mate.org</email> </address>
	  --> 
	</affiliation>
      </author>
      <author role="maintainer" lang="en">
        <firstname>Richard</firstname>
        <surname>Hughes</surname>
	<email>richard@hughsie.com</email>
      </author>
<!-- This is appropriate place for other contributors: translators,
      maintainers,  etc. Commented out by default.
       <othercredit role="translator">
        <firstname>Latin</firstname>
        <surname>Translator 1</surname>
        <affiliation>
          <orgname>Latin Translation Team</orgname>
          <address> <email>translator@gnome.org</email> </address>
        </affiliation>
        <contrib>Latin translation</contrib>
      </othercredit>
-->
    </authorgroup>

    <revhistory>
      <revision lang="en">
        <revnumber>2.0</revnumber>
        <date>2006-08-30</date>
        <revdescription>
          <para role="author" lang="en">Richard Hughes
            <email>richard@hughsie.com</email>
          </para>
          <para role="publisher" lang="en">Richard Hughes</para>
        </revdescription>
      </revision>
    </revhistory>

    <legalnotice>
      <title lang="en">Feedback</title>
      <para lang="en">
        To report a bug or make a suggestion regarding the MATE Power Manager application or
        this manual, follow the directions in the
        <ulink url="https://github.com/mate-desktop/mate-power-manager/" type="http"><application>MATE Power Manager</application> Contact Page</ulink>.
      </para>
<!-- Translators may also add here feedback address for translations -->
    </legalnotice>
  </articleinfo>

  <indexterm zone="index" lang="en">
    <primary><application>MATE Power Manager</application></primary>
  </indexterm>
  <indexterm zone="index" lang="en">
    <primary>mate-power-manager</primary>
  </indexterm>

<!-- ============= Document Body ============================= -->
<!-- ============= Introduction ============================== -->
<section id="intro">
  <title lang="en">Introduction</title>
  <!-- manrevision 2.0 compatibility -->
  <anchor id="aboutex"/>
  <anchor id="notice"/>
  <indexterm lang="en">
    <primary><application>MATE Power Manager</application></primary>
    <secondary>Manual</secondary>
    <tertiary>mate-power-manager</tertiary>
  </indexterm>

  <para lang="en">
  The MATE Power Manager session daemon is a power management daemon
  for the <systemitem>MATE desktop</systemitem>
  </para>

</section>

<section id="using">
  <title lang="en">Usage</title>
  <para lang="en">
    <application>MATE Power Manager</application> is usually started in MATE startup, but
    you can manually start <application>MATE Power Manager</application> by doing:
  </para>
  <variablelist>
    <varlistentry>
      <term>Llinell orchymyn</term>
      <listitem>
    	<para lang="en">
          Type <command>G_MESSAGES_DEBUG=PowerManager mate-power-manager --no-daemon</command>,
          then press <keycap>Return</keycap>:
        </para>
      </listitem>
    </varlistentry>
  </variablelist>
</section>

<section id="notify">
  <title lang="en">Notification Messages</title>
  <para lang="en">
    When <application>MATE Power Manager</application> has started, the following notifications may be displayed.
  </para>

  <section id="notify-unplugged">
    <title lang="en">AC Adapter Unplugged</title>
    <figure>
      <title lang="en">MATE Power Manager Notification when AC adapter is removed</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/gpm-unplugged.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
    <note>
      <para lang="en">
        You can disable this notification by changing the dconf key
        <command>org.mate.power-manager notify-discharging</command>.
      </para>
    </note>
  </section>

  <section id="notify-fully-charged">
    <title lang="en">Fully Charged</title>
    <figure>
      <title lang="en">MATE Power Manager Notification when laptop primary battery is fully charged</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/gpm-charged.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
    <note>
      <para lang="en">
        You can disable this notification by changing the dconf key
        <command>org.mate.power-manager notify-fully-charged</command>.
      </para>
    </note>
    <note>
      <para lang="en">
        You will only get a repeat notification if your battery percentage charge
        drops below 95% and then is again fully charged.
        This prevents some machines from showing unwanted repeat notifications
        if the battery is incorrectly reporting the charged status.
      </para>
    </note>
  </section>

  <section id="notify-low">
  <title lang="en">Power Low</title>
    <para lang="en">
      When the battery is low, you will receive the following notification.
      You should consider switching to AC power really soon.
    </para>
    <figure>
      <title lang="en">MATE Power Manager Notification when battery power is low</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/gpm-low.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
    <note>
      <para lang="en">
        You can disable this notification by changing the dconf key
        <command>org.mate.power-manager notify-low-power</command>.
      </para>
    </note>
  </section>

  <section id="notify-critical">
  <title lang="en">Power Critical</title>
    <para lang="en">
      When the computer has run out of power, it will show this notification
      explaining what action is required.
      You can change the critical low action using the preferences tool.
    </para>
    <figure>
      <title lang="en">MATE Power Manager Notification when the system power is critically low</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/gpm-critical.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
  </section>

  <section id="notify-suspend-failure">
  <title lang="en">Suspend Failure</title>
    <para lang="en">
      When a Suspend Failure occurs you may get this following warning.
      The most common reason for this notification is that the current user does
      not have permission to suspend or hibernate the computer.
    </para>
    <figure>
      <title lang="en">MATE Power Manager Notification when suspend failure occurs</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/gpm-suspend-problem.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
    <note>
      <para lang="en">
        You can disable this notification by changing the dconf key
        <command>org.mate.power-manager notify-sleep-failed</command>.
      </para>
    </note>
  </section>
</section>

<section id="statistics">
  <title>Ystadegau</title>
  <para lang="en">
    The statistics program allows you to visualize the power consumption
    of your laptop hardware.
  </para>
  <note>
    <para lang="en">
      This has been removed from the information window of previous versions of
      MATE Power Manager as the data interface is now using DBUS rather than internal IPC.
      This allows other applications to query and display the data if required.
    </para>
  </note>
  <figure id="statistics-graph">
    <title lang="en">Power History going from battery power to AC</title>
    <screenshot>
      <mediaobject>
        <imageobject>
          <imagedata fileref="figures/gpm-stats-graph.png" format="PNG"/>
        </imageobject>
      </mediaobject>
    </screenshot>
  </figure>
  <note>
    <para lang="en">
      You may not see some options or graphs if your computer does not
      have the required hardware.
      You may also see other hardware not shown here (for example
      UPS devices) but these are treated the same way as other devices.
    </para>
  </note>

  <section id="statistics-charge">
    <title lang="en">Charge History</title>
    <para lang="en">
      This graph shows the available percentage of charge for the composite primary
      battery, so if you have a main laptop battery and an auxiliary battery
      then only the averaged value will be shown.
      A legend is not shown with this graph.
    </para>
  </section>

  <section id="statistics-power">
    <title lang="en">Power History</title>
    <para lang="en">
      This graph shows the power history charge used by the composite
      primary battery.
      This line represents the amount of power that is either being used to
      charge the batteries in the system, or the power being used by the system
      from the batteries.
      You should see the line go up when processor intensive tasks are
      performed, and down when the system is at idle, or when the screen is
      dimmed.
      A legend is shown with this graph when data events have been received.
    </para>

    <note>
      <para lang="en">
        You will not receive rate data from your computer if it is not
        charging or discharging, or if the computer is suspended.
        This is due to hardware limitations where the rate is only sent from
        the battery management chip, rather than the power management chip on
        the motherboard.
      </para>
    </note>
  </section>

  <section id="statistics-time">
    <title lang="en">Estimated Time History</title>
    <para lang="en">
      This graph shows the estimated charge history for the composite primary
      battery.
      This line represents the amount of time required until charged, or the
      amount of time until discharge.
      This line should go proportionally up when the rate decreases and down
      when the rate increases.
      A legend is shown with this graph when data events have been received.
    </para>
  </section>
</section>

<section id="preferences">
  <title>Hoffterau</title>

  <para lang="en">The preferences window allows you to control:</para>

  <itemizedlist>
    <listitem>
      <para lang="en">
        The LCD brightness when on AC and battery power
      </para>
    </listitem>
    <listitem>
      <para lang="en">
        The idle time for the screen power-down and suspend action
      </para>
    </listitem>
    <listitem>
      <para lang="en">
        The actions to perform when the laptop lid is closed
      </para>
    </listitem>
    <listitem>
      <para lang="en">
        The notification area icon policy
      </para>
    </listitem>
  </itemizedlist>

  <note>
    <para lang="en">
      Some sliders or option boxes may be disabled if the dconf policy keys are
      not writable.
      This allows administrators to lock-down the actions that a user can select.
    </para>
  </note>

  <section id="preferences-ac">
    <title lang="en">AC Preferences</title>
    <figure id="prefs-ac">
      <title lang="en">MATE Power Manager AC tab</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/gpm-prefs-ac.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
  </section>

  <section id="preferences-battery">
    <title lang="en">Battery Preferences</title>
    <figure id="prefs-processor">
      <title lang="en">MATE Power Manager battery tab</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/gpm-prefs-battery.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
    <para lang="en">
      This allows a powerful computer to reduce the power usage when
      idle, or when the full capabilities are not required.
    </para>
  </section>

  <section id="preferences-general">
    <title lang="en">General Preferences</title>
    <figure id="prefs-general">
      <title lang="en">MATE Power Manager general tab</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/gpm-prefs-general.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
  </section>

  <section id="preferences-idletimes">
    <title lang="en">Session and system idle times</title>
    <para lang="en">
      <command>mate-screensaver</command> is a session daemon that monitors user
      input, and if the mouse has not been moved, or the keyboard been pressed then
      it starts a timeout.
      When the value of this timeout reaches the value set in
      <command>mate-screensaver-preferences</command>, then the login is marked
      as 'session idle'.
      This is when <application>MATE Power Manager</application> performs all the session idle actions such as
      enabling low-power mode and lowering the laptop panel brightness.
    </para>

    <figure>
      <title lang="en">
      Changing the session idle timeout in <command>mate-screensaver-preferences</command>
      </title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/gs-prefs.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
    <para lang="en">
      As soon as the session is marked at idle, <application>MATE Power Manager</application> starts its own
      'system' timer.
      When the timeout set in <command>mate-power-preferences</command> is reached,
      and the CPU load is idle, then the idle action is
      performed, which is usually to turn off the screen, or to suspend or hibernate.
    </para>
    <para lang="en">
      To make this clearer, the sliders in <command>mate-power-preferences</command>
      are set to start at the value of the session-timeout + 1 minute, as we cannot
      logically trigger before the session is marked as idle.
      If you adjust the value of the 'session idle' timeout in
      <command>mate-screensaver-preferences</command> then the start of the sliders
      in <command>mate-power-preferences</command> will change accordingly.
    </para>
  </section>
</section>

<section id="preferences-advanced">
  <title lang="en">Advanced Preferences</title>

  <section id="advanced-preferences-brightness">
    <title lang="en">Screen Dim Brightness</title>
    <note>
      <para lang="en">
        You can change the idle laptop panel brightness by changing the dconf key
        <command>org.mate.power-manager idle-brightness</command>.
      </para>
    </note>
  </section>

  <section id="advanced-preferences-locking">
    <title lang="en">Screen Locking</title>
    <para lang="en">
      By default, <application>MATE Power Manager</application> supports a simple locking scheme.
      This means that the screen will lock if set to "Lock screen" in
      mate-screensaver when the lid is closed, or the system performs a suspend or
      hibernate action.
    </para>
    <para lang="en">
      There is a complex locking scheme available for power users that allows
      locking policy to change for the lid, suspend and hibernate actions.
      To enable this complex mode, you will have to disable the dconf key:
    </para>

    <itemizedlist>
      <listitem>
        <para lang="en">
          <command>org.mate.power-manager lock-use-screensaver</command>
        </para>
      </listitem>
    </itemizedlist>
    <para lang="en">
      Then the policy keys can be set to force a mate-screensaver lock and unlock
      when the action is performed:
    </para>

    <itemizedlist>
      <listitem>
        <para lang="en">
          <command>org.mate.power-manager lock-blank-screen</command>
        </para>
      </listitem>
      <listitem>
        <para lang="en">
          <command>org.mate.power-manager lock-suspend</command>
        </para>
      </listitem>
      <listitem>
        <para lang="en">
          <command>org.mate.power-manager lock-hibernate</command>
        </para>
      </listitem>
    </itemizedlist>

    <note>
      <para lang="en">
        The lock policy for mate-screensaver is ignored until the simple mode
        is re-enabled.
      </para>
    </note>
  </section>
</section>

<section id="applets-general">
  <title lang="en">MATE Power Applets</title>

  <section id="applets-brightness">
    <title>Rhaglennig Disgleirdeb </title>
    <para lang="en">
      The brightness applet allows the user to change the brightness
      temporarily without changing the default policy.
      This may be useful if you have got a laptop without brightness
      buttons, as you can now change the brightness easily.
    </para>
    <figure>
      <title lang="en">
      Brightness applet drop-down.
      </title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/applet-brightness.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
    <note>
      <para lang="en">
        You will not get the slider if your hardware is not supported.
      </para>
    </note>
  </section>

  <section id="applets-inhibit">
    <title>Rhaglennig Atal</title>
    <para lang="en">
      The <application>Inhibit Applet</application> allows the user to prevent the computer
      auto-sleeping when inactive. This may be required with old or
      proprietary programs such as VMWare or Matlab.
      Just click the icon for the auto-suspend to be inhibited,
      and click it again for normal operation.
    </para>
    <figure>
      <title lang="en">
      Inhibit applet in inhibited state.
      </title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/applet-inhibit.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
    <note>
      <para lang="en">
        Don't use this applet if you just use MATE software, instead
        file a bug to make the application use the <function>Inhibit()</function> and
        <function>UnInhibit()</function> methods as this should 'just work'.
      </para>
    </note>
  </section>
</section>

<section id="faq">
  <title lang="en">Frequently Asked Questions</title>
  <para lang="en">
    These are questions the mailing list gets asked frequently.
  </para>
  <section id="faq-capacity">
    <title lang="en">What is battery capacity?</title>
    <para lang="en">
      Capacity is how much charge your battery can store compared to its
      manufacturer's guidelines.
    </para>
    <figure>
      <title lang="en">
        This graph shows the capacity of a typical lithium ion battery over a
        few hundred charge-discharge cycles.
      </title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="figures/gpm-cell-capacity.png" format="PNG"/>
          </imageobject>
        </mediaobject>
      </screenshot>
    </figure>
  </section>

  <section id="faq-suspend-hibernate-differences">
    <title lang="en">What's the difference between suspend and hibernate?</title>
    <para lang="en">
      The Suspend state is a power saving feature which is the lowest level of
      power consumption that preserves program data on the computer's memory.
      When your computer is in the Suspended state, computation will not be
      performed until normal activity is resumed.
      It will not resume until signaled by an external event such as a keyboard
      button press.
      It generally takes a few seconds to suspend and then resume your computer.
    </para>
    <caution>
      <para lang="en">
        You still use a small amount of battery power while suspended, so is
        not recommended for the low power action.
        If you remove AC power on a desktop, or run out of battery power on a
        laptop then you will lose your work.
      </para>
    </caution>
    <para lang="en">
      The Hibernation state saves the complete state of the computer to hard
      disk and turns off the power, so that the computer appears to be off.
      It will not resume until signaled by an external event such as a
      keyboard button press.
      This is the lowest power sleeping state available.
      If you remove AC power on a desktop, or run out of battery power on a
      laptop then work will not be lost.
      It can take up to a minute or more to hibernate and wake your computer.
    </para>
  </section>

  <section id="faq-dpms-broken-monitor">
    <title lang="en">
      My monitor is broken and treats DPMS standby and off states as
      'no-signal' which leaves the monitor powered on.
    </title>
    <para lang="en">
      You have to change the DPMS suspend mode <application>MATE Power Manager</application> uses.
      Open <command>dconf-editor</command>, and then change the keys 
      <literal>org.mate.power-manager dpms-method-ac</literal> and
      <literal>org.mate.power-manager dpms-method-battery</literal>
      to one of the modes that work, e.g. standby, suspend or off.
    </para>
  </section>

  <section id="faq-discharge-time-wrong">
    <title lang="en">
      My time to discharge is always incorrect due to a faulty battery, what
      can I do?
    </title>
    <para lang="en">
      You might be able to use the percentage charge for g-p-m to use as the
      policy data.
      Open <command>dconf-editor</command>, and then change the key 
      <command>org.mate.power-manager use-time-for-policy</command> to false.
      You can do this easily by doing:
      <command>
        gsettings get org.mate.power-manager use-time-for-policy false
      </command>
    </para>
    <para lang="en">
      This should get the policy actions working for you, but of course the
      time remaining will still be incorrect.
    </para>
  </section>

  <section id="faq-inhibit">
    <title lang="en">
      How do I make my application stop the computer auto-suspending?
    </title>
    <para lang="en">
      If your application is doing a long operation, you might want to
      disable the ability to suspend for a little while.
      You should use mate-session if you really don't want the user to be
      able to suspend, or for the computer to save power by hibernating
      or suspending.
    </para>
  </section>

  <section id="faq-acpi-delay">
    <title lang="en">
      I'm running ACPI. Why do events (such as removing the AC adapter)
      take so long to register?
    </title>
    <para lang="en">
      One of two things might be the problem.
    </para>
    <itemizedlist>
      <listitem>
        <para lang="en">
          HAL might not be running the add-on that captures the ACPI event.
        </para>
      </listitem>
      <listitem>
        <para lang="en">
          You BIOS could be faulty, and might need a work-around.
          Please send a bug report.
        </para>
      </listitem>
    </itemizedlist>
    <para lang="en">
      For the first case, try to find the HAL processes that are running:
      <command>ps -eaf | grep hal</command>
    </para>
    <para lang="en">
      And check for the process <command>hald-addon-acpi</command>.
      If it is not being run, then please make sure that HAL is being run
      with the  <command>--retain-privileges</command> option in the
       <command>haldaemon</command> initscript.
      An alternative to this is to use acpid, rather than the kernel proc file.
    </para>
  </section>

</section>

</article>
