[Bug 251619] sysutils/battmond: battmond dies after first suspend

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 5 20:52:39 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251619

            Bug ID: 251619
           Summary: sysutils/battmond: battmond dies after first suspend
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: dirtystickyfloor at web.de
                CC: ntarmos at gmail.com
             Flags: maintainer-feedback?(ntarmos at gmail.com)
                CC: ntarmos at gmail.com
 Attachment #220293 text/plain
         mime type:

Created attachment 220293
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=220293&action=edit
proposed patch

I configured battmond to suspend instead of shutting down the system. In line
197 exec is used to invoke suspend:

execl("/usr/sbin/acpiconf", "acpiconf", "-s3", NULL);

As exec will replace the current process image with the new process, battmond
is no longer running when the system resumes after battmond suspended for the
first time.

To make sure that battmond is running after resume, I see two possible
solutions:

1.) Replace exec with system
or
2.) Restart battmond on resume using rc-scripts

I attached a patch for solution #1

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list