mirror of
https://gitlab.postmarketos.org/postmarketOS/pmaports.git
synced 2025-07-17 02:35:11 +03:00
18 lines
445 B
Desktop File
18 lines
445 B
Desktop File
#
|
|
# Note that two different ALSA card state management schemes exist and they
|
|
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
|
|
#
|
|
|
|
[Unit]
|
|
Description=Save/Restore Sound Card State
|
|
ConditionPathExists=!/etc/alsa/state-daemon.conf
|
|
ConditionPathExistsGlob=/dev/snd/control*
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=true
|
|
ExecStart=-/usr/sbin/alsactl restore
|
|
ExecStop=-/usr/sbin/alsactl store
|
|
|
|
[Install]
|
|
WantedBy=sound.target
|