From b87f6f667d044e6cc5e9c20c6c877c22272af55c Mon Sep 17 00:00:00 2001 From: Stefan Dimitrijevic Date: Tue, 4 Oct 2022 23:27:34 +0200 Subject: [PATCH] Change to RemainAfterExit=yes in alsa-restore.service.in Fresh Manjaro installation. Default volume value was 75%, no matter to what value I change it, it resets to 75% on reboot/shutdown. After changing to `RemainAfterExit=yes` from `RemainAfterExit=true` in `alsa-restore.service`, the volume value is properly saved and restored on reboot/shutdown. I did check the following [link](https://www.freedesktop.org/software/systemd/man/systemd.service.html) and it says: > RemainAfterExit= > Takes a boolean value that specifies whether the service shall be considered active even when all its processes exited. Defaults to no. But if you look at `Example 4. Stoppable oneshot service`, it clearly sets `RemainAfterExit=yes` with `Type=oneshot`. --- alsactl/alsa-restore.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsactl/alsa-restore.service.in b/alsactl/alsa-restore.service.in index 80fd5fd48..a2e5afbf3 100644 --- a/alsactl/alsa-restore.service.in +++ b/alsactl/alsa-restore.service.in @@ -10,6 +10,6 @@ ConditionPathExistsGlob=/dev/snd/control* [Service] Type=oneshot -RemainAfterExit=true +RemainAfterExit=yes ExecStart=-@sbindir@/alsactl restore ExecStop=-@sbindir@/alsactl store