* linux-next-20180723: battery status funny after bootup
@ 2018-07-23 21:49 Pavel Machek
2018-07-24 8:27 ` Rafael J. Wysocki
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2018-07-23 21:49 UTC (permalink / raw)
To: Rafael J. Wysocki, kernel list, Linux-pm mailing list; +Cc: lenb, linux-acpi
[-- Attachment #1: Type: text/plain, Size: 612 bytes --]
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.
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next-20180723: battery status funny after bootup
2018-07-23 21:49 linux-next-20180723: battery status funny after bootup Pavel Machek
@ 2018-07-24 8:27 ` Rafael J. Wysocki
2018-07-24 9:12 ` Pavel Machek
0 siblings, 1 reply; 4+ messages in thread
From: Rafael J. Wysocki @ 2018-07-24 8:27 UTC (permalink / raw)
To: Pavel Machek
Cc: Rafael J. Wysocki, kernel list, Linux-pm mailing list, Len Brown,
ACPI Devel Maling List
On Mon, Jul 23, 2018 at 11:49 PM, Pavel Machek <pavel@ucw.cz> wrote:
>
> 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.
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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next-20180723: battery status funny after bootup
2018-07-24 8:27 ` Rafael J. Wysocki
@ 2018-07-24 9:12 ` Pavel Machek
2018-07-24 9:21 ` Rafael J. Wysocki
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2018-07-24 9:12 UTC (permalink / raw)
To: Rafael J. Wysocki, lucas.magasweran
Cc: Rafael J. Wysocki, kernel list, Linux-pm mailing list, Len Brown,
ACPI Devel Maling List
[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]
On Tue 2018-07-24 10:27:08, Rafael J. Wysocki wrote:
> On Mon, Jul 23, 2018 at 11:49 PM, Pavel Machek <pavel@ucw.cz> wrote:
> >
> > 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.
>
> 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
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next-20180723: battery status funny after bootup
2018-07-24 9:12 ` Pavel Machek
@ 2018-07-24 9:21 ` Rafael J. Wysocki
0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2018-07-24 9:21 UTC (permalink / raw)
To: Pavel Machek
Cc: Rafael J. Wysocki, lucas.magasweran, Rafael J. Wysocki,
kernel list, Linux-pm mailing list, Len Brown,
ACPI Devel Maling List
On Tue, Jul 24, 2018 at 11:12 AM, Pavel Machek <pavel@ucw.cz> wrote:
> On Tue 2018-07-24 10:27:08, Rafael J. Wysocki wrote:
>> On Mon, Jul 23, 2018 at 11:49 PM, Pavel Machek <pavel@ucw.cz> wrote:
>> >
>> > 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.
>>
>> 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.
OK, I'll drop 706ac4aa536f then, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-07-24 9:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-23 21:49 linux-next-20180723: battery status funny after bootup Pavel Machek
2018-07-24 8:27 ` Rafael J. Wysocki
2018-07-24 9:12 ` Pavel Machek
2018-07-24 9:21 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox