<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY legal SYSTEM "legal.xml">
<!ENTITY appletversion "2.12.0">
<!ENTITY applet "Battery Charge Monitor">
]>
<!-- 
      (Do not remove this comment block.)
  Maintained by the GNOME Documentation Project
  http://developer.gnome.org/projects/gdp
  Template version: 2.0 beta
  Template last modified Feb 12, 2002
-->
<!-- =============Document Header ============================= -->
<article id="index" lang="zh-CN">
<!-- please do not change the id; for translations, change lang to -->
<!-- appropriate code -->
  <articleinfo> 
    <title>电池电量监视器手册</title> 
    <abstract role="description">
      <para>电池电量监视器显示了电池目前充电的状态，并且在电量低于某一界限时给予提示。</para>
    </abstract>
    <copyright lang="en">
      <year>2005</year>
      <holder>Davyd Madeley</holder>
    </copyright>
    <copyright lang="en">
      <year>2004</year>
      <holder>Angela Boyle</holder>
    </copyright>
    <copyright lang="en">
      <year>2004</year>
      <holder>Sun Microsystems</holder>
    </copyright>
    <copyright lang="en">
      <year>2002</year>
      <holder>Trevor Curtis</holder>
    </copyright>
    <copyright lang="en"> 
      <year>1999</year> 
      <year>2000</year> 
      <holder>Jorgen Pehrson</holder> 
    </copyright>
<!-- translators: uncomment this:

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

   -->

    <publisher role="maintainer"> 
      <publishername>GNOME 文档项目</publishername> 
    </publisher> 
  
    
<!-- This file  contains link to license for the documentation (GNU FDL), and 
     other legal stuff such as "NO WARRANTY" statement. Please do not change 
     any of this. -->

    <authorgroup> 
      <author lang="en">
        <firstname>Sun</firstname>
        <surname>GNOME Documentation Team</surname>
        <affiliation><orgname>Sun Microsystems</orgname></affiliation>
      </author>
      <author lang="en">
        <firstname>Trevor</firstname>
        <surname>Curtis</surname>
        <affiliation>
          <orgname>GNOME Documentation Project</orgname>
          <address> <email>tcurtis@somaradio.ca</email> </address>
        </affiliation>
      </author>
      <author lang="en"> 
        <firstname>Jorgen </firstname> 
        <surname> Pehrson</surname> 
        <affiliation> 
          <orgname>GNOME Documentation Project</orgname> 
          <address> <email>jp@spektr.eu.org</email> </address> 
        </affiliation> 
      </author> 
      <author lang="en">
	<firstname>Angela</firstname>
	<surname>Boyle</surname>
	<affiliation>
	  <orgname>GNOME Documentation Project</orgname>
	</affiliation>
      </author>
      <author lang="en">
        <firstname>Davyd</firstname>
	<surname>Madeley</surname>
	<affiliation>
	  <orgname>GNOME Project</orgname>
	</affiliation>
      </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>
	
	<releaseinfo revision="2.26" role="review"/>

    <revhistory>
      <revision lang="en">
        <revnumber>Version 2.12</revnumber>
	<date>September 2005</date>
	<revdescription>
	  <para role="author" lang="en">Davyd Madeley</para>
	</revdescription>
      </revision>
      <revision lang="en">
        <revnumber>Version 2.10</revnumber>
	<date>March 2005</date>
	<revdescription>
	 <para role="author" lang="en">Davyd Madeley</para>
	</revdescription>
      </revision>
      <revision lang="en">
	<revnumber>Version 2.8</revnumber>
	<date>September 2004</date>
	<revdescription>
	  <para role="author" lang="en">Angela Boyle</para>
	  <para role="publisher" lang="en">GNOME Documentation Project</para>
	</revdescription>
      </revision>
      <revision lang="en">
        <revnumber>Battery Charge Monitor Applet Manual V2.2</revnumber>
        <date>August 2004</date>
        <revdescription>
          <para role="author" lang="en">Sun GNOME Documentation Team</para>
          <para role="publisher" lang="en">GNOME Documentation Project</para>
        </revdescription>
      </revision>
      <revision lang="en">
        <revnumber>Battery Charge Monitor Applet Manual V2.0</revnumber>
        <date>May 2002</date>
        <revdescription>
          <para role="author" lang="en">Trevor Curtis
            <email>tcurtis@somaradio.ca</email>
          </para>
          <para role="author" lang="en">Jorgen Pehrson
            <email>jp@spektr.eu.org</email>
          </para>
          <para role="publisher" lang="en">GNOME Documentation Project</para>
        </revdescription>
      </revision>
    </revhistory>
                                                                                                  
    <releaseinfo>本手册描述 2.12.0 版的电池电量监视程序</releaseinfo>
                                                                                                  
    <legalnotice>
      <title>反馈</title>
      <para>如要对电池电量监视程序或本手册报告错误或提出建议，可以参考在 <ulink url="ghelp:gnome-feedback" type="help">GNOME 反馈页面</ulink>中的指导。</para>
    </legalnotice> 
  </articleinfo> 

  <indexterm zone="index" lang="en"> 
	 <primary>Battery Charge Monitor Applet</primary> 
  </indexterm> 

  <indexterm zone="index" lang="en"> 
	 <primary>Battstat Applet</primary> 
  </indexterm> 

