PowerD power modes.
-
The question is how PowerD detects current power mode (AC/BAttery/Unknown)? I ask because it looks like it does not detect for me anything and just stuck at "Unknown", but I'd like to use "AC" and "Battery" modes.
-
Probably via ACPI and probably provided via UPS drivers or laptop.
-
I've read https://www.freebsd.org/cgi/man.cgi?acpi(4) and there is one ACPI driver variable that should be used to detect if it's AC or Battery mode, called "hw.acpi.acline"
I do not see hw.acpi.acline oid in sysctl hw.acpi output, does it mean it's not supported by hardware or something else? -
My question would be, what hardware are you using?
-
I bought brand new J1900D2Y ITX server board. Also I have UPS connected via SNMP. I think it's possible to do some scripting on NUT side to select desired modes in PowerD, but I am not sure if this really necessary, may be there is some trick on pfSense/freebsd side?