build/packages/bsp/pinebook/pinebook-store-sound-on-suspend.service

12 lines
225 B
Desktop File

[Unit]
Description=Store sound on suspend
ConditionFileIsExecutable=/usr/sbin/alsactl
[Service]
Type=oneshot
UMask=0077
ExecStart=/usr/sbin/alsactl -f /tmp/.before-suspend-asound.state store
[Install]
WantedBy=sleep.target