Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试获取有关 alsa 的知识。当我看到它时,它会自动存储混音器控件的先前状态并在重新启动时恢复它们。所以我从文件中评论了这个过程/etc/init/alsa-restore.conf /etc/init/alsa-store.conf。之后,我对 True 进行了一项控制并重新启动了我的系统。重新启动后,我检查了控件的值,现在为假。
/etc/init/alsa-restore.conf
/etc/init/alsa-store.conf
重新启动后,从哪里获得该控制值为假。
没有文件/var/lib/alsa/asound.state,因为我删除了它。
/var/lib/alsa/asound.state
混音器控件的初始状态由驱动程序或设备本身确定。
此外,当asound.state还不存在时,许多发行版会调用alsactl init.
asound.state
alsactl init
如果您希望混音器控件具有特定值,则必须以某种方式设置此值。如果您不想依赖asound.state,您可以运行自己的脚本来设置控件amixer。
amixer