From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sam Lauber" Newsgroups: gmane.emacs.bugs Subject: Re: Emacs Battery mode cannot use iBook Date: Mon, 27 Jun 2005 21:04:17 +0100 Message-ID: <20050627200417.EF21E21AFF9@ws5-6.us4.outblaze.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1119903002 16105 80.91.229.2 (27 Jun 2005 20:10:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2005 20:10:02 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 27 22:09:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dmzv7-00087A-8W for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jun 2005 22:09:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn02o-00076c-Qt for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jun 2005 16:17:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dmzyw-0004rf-Oj for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2005 16:13:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dmzyq-0004om-Kp for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2005 16:13:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dmzyq-0004Yh-BY for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2005 16:13:20 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DmzwL-0004m9-Ex for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2005 16:10:45 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DmzqW-00013f-A6 for bug-emacs@gnu.org; Mon, 27 Jun 2005 16:04:47 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1Dmzun-0004eV-Ab for bug-emacs@gnu.org; Mon, 27 Jun 2005 16:09:11 -0400 Original-Received: from [205.158.62.67] (helo=webmail-outgoing.us4.outblaze.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dmzum-0004cT-Nn for bug-emacs@gnu.org; Mon, 27 Jun 2005 16:09:09 -0400 Original-Received: from unknown (unknown [192.168.9.180]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id 0F04F180029F for ; Mon, 27 Jun 2005 20:04:18 +0000 (GMT) X-OB-Received: from unknown (205.158.62.148) by wfilter.us4.outblaze.com; 27 Jun 2005 20:04:18 -0000 Original-Received: by ws5-6.us4.outblaze.com (Postfix, from userid 1001) id EF21E21AFF9; Mon, 27 Jun 2005 20:04:17 +0000 (GMT) Content-Disposition: inline Original-Received: from [66.91.209.201] by ws5-6.us4.outblaze.com with http for sam124@operamail.com; Mon, 27 Jun 2005 21:04:17 +0100 Original-To: "Lute Kamstra" , bug-emacs@gnu.org X-Originating-Ip: 66.91.209.201 X-Originating-Server: ws5-6.us4.outblaze.com 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:12357 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:12357 > > I have a iBook G4 w/ Mac OS X. I installed the Carbon Emacs from=20 > > June '05. But the Battery mode does not know about the Mac OS X=20 > > programs for > > battery status, so it dosen't know the battery status for the laptop wh= en > > the system provides this information already. Samuel Lauber > > > > P.S. The battery information can be found by calling the program=20 `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=20 > > of charge. (N.B. It is never 100%; the highest value that my=20 > > iBook will give is 99%). STATUS is either `AC attached' (power=20 > > adapter plugged in and battery fully > > charged), `discharging' (running off battery power and taking power out= =20 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?) Yes. It is installed with the base install of Mac OS X.=20=20=20 Samuel P.S. I'd say it would be canonial, but agian, most userspace programs don't need to know this kind of thing.=20=20 --=20 _______________________________________________ Surf the Web in a faster, safer and easier way: Download Opera 8 at http://www.opera.com