From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.bugs Subject: Re: Emacs Battery mode cannot use iBook Date: Mon, 27 Jun 2005 10:47:43 +0200 Message-ID: <87r7eoyymo.fsf@xs4all.nl> References: <20050626023526.99DEF23EF6D@ws5-4.us4.outblaze.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119863124 20586 80.91.229.2 (27 Jun 2005 09:05:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2005 09:05:24 +0000 (UTC) Cc: bug-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 27 11:05:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DmpX9-0005uV-PY for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jun 2005 11:04:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dmpel-0007PS-EP for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jun 2005 05:11:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DmpR5-0001Ju-1S for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2005 04:57:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DmpR1-0001G3-Bb for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2005 04:57:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DmpR0-00011Q-TA for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2005 04:57:43 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DmpLq-0007Xz-My for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2005 04:52:22 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DmpGL-0000F6-CO for bug-emacs@gnu.org; Mon, 27 Jun 2005 04:46:41 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1DmpLY-0007WO-6B for bug-emacs@gnu.org; Mon, 27 Jun 2005 04:52:04 -0400 Original-Received: from [194.109.24.25] (helo=smtp-vbr5.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DmpLX-0007WH-Pl for bug-emacs@gnu.org; Mon, 27 Jun 2005 04:52:04 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr5.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5R8liOT001926; Mon, 27 Jun 2005 10:47:44 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DmpHL-0005Dr-00; Mon, 27 Jun 2005 10:47:43 +0200 Original-To: "Sam Lauber" In-Reply-To: <20050626023526.99DEF23EF6D@ws5-4.us4.outblaze.com> (Sam Lauber's message of "Sun, 26 Jun 2005 03:35:26 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 29 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:12350 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:12350 "Sam Lauber" writes: > I have a iBook G4 w/ Mac OS X. I installed the Carbon Emacs from June '05. > But the Battery mode does not know about the Mac OS X programs for > battery status, so it dosen't know the battery status for the laptop when > the system provides this information already. > > Samuel Lauber > > P.S. The battery information can be found by calling the program `pmset > -g ps'; it outputs information in the following format: > > Currenty drawing from 'POWER_SRC Power' > -InternalBattery-0 XX%; STATUS; ESTIMATE > > where `POWER_SRC' is either AC or Battery. XX is the percentage of charge. > (N.B. It is never 100%; the highest value that my iBook will give is 99%). > STATUS is either `AC attached' (power adapter plugged in and battery fully > charged), `discharging' (running off battery power and taking power out of > the battery), or `charging' (charging up). If the battery is out, the entire > `XX%; STATUS...' line is replated with `(removed)'. Note that the first > line has a typo. It might get fixed, so don't rely on it. battery.el currently only knows how to get battery information from a Linux kernel. I'll see if I can add support for iBooks running OS X. Is calling "pmset -g ps" the canonical way to get battery information on OS X? (Is that program typically installed?) Lute.