debian10系统无声音

各位大佬,新装系统无声音,windows里面好好的,哪位帮忙看看(本人菜鸟,已网上搜过,所有硬件及系统信息如下)

root@debian:/home/denny# lspci |grep Audio
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
01:00.1 Audio device: NVIDIA Corporation Device 0fbc (rev a1)

root@debian:/home/denny# aplay -l
aplay: device_list:272: no soundcards found…

root@debian:/home/denny# modprobe snd-hda-intel
modprobe: ERROR: …/libkmod/libkmod-module.c:192 kmod_module_parse_depline() ctx=0x55add587e260 path=/lib/modules/4.19.0-5-amd64/kernel/sound/pci/hda/snd-hda-codec.ko error=No such file or directory
modprobe: ERROR: …/libkmod/libkmod-module.c:192 kmod_module_parse_depline() ctx=0x55add587e260 path=/lib/modules/4.19.0-5-amd64/kernel/sound/pci/hda/snd-hda-codec.ko error=No such file or directory
modprobe: ERROR: could not insert ‘snd_hda_intel’: Unknown symbol in module, or unknown parameter (see dmesg)

应该是声卡没驱动了,下载了alsa驱动,编译老提示没内核文件

root@debian:/usr/src/alsa/alsa-driver-1.0.25# ./configure --with-kernel=/lib/modules/4.19.0-5-amd64/source
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for ranlib… ranlib
checking for a BSD-compatible install… /usr/bin/install -c
checking how to run the C preprocessor… gcc -E
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for ANSI C header files… yes
checking for an ANSI C-conforming const… yes
checking for inline… inline
checking whether time.h and sys/time.h may both be included… yes
checking whether gcc needs -traditional… no
checking for current directory… /usr/src/alsa/alsa-driver-1.0.25
checking cross compile…
checking for directory with ALSA kernel sources… /usr/src/alsa/alsa-driver-1.0.25/alsa-kernel
checking for directory with kernel source… /lib/modules/4.19.0-5-amd64/source
checking for directory with kernel build… /lib/modules/4.19.0-5-amd64/source
checking for kernel linux/version.h … no
**e file /lib/modules/4.19.0-5-amd64/source/include/INCLUDE_VERSION_H does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /lib/modules/4.19.0-5-amd64/source).

root@debian:/usr/src/alsa/alsa-driver-1.0.25# ./configure --with-kernel=/lib/modules/4.19.0-5-amd64/source/version.h
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for ranlib… ranlib
checking for a BSD-compatible install… /usr/bin/install -c
checking how to run the C preprocessor… gcc -E
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for ANSI C header files… yes
checking for an ANSI C-conforming const… yes
checking for inline… inline
checking whether time.h and sys/time.h may both be included… yes
checking whether gcc needs -traditional… no
checking for current directory… /usr/src/alsa/alsa-driver-1.0.25
checking cross compile…
checking for directory with ALSA kernel sources… /usr/src/alsa/alsa-driver-1.0.25/alsa-kernel
*hecking for directory with kernel source… Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /lib/modules/4.19.0-5-amd64/source).

root@debian:/usr/src/alsa/alsa-driver-1.0.25# uname -r
4.19.0-5-amd64

root@debian:/usr/src/alsa/alsa-driver-1.0.25# apt-get install linux-kernel-headers
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
注意,选中 ‘linux-libc-dev’ 而非 ‘linux-kernel-headers’
linux-libc-dev 已经是最新版 (4.19.37-5)。
linux-libc-dev 已设置为手动安装。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

root@debian:/usr/src/alsa/alsa-driver-1.0.25# apt-get install linux-source
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
linux-source 已经是最新版 (4.19+105)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

apt-get install pulseaudio
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
pulseaudio 已经是最新版 (12.2-4)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

pulseaudio没用,alsa不能直接apt安装,编译又老提示没内核文件(其实有),哪位大佬帮我看看要怎么操作才能驱动,谢谢了

有一些问题:
1、以前搞过linux系统没?
2、电脑是啥型号啥配置?
3、Debian 装上使用马上就发现没声音?还是折腾了一些东西后测试才发现没声音?
4、alsa,debian默认应该是已经安装的,包名称叫做alsa-utils,你查一下系统有没有安装这个包;
4、pulseaudio没用是什么意思,能不能详细说一下?

1.十几年前学校折腾过些,觉得硬件支持不好,界面不是特别友好,中间都没用;
2.电脑intel I7台式机;
3.装上马上发现没声音;
root@debian:/home/denny# apt-get install alsa-utils
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
alsa-utils 已经是最新版 (1.1.8-2)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

4.pulseaudio这个applicant能打开,没声音

ps aux | grep pulseaudio 看看这个进程有没有在运行

root@debian:/home/denny# ps aux | grep pulseaudio
denny 4074 0.0 0.0 704664 8976 ? S<sl 09:33 0:03 /usr/bin/pulseaudio --daemonize=no
root 10528 0.0 0.0 6296 888 pts/2 S+ 10:59 0:00 grep pulseaudio

denny@debian:~$ ps aux | grep pulseaudio
denny 4074 0.0 0.0 704664 8976 ? S<sl 09:33 0:03 /usr/bin/pulseaudio --daemonize=no
denny 10644 0.0 0.0 6296 880 pts/2 S+ 11:00 0:00 grep pulseaudio

