Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Dec 2020 20:52:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 251619] sysutils/battmond: battmond dies after first suspend
Message-ID:  <bug-251619-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251619

            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@FreeBSD.org
          Reporter: dirtystickyfloor@web.de
                CC: ntarmos@gmail.com
             Flags: maintainer-feedback?(ntarmos@gmail.com)
                CC: ntarmos@gmail.com
 Attachment #220293 text/plain
         mime type:

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

I configured battmond to suspend instead of shutting down the system. In li=
ne
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, battmo=
nd
is no longer running when the system resumes after battmond suspended for t=
he
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

--=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-251619-7788>