声卡能找到,却看不到喇叭

最大的社区版本,Ubuntu的发源地
回复
头像
yinmingfff
帖子: 50
注册时间: 2018-12-18 0:09
系统: debian 11

声卡能找到,却看不到喇叭

#1

帖子 yinmingfff » 2020-02-28 8:49

(base) yinxiuqu@debian:~$ lspci | grep -i audio
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
(base) yinxiuqu@debian:~$ cat /proc/asound/cards
0 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xfeb64000 irq 43
1 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfeb60000 irq 16
(base) yinxiuqu@debian:~$
以上是声卡信息,但是播放就提示:
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
play FAIL sox: Sorry, there is no default audio device configured

不知道是哪里的错误?
牧童短笛
头像
astolia
论坛版主
帖子: 6444
注册时间: 2008-09-18 13:11

Re: 声卡能找到,却看不到喇叭

#2

帖子 astolia » 2020-02-28 10:54

yinmingfff 写了: 2020-02-28 8:49 play FAIL sox: Sorry, there is no default audio device configured
不知道是哪里的错误?
你把你用的命令也写出来啊
头像
yinmingfff
帖子: 50
注册时间: 2018-12-18 0:09
系统: debian 11

Re: 声卡能找到,却看不到喇叭

#3

帖子 yinmingfff » 2020-02-28 11:02

astolia 写了: 2020-02-28 10:54
yinmingfff 写了: 2020-02-28 8:49 play FAIL sox: Sorry, there is no default audio device configured
不知道是哪里的错误?
你把你用的命令也写出来啊
os.system('play --no-show-progress --null --channels 1 synth %s sine %f' % (duration, freq))

播放出视频文件也是只有图像没有声音,提示如下:
音频设备“default”无法使用:
没有那个文件或目录.
音频输出失败:
音频设备“default”无法使用:
没有那个文件或目录.
音频输出失败:
音频设备“default”无法使用:
没有那个文件或目录.
音频输出失败:
音频设备“default”无法使用:
没有那个文件或目录.
牧童短笛
头像
yinmingfff
帖子: 50
注册时间: 2018-12-18 0:09
系统: debian 11

Re: 声卡能找到,却看不到喇叭

#4

帖子 yinmingfff » 2020-02-28 11:04

早两天我播放还有声音,就是昨天在python下用os.system('play --no-show-progress --null --channels 1 synth %s sine %f' % (duration, freq))蜂鸣音做预警,还有声音,今天来看就出问题了。
牧童短笛
头像
astolia
论坛版主
帖子: 6444
注册时间: 2008-09-18 13:11

Re: 声卡能找到,却看不到喇叭

#5

帖子 astolia » 2020-02-28 11:40

你创建个/etc/modprobe.d/alsa-default.conf,写上

代码: 全选

options snd_hda_intel index=1
然后重启试试?
头像
yinmingfff
帖子: 50
注册时间: 2018-12-18 0:09
系统: debian 11

Re: 声卡能找到,却看不到喇叭

#6

帖子 yinmingfff » 2020-02-28 21:57

astolia 写了: 2020-02-28 11:40 你创建个/etc/modprobe.d/alsa-default.conf,写上

代码: 全选

options snd_hda_intel index=1
然后重启试试?
创建这个文件添加这一行之后,居然都正常了!!!但是右下角的小喇叭仍然不见了,不能调声音大小。老大,再帮忙看看,已经万分感谢您了 :Grimace
牧童短笛
头像
astolia
论坛版主
帖子: 6444
注册时间: 2008-09-18 13:11

Re: 声卡能找到,却看不到喇叭

#7

帖子 astolia » 2020-03-02 16:13

我不知道你说的喇叭是什么东西,各个桌面环境用的都不一样。如果是用传统面板形式的桌面环境的,那就到面板设置里重设一下
头像
yinmingfff
帖子: 50
注册时间: 2018-12-18 0:09
系统: debian 11

Re: 声卡能找到,却看不到喇叭

#8

帖子 yinmingfff » 2020-03-03 10:32

astolia 写了: 2020-03-02 16:13 我不知道你说的喇叭是什么东西,各个桌面环境用的都不一样。如果是用传统面板形式的桌面环境的,那就到面板设置里重设一下
就是右下角调节声音的控制器。
我已经向面板里添加了小程序声音控制器,但是仍然看不到小喇叭了。
牧童短笛
回复