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

    What about using powerdxx instead of powerd?

    Development
    1
    2
    2.0k
    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
      w0w
      last edited by

      There is an alternate daemon for CPU power management, called powerd++ or powerdxx, this daemon looks a bit better, and I've tested it on two pfSense installations using desired temperature as a control factor, also I've found that adaptive mode works much better than the default FreeBSD powerd adaptive.
      What do you think about it?
      Is there any hope that someday we will see the implementation of this in the pfSense?

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

        If anyone wants to test the package, you can try this script below.
        Place it in /usr/local/etc/rc.d, change mode to 0755, disable PowerD in the System / Advanced / Miscellaneous
        reboot the system and wait for 5 min, check dashboard for current CPU frequency and temperature.

        #!/bin/sh
        case "$1" in
        start)
        #safety timer 3min 
        sleep 180
        logger "Check powerd++ status"
        #check no pkg jobs currently running
        CHECKPKG=$(pgrep pkg)
        while [ "$CHECKPKG" != "" ];
        do
        sleep 60
        CHECKPKG=$(pgrep pkg)
        done
        #check powerd++ installed or not, if not going to install it, if yes going to start 
        CHECKPOWERDXX=$(pkg info powerdxx | grep Categories) &&
        CHECKPKG=$(pgrep pkg)
        if [ "$CHECKPOWERDXX" != "Categories     : sysutils" ]  && [ "$CHECKPKG" = "" ]; then
            /bin/rm -f -r /usr/local/etc/pkg/repos_ && 
        	/bin/mv -f /usr/local/etc/pkg/repos /usr/local/etc/pkg/repos_ && 
            /usr/local/sbin/pkg install -f -y powerdxx &&
        	/bin/mv -f /usr/local/etc/pkg/repos_ /usr/local/etc/pkg/repos && 
        	/bin/rm -f -r /usr/local/etc/pkg/repos_ && 
            sleep 60
            logger "PowerDxx reinstalled, started!";
        else
            logger "NORMAL start: powerd++ exists!";
        fi
        
        # starting powerd++, if this does not work, try "powerdxx -a adp" 
        powerdxx -H 55:65 -t dev.cpu.0.temperature
        
        ;;
        stop)
        ;;
        esac
        
        exit 0
        
        1 Reply Last reply Reply Quote 0
        • fireodoF fireodo referenced this topic on
        • fireodoF fireodo referenced this topic on
        • fireodoF fireodo referenced this topic on
        • fireodoF fireodo referenced this topic on
        • fireodoF fireodo referenced this topic on
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.