ronyfadel / BatteriesReleases

11 stars 4 forks source link

Show Powermode #13

Closed Ramalama2 closed 3 weeks ago

Ramalama2 commented 1 year ago

Hey Rony, batteries looks cool, but i miss one thing xD

Bildschirm­foto 2023-01-28 um 22 09 38

Stromversorgung: Batterie -> Power Source: Battery Stromsparmodus: Ein -> Low Performance Mode: Enabled

Im using on my M2 Max Macbook Pro, often the Low performance mode, that i have even in alfred as workflow. Basically i made a small bash script for it:

if [[ $(/usr/bin/pmset -g | grep powermode | awk '{print $NF}') == "0" ]]; then
    sudo /usr/bin/pmset -a lowpowermode 1
    echo -n "Low Power Mode - ENABLED!"
else
    sudo /usr/bin/pmset -a lowpowermode 0
    echo -n "Low Power Mode - DISABLED!"
fi

so i can toggle between low performance mode and automatic. low performance mode has the benefit, that the macbook uses only those 4 energyefficient cores and disables the other 8 performance cores. That way i get like 20h battery runtimes, lol xD

However, there is a "High Performance Mode" either, thats (pmset) powermode=2 So in short: powermode = 0 (Automatic) powermode = 1 (Low Performance Mode) powermode = 2 (High Performance Mode)

If you could add that, that would be really amazing! Thanks!

ronyfadel commented 1 year ago

Interesting! I think I can add that, yes

Ramalama2 commented 1 year ago

Interesting! I think I can add that, yes

Awesome Rony, thx 😘👍