Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    PowerD power modes.

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • w0wW Offline
      w0w
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Harvy66
        last edited by

        Probably via ACPI and probably provided via UPS drivers or laptop.

        1 Reply Last reply Reply Quote 0
        • w0wW Offline
          w0w
          last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • H Offline
            Harvy66
            last edited by

            My question would be, what hardware are you using?

            1 Reply Last reply Reply Quote 0
            • w0wW Offline
              w0w
              last edited by

              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?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.