Skip to contentSkip to conversation

linux-next-20180723: battery status funny after bootup

DISCUSSION Pavel Machek 2 participants 4 messages Jul 23, 2018 – Jul 24, 2018 ACPI

lore
Share & tools
lore
#0 lore raw
pavel@amd:~$ cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mW
remaining capacity:      0 mWh
present voltage:         0 mV
pavel@amd:~$ uname -a
Linux amd 4.18.0-rc6-next-20180723+ #141 SMP Mon Jul 23 22:11:47 CEST
2018 i686 GNU/Linux

It will correct itself if I unplug/replug the AC adapter, I believe. Gnome2 battery monitor also looks confused.

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw
Quoted 12 lines · Pavel Machek
pavel@amd:~$ cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mW
remaining capacity:      0 mWh
present voltage:         0 mV
pavel@amd:~$ uname -a
Linux amd 4.18.0-rc6-next-20180723+ #141 SMP Mon Jul 23 22:11:47 CEST
2018 i686 GNU/Linux
Quoted 2 lines

It will correct itself if I unplug/replug the AC adapter, I believe. Gnome2 battery monitor also looks confused.

There are two battery changes in linux-next now that are not present in the mainline

2a2aad34362b ACPI: battery: remove redundant old_present check on insertion 706ac4aa536f ACPI: battery: use cache_time as cache "enabled"

Does reverting any of them help? Or is the problem present in the mainline too?

#2 lore raw
Quoted 16 lines · Rafael J. Wysocki
Quoted 12 lines · Pavel Machek
pavel@amd:~$ cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mW
remaining capacity:      0 mWh
present voltage:         0 mV
pavel@amd:~$ uname -a
Linux amd 4.18.0-rc6-next-20180723+ #141 SMP Mon Jul 23 22:11:47 CEST
2018 i686 GNU/Linux
Quoted 2 lines

It will correct itself if I unplug/replug the AC adapter, I believe. Gnome2 battery monitor also looks confused.

Quoted 8 lines

There are two battery changes in linux-next now that are not present in the mainline

2a2aad34362b ACPI: battery: remove redundant old_present check on insertion 706ac4aa536f ACPI: battery: use cache_time as cache "enabled"

Does reverting any of them help? Or is the problem present in the mainline too?

Thanks for pointers! Not it mainline, I'd notice that.

I reverted 706ac4aa536f , and on the next boot:

pavel@amd:~$ cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mW
remaining capacity:      37150 mWh
present voltage:         16400 mV

..plus icon was ok from the start.

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#3 lore raw
Quoted 38 lines · Pavel Machek
Quoted 16 lines · Rafael J. Wysocki
Quoted 12 lines · Pavel Machek
pavel@amd:~$ cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mW
remaining capacity:      0 mWh
present voltage:         0 mV
pavel@amd:~$ uname -a
Linux amd 4.18.0-rc6-next-20180723+ #141 SMP Mon Jul 23 22:11:47 CEST
2018 i686 GNU/Linux
Quoted 2 lines

It will correct itself if I unplug/replug the AC adapter, I believe. Gnome2 battery monitor also looks confused.

Quoted 8 lines

There are two battery changes in linux-next now that are not present in the mainline

2a2aad34362b ACPI: battery: remove redundant old_present check on insertion 706ac4aa536f ACPI: battery: use cache_time as cache "enabled"

Does reverting any of them help? Or is the problem present in the mainline too?

Thanks for pointers! Not it mainline, I'd notice that.

I reverted 706ac4aa536f , and on the next boot:

pavel@amd:~$ cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mW
remaining capacity:      37150 mWh
present voltage:         16400 mV
Quoted 1 line

..plus icon was ok from the start.

OK, I'll drop 706ac4aa536f then, thanks!