看起来的确是驱动的问题,你装一下这个包 linux-headers-amd64 这是内核头文件,然后再编译试试看

headers和source都装了呢,主帖内容有,装前,装后提示差不多,不知道装了不能识别还是什么问题.麻烦帮我看看
主帖上相关命令,已经标了粗体和倾斜

Debian默认安装时,会安装声卡驱动;
如果你是默认安装就没有声音,除非声卡芯片比较偏门,Debian认不到;

但这种情况特别少见,你是台式机,声卡应该是主板集成的;
你看看方不方便用Debian Live ISO non-free 做一个启动U盘,然后用这个U盘启动这台电脑,看有没有声音~

这个输出怎么确定是驱动问题?
我对这个命令不熟,可能是我电脑没出过问题,倒是独显问题,一直没搞好…

modprobe snd-hda-intel 根据这个命令的输出看出来的。我这儿这个命令能正确执行。

了解了:+1:

denny@debian:~$ lspci |grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K620] (rev a2)
denny@debian:~$ lsmod |grep VGA
denny@debian:~$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 390.116 Sun Jan 27 07:21:36 PST 2019
GCC version: gcc version 8.3.0 (Debian 8.3.0-6)

显卡没问题

你装了专有驱动?

是啊,换的non-free源,apt装的,很简单的.NVIDIA官网有更新的,不过要自己编译进内核,我帕搞不定.不过pulseaudio apt可以装装了不能用,alsa不能通过apt装

oot@debian:/usr/src/alsa/alsa-driver-1.0.25# lsmod |grep snd
snd_hda_codec_hdmi 57344 1
snd_hda_codec_realtek 122880 1
snd_hda_codec_generic 86016 1 snd_hda_codec_realtek
snd_hda_intel 45056 0
snd_hda_codec 151552 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core 94208 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 114688 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer 36864 1 snd_pcm
snd 94208 8 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
soundcore 16384 1 snd

重装image后有snd_hda_intel了,但是pulseaudio还是显示没有可以配置的声卡,alsa driver驱动还是提示同样的问题
执行modprobe snd_hda_intel和modprobe snd-hda-intel都无输出也无提示

root@debian:/home/denny# aplay -v
ALSA lib conf.c:3652:(config_file_open) cannot access file /etc/alsa/conf.d/10-rate-lav.conf
ALSA lib conf.c:3572:(snd_config_hooks_call) function snd_config_hook_load returned error: 没有那个文件或目录
ALSA lib conf.c:4026:(snd_config_update_r) hooks failed, removing configuration
aplay: main:828: audio open error: 没有那个文件或目录
root@debian:/home/denny# aplay -l
**** List of PLAYBACK Hardware Devices ****
ALSA lib conf.c:3652:(config_file_open) cannot access file /etc/alsa/conf.d/10-rate-lav.conf
ALSA lib conf.c:3572:(snd_config_hooks_call) function snd_config_hook_load returned error: 没有那个文件或目录
ALSA lib conf.c:4026:(snd_config_update_r) hooks failed, removing configuration
aplay: device_list:281: control open (0): 没有那个文件或目录
ALSA lib conf.c:3652:(config_file_open) cannot access file /etc/alsa/conf.d/10-rate-lav.conf
ALSA lib conf.c:3572:(snd_config_hooks_call) function snd_config_hook_load returned error: 没有那个文件或目录
ALSA lib conf.c:4026:(snd_config_update_r) hooks failed, removing configuration
aplay: device_list:281: control open (1): 没有那个文件或目录

Debian默认安装是没有私有驱动的,所以,你现在的情况,已经不是Debian默认安装的最初的环境;
所以,你在Debian默认安装好以后,第一时间检查声音,是什么情况?
我在想是不是因为默认安装以外的操作导致的声卡的问题~

dmesg的信息如下:

[ 8573.081362] snd_hda_intel 0000:01:00.1: Disabling MSI
[ 8573.081365] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[ 8573.095845] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC887-VD: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[ 8573.095846] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 8573.095848] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 8573.095848] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 8573.095849] snd_hda_codec_realtek hdaudioC0D0: dig-out=0x11/0x0
[ 8573.095850] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 8573.095851] snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x19
[ 8573.095852] snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x18
[ 8573.095853] snd_hda_codec_realtek hdaudioC0D0: Line=0x1a
[ 8573.106929] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 8573.106986] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[ 8573.107038] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[ 8573.107088] input: HDA Intel PCH Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 8573.107138] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
[ 8573.776149] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input14
[ 8573.776234] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15

denny@debian:/proc/asound$ cat cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf7200000 irq 26
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xf7080000 irq 17
denny@debian:/proc/asound$ cat devices
2: [ 0- 0]: digital audio playback
3: [ 0- 0]: digital audio capture
4: [ 0- 1]: digital audio playback
5: [ 0- 2]: digital audio capture
6: [ 0- 0]: hardware dependent
7: [ 0] : control
8: [ 1- 3]: digital audio playback
9: [ 1- 7]: digital audio playback
10: [ 1- 0]: hardware dependent
11: [ 1] : control
33: : timer