有时我会遇到这样的问题:在装有Ubuntu 16.04的Dell XPS13上听不到任何声音。我已经连接了Logitech G930。当我打开pavucontrol它是停留在“建立连接的PulseAudio请稍候......”我一直在关注Ubuntu的音频问题指南(德语版是在这里:https://wiki.ubuntuusers.de/Sound_Problembehebung/#Soundsystem)并发现以下内容:
$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xdc428000 irq 295
1 [H ]: USB-Audio - Logitech G933 Gaming Wireless H
Logitech Logitech G933 Gaming Wireless H at usb->0000:00:14.0-1, full speed
这样就可以识别声卡了。但是,不会播放音频:
$ aplay /usr/share/sounds/alsa/Front_Center.wav
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied
aplay: main:722: audio open error: Connection refused
与sudo
:相同
$ sudo aplay /usr/share/sounds/alsa/Front_Center.wav
Home directory not accessible: Permission denied
Home directory not accessible: Permission denied
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit >Little Endian, Rate 48000 Hz, Mono
“ groups”命令没有显示音频组,但是我认为奇怪的是它在大多数时间都有效(并且在重启后,如果有问题,通常是这样),所以我想这不是问题。
我还能去哪里?
编辑:
$ lspci -nnk | grep -A2 Audio
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:9d71] (rev
21)
Subsystem: Dell Device [1028:075b]
Kernel driver in use: snd_hda_intel
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3246 Analog [ALC3246 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: H [Logitech G933 Gaming Wireless H], device 0: USB Audio [USB >Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
$ pactl list short sinks
Connection failure: Access denied
你能请编辑您的问题,包括终端命令的输出
—
David Foerster
lspci -nnk | grep -A2 Audio
,aplay -l
和pactl list short sinks
?如果PulseAudio(通过pactl
)没有响应,请(备份并)删除~/.pulse
,启动PulseAudio(pulseaudio --start
),然后重试。谢谢。
抱歉,花了我一段时间来重现错误,并有时间写下所有内容。我已经编辑了问题。我在〜/ .pulse上找不到文件
—
Bernie
嘿@Bernie,您曾经解决过这个问题吗?面对完全一样的问题..
—
亚历克斯·蒂莫
也许文件位于
—
rwst
~/.config/pulse
而不是中~/.pulse
。至少在OpenSuSE上,他们是…
audio
组中,也不要以root用户身份运行音频应用程序。有时需要删除我们主页中的不良设置。参见askubuntu.com/questions/201780/…–塔卡特