bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Battery mode cannot use iBook


From: Sam Lauber
Subject: Re: Emacs Battery mode cannot use iBook
Date: Mon, 27 Jun 2005 21:04:17 +0100

> > 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?)
Yes.  It is installed with the base install of Mac OS X.   

Samuel

P.S.  I'd say it would be canonial, but agian, most userspace programs don't
need to know this kind of thing.  

-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 8 at http://www.opera.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]