No APM yet for AMD?

Ariff Abdullah ariff at FreeBSD.org
Mon Jan 9 13:08:45 PST 2006


On Mon, 09 Jan 2006 12:25:15 -0800
Nate Lawson <nate at root.org> wrote:
> 
> I looked at the patch but had a hard time figuring out what the 
> functional changes are.  Most of the changes are just using a 
> convenience pointer to see the struct members and some style 
> misformatting of the printf arguments.  (The second line of
> indentation  needs to be 4 spaces indented, see style(9)).
> 
> What part of this patch is just the functional change?
> 
There are no functional changes at all. It simply trying to be more
verbose (and forgiving), in case the ioctl did not return advance
information (such as remaining time, so on) which I believe few ACPI
bioses incapable of providing such info. In this case, it trying to
calculate the percentage of remining battery capacity based on Last
Full Capacity, which current acpiconf ignore.

# acpiconf -i 0 (without patch)
Design capacity:        6000 mAh
Last full capacity:     4000 mAh
Technology:             secondary (rechargeable)
Design voltage:         14800 mV
Capacity (warn):        207 mAh
Capacity (low):         125 mAh
Low/warn granularity:   10 mAh
Warn/full granularity:  25 mAh
Model number:           JM-6
Serial number:          0046713127
Type:                   LION
OEM info:               Hewlett-Packard
State:                  not present
                        ^^^^^^^^^^^
Voltage:                unknown

# acpiconf -i 0 (patched)
Design capacity:        6000 mAh
Last full capacity:     4000 mAh
Technology:             secondary (rechargeable)
Design voltage:         14800 mV
Capacity (warn):        207 mAh
Capacity (low):         125 mAh
Low/warn granularity:   10 mAh
Warn/full granularity:  25 mAh
Model number:           JM-6
Serial number:          0046713127
Type:                   LION
OEM info:               Hewlett-Packard
State:                  high 
                        ^^^^
Present rate:           unknown
Remaining capacity:     100%
                        ^^^^
Voltage:                unknown
AC line:                on-line

--
Ariff Abdullah
FreeBSD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20060110/9bb43ef2/attachment.bin


More information about the freebsd-amd64 mailing list