<!-- ============= Document Body ============================= -->
<!-- ============= Introduction ============================== -->
  <sect1 id="battstat-introduction"> 
    <title>简介</title> 

    <figure id="battstat-applet-fig"> 
      <title>电池电量监视程序</title> 
      <screenshot> 
        <mediaobject lang="en"> 
          <imageobject><imagedata fileref="figures/battstat-applet.png" format="PNG"/> 
          </imageobject>
          <textobject> 
            <phrase>The Battery Charge Monitor applet.</phrase>
          </textobject> 
        </mediaobject> 
      </screenshot> 
    </figure>

    <para><application>电池电量监视器</application>显示了您笔记本电脑上所有电池的状态。本监视器能直观的告诉您剩余的电量、给出百分比，并且基于您当前的使用方式为您估算剩余的使用时间。</para>

    <sect2 id="battstat-introduction-add">
      <title>添加电池电量监视器到面板</title>
      <para>添加<application>电池电量监视器</application>到面板，在面板上右键，然后选择<guimenuitem>添加到面板</guimenuitem>，在<application>添加到面板</application>对话框中选择<application>电池电量监视器</application>，单击<guibutton>添加</guibutton>。</para>
      <para><application>电池电量监视器</application>小程序的布局随着用于安放小程序的面板尺寸和形式的改变而改变。</para>
    </sect2>

    <sect2 id="battstat-power-backends">
     <title>电源管理后端</title>

     <para lang="en">
      The battery monitor supports a number of power management backends.
      If it is available, the monitor will attempt to use the freedesktop.org
      <ulink url="http://upower.freedesktop.org/">upower</ulink> interface.
      If it is unavailable or unsupported on your platform, it will fall back
      to the freedesktop.org
      <ulink url="http://freedesktop.org/Software/hal">HAL (Hardware
      Abstraction Layer)</ulink>. If that is also not availble, the
      battery monitor will attempt direct access to the power management system.
     </para>
     <para>不是所有从计算机销售商处得到的电源管理后端都是可用的，有些计算机销售商为特别的平台或硬件添加了额外的后端。如果对您的电池电池监视器显示信息不实，参考<xref linkend="battstat-troubleshooting"/>。</para>
    </sect2>

    <sect2 id="battstat-getting-help">
      <title>获得帮助</title>
      <para>如果电池监视器不为您工作，请参考这些补充资源：</para>
      <itemizedlist>
       <listitem><para><xref linkend="battstat-troubleshooting"/>；</para></listitem>
       <listitem><para lang="en">
        <ulink url="http://mail.gnome.org/archives/">GNOME mailing
	lists</ulink>
       </para></listitem>
      </itemizedlist>
    </sect2>

</sect1>

