[Feelings & Sharing] alsamixer保存音量设置
Tofloor
poster avatar
fax928
deepin
2023-11-16 05:08
Author

首先输入命令alsamixer设置声卡(F6键切换声卡,M键打开/关闭所选项),然后输入如下命令保存声卡设置alsactl store -f /var/lib/alsa/asound.state

没有/var/lib/alsa/asound.state的话就新建一个。

执行下面的命令加载配置:alsactl restore -f /var/lib/alsa/asound.state

可以打开/etc/init.d/rcS 文件,在最后面追加如下内容:

if [ -f "/var/lib/alsa/asound.state" ]; then
echo "ALSA: Restoring mixer setting......"
/sbin/alsactl -f /var/lib/alsa/asound.state restore &
fi

这样开机就会自动加载配置

tail 拷贝的网页链接:https://blog.csdn.net/weixin_44175439/article/details/120475025?ops_request_misc=&request_id=&biz_id=102&utm_term=alsamixer%E8%AE%BE%E7%BD%AE%E4%BF%9D%E5%AD%98%E4%B8%8D%E4%BA%86&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-120475025.142^v96^control&spm=1018.2226.3001.4449

Reply Favorite View the author
All Replies
f@deepin
deepin
2023-11-16 07:08
#1

妙呀agree

Reply View the author
hanzn-zzx
deepin
2023-11-16 16:17
#2

大赞!like

Reply View the author
fax928
deepin
2023-11-16 18:57
#3

不行,我这边笔记本昨天重启是能保存配置的,但今天开机后配置又改了,要打下命令sudo alsactl restore才能恢复保存过的配置。sob

Reply View the author
晚秋(lateautumn)
Moderator
2023-11-16 23:26
#4

新华为matebook 13s 声音太小如何解决呀applaud

Reply View the author
fax928
deepin
2023-11-16 23:32
#5
晚秋(lateautumn)

新华为matebook 13s 声音太小如何解决呀applaud

输入命令alsamixer调下看看能不能解决问题(F6切换声卡,M键打开、关闭所选的item,上下左右键调节)

Reply View the author
晚秋(lateautumn)
Moderator
2023-11-16 23:34
#6
fax928

输入命令alsamixer调下看看能不能解决问题(F6切换声卡,M键打开、关闭所选的item,上下左右键调节)

已经调到最大了,但比瘟疫系统声音小太多,腾迅会议都没法用,声音太小。

Reply View the author
fax928
deepin
2023-11-16 23:51
#7
晚秋(lateautumn)

已经调到最大了,但比瘟疫系统声音小太多,腾迅会议都没法用,声音太小。

可能有情况会有几个条同时可以控制声音大小,你可以放首歌边听边调试,如果都是最大声了暂时没有更好的方法了。

Reply View the author