←back to thread

700 points yen223 | 4 comments | | HN request time: 0.626s | source
1. Bengalilol ◴[] No.42061389[source]
There is also pmset which is very useful (since macOS doesn't give a UI counterpart) https://support.apple.com/en-am/guide/mac-help/mchl40376151/...
replies(3): >>42061522 #>>42062169 #>>42063173 #
2. yen223 ◴[] No.42061522[source]
Oh this is pretty neat, thanks for sharing!

https://ss64.com/mac/pmset.html

3. jftuga ◴[] No.42062169[source]
I have this .zshrc function to track the battery and charging, which uses pmset:

    function batt-info() {
        echo
        system_profiler SPPowerDataType | grep Wattage | cut -c 7-
        echo
        pmset -g batt
    }
4. redman25 ◴[] No.42063173[source]
I've found reliably "turning on" with pmset to be hit or miss. I can't remember the gotcha I ran into if it was that you had to have your laptop lid open or something else...