没有
没有uos-autorun,扬声器无声音
没有
没有uos-autorun,扬声器无声音
我觉得这个帖子能解决我的问题.不过
我的电脑提示的是permission denied!!!
我只要把这句话加上sudo,变成sudo alsactl restore就可以了。
所以问题变成了,我怎样让这句话不加sudo也能运行。
我觉得这个帖子能解决我的问题.不过
我的电脑提示的是permission denied!!!
我只要把这句话加上sudo,变成sudo alsactl restore就可以了。
所以问题变成了,我怎样让这句话不加sudo也能运行。
也不是.
我的电脑开机真的会自动执行这个autorun吗?
我觉得这个帖子能解决我的问题.不过
我的电脑提示的是permission denied!!!
我只要把这句话加上sudo,变成sudo alsactl restore就可以了。
所以问题变成了,我怎样让这句话不加sudo也能运行。
sudo crontab -e
Run the above command and add the following line of commands:
@reboot sleep 20s && sudo alsactl restore
sudo crontab -e
Run the above command and add the following line of commands:
@reboot sleep 20s && sudo alsactl restore
原来sudo crontab -e是跟crontab完全不同的两个文件。真是学到了!我解决了华为电脑matebook 13s没有声音的问题。
就是首先运行
sudo crontab -e
进入root的定时自动执行软件。在最后一行添加
@reboot sleep 20s && sudo alsactl restore
也就是在重新启动电脑时,20秒后(?),再运行声卡的什么重置命令sudo alsactl restore。
这样就可以了!
也可以先在电脑上试一下这个命令:
sudo alsactl restore
看下声音出来没有。如果有,再设置上面的这个定时任务。没有的话,设置定时任务也没用。
sudo crontab -e
Run the above command and add the following line of commands:
@reboot sleep 20s && sudo alsactl restore
Mr. Wai先生太好了!Thx alot :)
原来sudo crontab -e是跟crontab完全不同的两个文件。真是学到了!我解决了华为电脑matebook 13s没有声音的问题。
就是首先运行
sudo crontab -e
进入root的定时自动执行软件。在最后一行添加
@reboot sleep 20s && sudo alsactl restore
也就是在重新启动电脑时,20秒后(?),再运行声卡的什么重置命令sudo alsactl restore。
这样就可以了!
也可以先在电脑上试一下这个命令:
sudo alsactl restore
看下声音出来没有。如果有,再设置上面的这个定时任务。没有的话,设置定时任务也没用。
补充一下,如果restore出来的声音不合适,可以按下面的方法,把声音调好以后,再保存store到asound.state
https://bbs.deepin.org/post/264470
我真是太棒了
Mr. Wai先生太好了!Thx alot :)
───────────────────────────────────────────
原来sudo crontab -e是跟crontab完全不同的两个文件。
Run the following two commands, and you will see the difference.
sudo deepin-editor /var/spool/cron/crontabs/root
sudo deepin-editor /var/spool/cron/crontabs/$USER
───────────────────────────────────────────
也就是在重新启动电脑时,20秒后(?)
Yes, “@reboot sleep 20s” means a delay of 20 seconds after system startup.
Note that “@reboot” means “after the system has started or has been restarted”.
You may change “20s” to “10s” and see whether “alsactl restore” will still work properly.
───────────────────────────────────────────
光荣榜
打造操作系统创新生态
关注微信公众号
技术服务
应用场景
硬件/整机信息:全平台
OS版本信息:全架构
OS版本信息:桌面专业版、家庭版、社区版
问题现象
扬声器无声,开机后修改alsamixer后就有声音,但是重启以后属性复原,再次无声。
解决方案
步骤一
终端执行
alsactl restore
观察报错信息
步骤二
vim /usr/bin/uos-autorun
添加: alsactl init
若无效则添加: alsactl nrestore
步骤三
重启电脑