<!-- ================ Customizing the Appearance ========================= -->

  <sect1 id="battstat-appearance">
    <title>首选项</title>
          <para>为监视器设置偏好，在面板的监视器上右键，然后选择<guimenuitem>首选项</guimenuitem></para>
    <figure id="battstat-applet-prefs-menu"> 
      <title>电池电量监视器(右键)菜单环境</title> 
      <screenshot> 
        <mediaobject lang="en"> 
          <imageobject><imagedata fileref="figures/context-menu.png" format="PNG"/> 
          </imageobject>
          <textobject> 
            <phrase>Battery Charge Monitor context menu</phrase>
          </textobject> 
        </mediaobject> 
      </screenshot> 
    </figure>
    <figure id="battstat-applet-prefs"> 
      <title>首选项对话框</title> 
      <screenshot> 
        <mediaobject lang="en"> 
          <imageobject><imagedata fileref="figures/battstat-preferences.png" format="PNG"/> 
          </imageobject>
          <textobject> 
            <phrase>Preferences Dialog</phrase>
          </textobject> 
        </mediaobject> 
      </screenshot> 
    </figure>
      <variablelist>
        <varlistentry>
          <term lang="en"><guilabel>Appearance</guilabel></term>
	  <listitem>
	  <variablelist>
	    <varlistentry>
	      <term lang="en"><guilabel>Compact view</guilabel></term>
	      <listitem><para lang="en">
	       This view shows only a single graphic in the panel, either an
	       upright battery to indicate remaining capacity or a plug to
	       indicate your laptop is connected to an external power source.
    <figure id="battstat-applet-compact"> 
      <title lang="en">Compact view</title> 
      <screenshot> 
        <mediaobject lang="en"> 
          <imageobject><imagedata fileref="figures/battstat-applet.png" format="PNG"/> 
          </imageobject>
          <textobject> 
            <phrase>Compact View</phrase>
          </textobject> 
        </mediaobject> 
      </screenshot> 
    </figure>
              </para>
	      <para>此紧缩视图是 GNOME 2.12 下监视器默认视图。</para></listitem>
	    </varlistentry>
	    <varlistentry>
	      <term lang="en"><guilabel>Expanded view</guilabel></term>
	      <listitem><para lang="en">
	       The expanded view is old look from previous versions of GNOME. It
	       has the larger graphic for the battery as well as a separate
	       graphic to indicate what state the battery is in.
    <figure id="battstat-applet-expanded"> 
      <title lang="en">Expanded view</title> 
      <screenshot> 
        <mediaobject lang="en"> 
          <imageobject><imagedata fileref="figures/battstat-applet-expanded.png" format="PNG"/> 
          </imageobject>
          <textobject> 
            <phrase>Expanded View</phrase>
          </textobject> 
        </mediaobject> 
      </screenshot> 
    </figure>
	      </para></listitem>
	    </varlistentry>
	    <varlistentry>
	      <term lang="en"><guilabel>Show time/percentage</guilabel></term>
	      <listitem><para>选中这个选项将可以显示两种信息中的一个。<guilabel>显示剩余时间</guilabel>将会告诉您还有多少时间电池将完全放电或重新充满 。<guilabel>显示剩余百分比</guilabel>将会告诉您电池剩余电量的百分比。</para></listitem>
	    </varlistentry>
	  </variablelist>
	  </listitem>
        </varlistentry>
	<varlistentry>
	 <term lang="en"><guilabel>Notifications</guilabel></term>
	  <listitem>
	  <itemizedlist>
	   <listitem><para lang="en"><guilabel>
	    Warn when battery charge drops to
	   </guilabel></para>
	   <para>选中此项将会在您的笔记本电量达到剩余百分比或是剩余分钟数时给予警告，提示会在您的电池剩余电量极低时出现。您可以取消提示，另外当您将笔记本插上主电源时警告会自动消失。</para>
	   </listitem>
	   <listitem>
	    <para lang="en"><guilabel>
	     Notify when the battery is fully recharged
	    </guilabel></para>
	    <para>选中此选项在您的电池充满时会通知您。如果您编译电池电量监视器时加入了 libnotify，将支持在面板的监视器处弹出无干扰的消息。</para>
	   </listitem>
	  </itemizedlist>
	  </listitem>
	</varlistentry>
      </variablelist>
   </sect1>

   <sect1 id="battstat-troubleshooting">
    <title>问题处理</title>
    
    <para>由于电源管理的复杂性和大量的可用的电源管理系统之间的差异，在电池监视器中排除错误是困难的。您需要判断错误存在于电池监视器中还是您机器提供信息的错误。</para>
    <para>下面的信息对您排除发生在您电池监视器上的问题也许是有用的。如果您发现了电池电量监视器的错误(不是因为 ACPI 报告了错误的消息)，请将之<ulink url="http://bugzilla.gnome.org/">报告</ulink>。</para>

    <sect2 id="battstat-troubleshooting-backends">
     <title>确定后端</title>
     <para lang="en">
       If you are using the upower interface, or the Hardware
       Abstraction Layer (see <xref linkend="battstat-power-backends"/>) then
       that will be indicated in the about dialog by placing a star next to the
       author of the HAL backend.
    <figure id="battstat-credits-hal"> 
      <title lang="en">Check you're using the HAL backend</title> 
      <screenshot> 
        <mediaobject lang="en"> 
          <imageobject><imagedata fileref="figures/battstat-credits-hal.png" format="PNG"/> 
          </imageobject>
          <textobject> 
            <phrase>Expanded View</phrase>
          </textobject> 
        </mediaobject> 
      </screenshot> 
    </figure>
     </para>

     <para>正在使用的其它后端现在还没有给出指明，因此您不得不跟据您的硬件去猜测一下了。大多数的个人笔记本电脑使用 ACPI 作为后端。也有有着大量矛盾存在的后端。</para>
    </sect2>

    <sect2 id="battstat-troubleshooting-acpi">
      <title>检查 ACPI 信息</title>
      <para>如果您正在使用 ACPI 作为电池电量监视器的后端，确认 ACPI 给了您正确的信息是很重要的。如果没有，您需要查看您 DSDT 的升级或者与 ACPI 有关联的某事物。</para>
      <example><title>ACPI 输出实例</title>
       <screen>
