alsa-restore 服務不工作

alsa-restore 服務不工作

我的 Arch Linux 系統上出現聲音問題。當我重新啟動時,我的聲音設定不正確。登入後,如果我運行

sudo alsactl restore

那麼一切都很好。我的印像是alsa-restoresystemd 服務應該要處理這個問題

$ cat /usr/lib/systemd/system/alsa-restore.service
#
# 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/bin/alsactl restore
ExecStop=-/usr/bin/alsactl store

該服務似乎已啟動並正在運行

$ sudo systemctl status alsa-restore
● alsa-restore.service - Save/Restore Sound Card State
   Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static; vendor preset: disabl
   Active: active (exited) since Thu 2017-11-30 11:55:58 EST; 5min ago
  Process: 533 ExecStart=/usr/bin/alsactl restore (code=exited, status=0/SUCCESS)
 Main PID: 533 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/alsa-restore.service

Nov 30 11:55:58 cochlea systemd[1]: Starting Save/Restore Sound Card State...
Nov 30 11:55:58 cochlea systemd[1]: Started Save/Restore Sound Card State.

我缺什麼?如何在登入時恢復聲音設定?

相關內容