Skip to content
Snippets Groups Projects
Verified Commit 3bde7ec5 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak
Browse files

defaults: systemd: Force poweroff instead of halt

Some systems power off after executing "halt". Users with a habit
of "halt" usage may end up surprised when the Librem 5 appears
completely off after using it, but actually is not - after halting,
the SoC remains on, consumes about 1W of power and does not respond
to any input (including low battery level!) until the power button
is held for ~5 seconds or power is cut.

There's little reason to ever halt a mobile phone without powering
it off, so don't let the users shoot themselves in their foot
(especially given that this can easily end up with battery's
undercharge protection circuit being involved) and force poweroff
whenever halt is invoked.
parent cc3d8df3
No related branches found
No related tags found
1 merge request!364defaults: systemd: Force poweroff instead of halt
Pipeline #84657 passed
......@@ -63,6 +63,9 @@ default/systemd/zram-generator.conf.d/* lib/systemd/zram-generator.conf.d/
# suspend hooks
default/systemd/system-sleep/* lib/systemd/system-sleep/
# poweroff instead of halt
default/systemd/systemd-halt.service.d/* lib/systemd/system/systemd-halt.service.d/
# initramfs modules
default/initramfs-tools/* usr/share/initramfs-tools/
......
[Service]
ExecStart=
SuccessAction=poweroff-force
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment