Subject: Re: acpi/apm code only uses last battery?
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: port-i386
Date: 10/11/2006 15:45:30
On Wed, 11 Oct 2006, Steven M. Bellovin wrote:
> Understood.  I'm saying that /dev/apm needs to persist until we also find
> the energy to fix the applications that use /dev/apm.  There are at least
> 3 packages in pkgsrc that use it (more precisely, grepping patch-*
> for /dev/apm gets three hits, and I think there are more), plus the apm
> command itself since some of its modes are better for scripts than envstat.

Are you sure the tools in pkgsrc don't support both interfaces? I know at 
least in xbattbar's case, it will try envsys and fallback to /dev/apm if 
the former is not present.

The apm command itself could be modified to talk to the envsys API for 
compatibility with your older scripts.

Cheers,
Jared