Comment vérifier l'option “autopoweroff” sur un profil non actif?


0

Je souhaite vérifier la valeur autopoweroffet les autopoweroffdelayparamètres du profil "Alimentation de la batterie" lors de l'exécution du profil "Alimentation" (précisément quel que soit le profil actuellement actif).

La pmset -gcommande ne renvoie que les valeurs du profil et de l’ -boption actuels (appliquer les paramètres à la batterie) ne fonctionne que pour définir les options ne les lisant pas (ne peut pas être utilisée avec -g).

Existe-t-il un autre moyen / commande permettant de vérifier les valeurs?


Avez-vous essayé:pmset -g profiles
user3439894

Non, je n'ai pas (jusqu'à maintenant). manla page ne le mentionne pas. Quoi qu'il en soit, je ne comprends pas sa sortie - il affiche tous les profils autopoweroff 1alors que si je débranche le câble d’alimentation et que pmset -gje lance, j’obtiens «autopoweroff 0».
Techraf

Réponses:


0

Selon le manuel pmset -g customaffiche " paramètres personnalisés pour toutes les sources d'alimentation ". Il semble que ces " paramètres personnalisés " soient en fait tous les paramètres affichés par pmset -gpour le profil actuel:

# pmset -g custom
Battery Power:
 lidwake              1
 autopoweroff         0
 autopoweroffdelay    14400
 standbydelay         10800
 standby              1
 ttyskeepawake        1
 hibernatemode        3
 powernap             0
 gpuswitch            2
 hibernatefile        /var/vm/sleepimage
 displaysleep         2
 sleep                1
 acwake               0
 halfdim              1
 lessbright           1
 disksleep            10
AC Power:
 lidwake              1
 autopoweroff         0
 autopoweroffdelay    14400
 standbydelay         10800
 standby              1
 ttyskeepawake        1
 hibernatemode        3
 powernap             1
 gpuswitch            2
 hibernatefile        /var/vm/sleepimage
 womp                 0
 displaysleep         10
 networkoversleep     0
 sleep                0
 acwake               0
 halfdim              1
 disksleep            10

Les valeurs peuvent également être vérifiées en lisant directement dans /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

# cat /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>ActivePowerProfiles</key>
    <dict>
        <key>AC Power</key>
        <integer>-1</integer>
        <key>Battery Power</key>
        <integer>-1</integer>
    </dict>
    <key>Custom Profile</key>
    <dict>
        <key>AC Power</key>
        <dict>
            <key>AutoPowerOff Delay</key>
            <integer>14400</integer>
            <key>AutoPowerOff Enabled</key>
            <integer>0</integer>
            <key>DarkWakeBackgroundTasks</key>
            <true/>
            <key>Disk Sleep Timer</key>
            <integer>10</integer>
            <key>Display Sleep Timer</key>
            <integer>10</integer>
            <key>Display Sleep Uses Dim</key>
            <integer>1</integer>
            <key>GPUSwitch</key>
            <integer>2</integer>
            <key>Hibernate File</key>
            <string>/var/vm/sleepimage</string>
            <key>Hibernate Mode</key>
            <integer>3</integer>
            <key>PrioritizeNetworkReachabilityOverSleep</key>
            <integer>0</integer>
            <key>Standby Delay</key>
            <integer>10800</integer>
            <key>Standby Enabled</key>
            <integer>1</integer>
            <key>System Sleep Timer</key>
            <integer>0</integer>
            <key>TTYSPreventSleep</key>
            <integer>1</integer>
            <key>Wake On AC Change</key>
            <integer>0</integer>
            <key>Wake On Clamshell Open</key>
            <integer>1</integer>
            <key>Wake On LAN</key>
            <integer>0</integer>
        </dict>
        <key>Battery Power</key>
        <dict>
            <key>AutoPowerOff Delay</key>
            <integer>14400</integer>
            <key>AutoPowerOff Enabled</key>
            <integer>0</integer>
            <key>DarkWakeBackgroundTasks</key>
            <false/>
            <key>Disk Sleep Timer</key>
            <integer>10</integer>
            <key>Display Sleep Timer</key>
            <integer>2</integer>
            <key>Display Sleep Uses Dim</key>
            <integer>1</integer>
            <key>GPUSwitch</key>
            <integer>2</integer>
            <key>Hibernate File</key>
            <string>/var/vm/sleepimage</string>
            <key>Hibernate Mode</key>
            <integer>3</integer>
            <key>ReduceBrightness</key>
            <integer>1</integer>
            <key>Standby Delay</key>
            <integer>10800</integer>
            <key>Standby Enabled</key>
            <integer>1</integer>
            <key>System Sleep Timer</key>
            <integer>1</integer>
            <key>TTYSPreventSleep</key>
            <integer>1</integer>
            <key>Wake On AC Change</key>
            <integer>0</integer>
            <key>Wake On Clamshell Open</key>
            <integer>1</integer>
        </dict>
    </dict>
    <key>SystemPowerSettings</key>
    <dict>
        <key>DestroyFVKeyOnStandby</key>
        <true/>
    </dict>
</dict>
</plist>
En utilisant notre site, vous reconnaissez avoir lu et compris notre politique liée aux cookies et notre politique de confidentialité.
Licensed under cc by-sa 3.0 with attribution required.