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.

我缺少什么?如何在登录时恢复声音设置?

相关内容