Date: Sat, 05 Dec 2020 20:40:18 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 251618] sysutils/battmond: battmond won't act if battery level suddenly drops to zero Message-ID: <bug-251618-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251618 Bug ID: 251618 Summary: sysutils/battmond: battmond won't act if battery level suddenly drops to zero Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dirtystickyfloor@web.de CC: ntarmos@gmail.com Flags: maintainer-feedback?(ntarmos@gmail.com) CC: ntarmos@gmail.com Attachment #220292 text/plain mime type: Created attachment 220292 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D220292&action= =3Dedit proposed patch I configured battmond to suspend (option -z) after reaching a threshold of = 5% (-H 5). In some cases, e.g. when running the system under high load and/or = if the battery becomes old, it is not unusual that the battery level drops suddenly from more than 5 percent to zero percent. In this case the system = will shut off unexpectedly instead of going to sleep. This is because battmond checks for remaining capacity greater than zero and not greater than or equ= al to zero (Line 192 in battmond.c). Patchfile attached. --=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-251618-7788>