[Bug 286174] rc.d/powerd should be installed regardless of ACPI and APM support

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 18 Apr 2025 09:47:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286174

            Bug ID: 286174
           Summary: rc.d/powerd should be installed regardless of ACPI and
                    APM support
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: avg@FreeBSD.org

etc/rc.d/powerd is listed in tools/build/mk/OptionalObsoleteFiles.inc under
${MK_ACPI} == no && ${MK_APM} == no condition.

I believe that it's not correct.
First of all, powerd program itself is not dependent on those conditions.
Also, it does not strictly require any of those features, all it needs is
cpufreq support.
E.g., powerd works just fine on Rock64 which is an FDT-based arm64 SoC.

As a side note, the rc script has this description:
desc="Modify the power profile based on AC line state"

I do not think that it is correct either.
Looks like it was copied from power_profile script.

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