[rupert@laptop ~]$ cat /proc/acpi/battery/BAT1/info
present:                 yes
design capacity:         41040 mWh
last full capacity:      37044 mWh
battery technology:      rechargeable
design voltage:          10800 mV
design capacity warning: 745 mWh
design capacity low:     0 mWh
capacity granularity 1:  10 mWh
capacity granularity 2:  10 mWh
model number:            G71C00056110
serial number:           0000000008
battery type:            Li-ION
OEM info:
[rupert@laptop ~]$ cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            11232 mW
remaining capacity:      27140 mWh
present voltage:         11400 mV
[rupert@laptop ~]$</screen>
      </example>
      <para>用<guilabel>remaining capacity</guilabel>(剩余电量)除以<guilabel>last full capacity</guilabel>(上次充满电量)您可以快速的计算出剩余百分比，用<guilabel>remaining capacity</guilabel>除以<guilabel>present rate</guilabel>(当前功率)您可以快速计算出剩余使用时间。</para>
    </sect2>

    <sect2 id="battstat-troubleshooting-nohal">
      <title>硬件抽象层</title>
      <para>您可以用 HAL 检查您的电池使用命令<command>hal-device-manager</command>。如果您的电池没被 HAL 检测出来或者报错，您可以尝试通过设置 GConf 的键值使 HAL 失效。</para>
      <para>在<guimenu>首选项</guimenu>菜单中<guisubmenu>系统工具下</guisubmenu>选择<guimenuitem>配置编辑器</guimenuitem>。搜索键值<prompt>OAFIID:GNOME_BattstatApplet</prompt>，它应该在<filename>/apps/panel/applets</filename>下。</para>
      <para>假设路径为<filename>/apps/panel/applets/applet_1</filename>。在<filename>/apps/panel/applets/applet_1/prefs</filename>中添加一个<guimenuitem>新键(New Key...)</guimenuitem>取名<guilabel>no_hal</guilabel>设置为布尔型(boolean)变量,其值为真(true)。这样会使 HAL 的使用失效(参照<xref linkend="battstat-troubleshooting-backends"/>了解如何检查此事)。</para>
    </sect2>
    
   </sect1>

</article>
