Date: Sat, 25 Dec 2021 14:05:07 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260214] acpi_battery: Should provide current/max battery charge in Wh (wine expects them) Message-ID: <bug-260214-227-J5d0qsBFf3@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-260214-227@https.bugs.freebsd.org/bugzilla/> References: <bug-260214-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260214 --- Comment #5 from georg.lastname@web.de --- Or maybe we can calculate the remaining time even when charging. I'm not su= re whether it would result in a bogus output. Maybe remove the second condition here: In src/sys/dev/acpi_battery (line 238): */ * If the queried battery has no discharge rate or is charging, * report that we don't know the remaining time. */ if (valid_rate =3D=3D 0 || (battinfo->state & ACPI_BATT_STAT_CHARGI= NG)) battinfo->min =3D -1; } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260214-227-J5d0qsBFf3>