Setting that to false did the trick.Have a look at the sysctl(8)hw.efi.poweroff
uid.
I don't knowDoes it do the same with 14.0-CURRENT?
No,Isn't power off just init 0?
init 0
halts the system. shutdown -p now
powers down the system: -p The system is halted and the power is turned off (hardware
support required, otherwise the system is halted) at the
specified time.
Yes, that resulted in the same behavior (booting again after shutdown) unless `hw.efi.poweroff` is set to `0`.Did you tryshutdown -p now
?
Calling “poweroff” is equivalent to running:
shutdown -p now
Need to try this on a one test machine I have. It has the uncanny habit of turning itself back on after aYes, that resulted in the same behavior (booting again after shutdown) unless `hw.efi.poweroff` is set to `0`.
shutdown -p now
too.Well, not to be nit-picky but it also works on my machine - it just boots again after successfully shutting down@jbodenmann "shutdown -p now" works on my X1 carbon Gen 9 machine.
hw.efi.poweroff
on your machine?Mine shows that same behaviour depending on a BIOS setting. It's a setting named 'AC back' under the power managemant options. It determines what happens when power comes back after a power loss. It has three options. The first is 'memory, the system returns to its last known awake state' (according to the booklet). This option gives the behaviour that you describe. The other options are 'always on' (switches on when power returns) and 'always off' (stay off when power returns). The latter is the default. You may have some similar options in your BIOS.it just boots again after successfully shutting down
… when power comes back after a power loss. … 'memory, the system returns to its last known awake state' (according to the booklet). This option gives the behaviour that you describe. …
No. CommandIs there loss of power in this case?
shutdown -p now
will indeed switch off, and then back on again after 1-2 seconds. It seems to do what the manual says, return to its last known awake state. The other options work as expected.