Re: acpiconf does not return proper information about the second battery

2020-02-25 Thread Hiroki Sato
Hi,

Mateusz Piotrowski <0...@freebsd.org> wrote
  in <22aa2ae6-088c-8d6c-8080-71a5db2ee...@freebsd.org>:

0m> Hello current,
0m>
0m> I've upgraded to r358233 recently (from a 13.0-CURRENT snapshot from
0m> late January).
0m>
0m> Since the upgrade, I cannot get full information about my second
0m> battery with acpiconf (I'm using Lenovo Thinkpad T480).
0m>
0m> The number of batteries is detected properly. It is just the details
0m> of the second one that are not available. Here are the outputs of
0m> acpiconf invocations:

 The cause should be my commit.  Could you send me off-list the result
 of the following?

 1. acpidump -dt

 2. An output of acpiconf which you had got before upgrading (if still
available)

-- Hiroki


pgpDbhhhNqeG8.pgp
Description: PGP signature


acpiconf does not return proper information about the second battery

2020-02-25 Thread Mateusz Piotrowski

Hello current,

I've upgraded to r358233 recently (from a 13.0-CURRENT snapshot from 
late January).


Since the upgrade, I cannot get full information about my second battery 
with acpiconf (I'm using Lenovo Thinkpad T480).


The number of batteries is detected properly. It is just the details of 
the second one that are not available. Here are the outputs of acpiconf 
invocations:


$ acpiconf -i 0
Design capacity:    24000 mWh
Last full capacity:    18600 mWh
Technology:        secondary (rechargeable)
Battery Swappable Capability:    Non-swappable
Design voltage:        11460 mV
Capacity (warn):    930 mWh
Capacity (low):        200 mWh
Cycle Count:        174
Mesurement Accuracy:    95 %
Max Average Interval:    1000 ms
Min Average Interval:    500 ms
Low/warn granularity:    -1 mWh
Warn/full granularity:    -1 mWh
Model number:        01AV421
Serial number:         4058
Type:            LiP
OEM info:        SMP
State:            high
Remaining capacity:    100%
Remaining time:        unknown
Present rate:        0 mW
Present voltage:    12503 mV



$ acpiconf -i 1
Design capacity:    0 mWh
Last full capacity:    0 mWh
Technology:        primary (non-rechargeable)
Design voltage:        0 mV
Capacity (warn):    0 mWh
Capacity (low):        0 mWh
Cycle Count:        0
Mesurement Accuracy:    0 %
Max Sampling Time:    0 ms
Min Sampling Time:    0 ms
Max Average Interval:    0 ms
Min Average Interval:    0 ms
Low/warn granularity:    0 mWh
Warn/full granularity:    0 mWh
Model number:
Serial number:
Type:
OEM info:
State:            not present
Present voltage:    11513 mV



The "Present voltage" of the second battery changes to "unknown" when 
the battery is removed.


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"