On Tue 2018-07-24 10:39:23, Lucas Rangit Magasweran wrote: > (limit CC to linux-acpi for now) > > On Mon, 2018-07-23 at 23:49 +0200, Pavel Machek 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. Have you tested your patches? If so, on what hardware? Does /proc/acpi/battery work for you after bootup? > 1. What is the system's DMI info (sudo dmidecode -s system-manufacturer; sudo dmidecode -s system- > product-name)? Some hardware quirks exists. Thinkpad X60. > 2. Do the sysfs /sys/class/power_supply/BAT0/* attributes work? The /procfs interface is deprecated. You still can't break them. > 3. Does the battery status report correctly when it's not fully charged? > > 4. Does the battery status update when you either disconnect or connect the charger? The ACPI > firmware should send a notify event to the kernel to update the battery tables. You know, looking at your patches, it seems pretty clear how they could break stuff. Let me just revert them. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature