我在 Ubuntu 20.0.4 LTS 下运行 HP x 360。它里面有一块 NVIDIA GEFORCE GTX 卡以及所有标准设备接口。
当我尝试使用内置麦克风时,它似乎根本检测不到它。我可以编辑 alsa 配置,但只能之一声音或麦克风在任何时候都无法正常工作。此外,它(或至少“设置”)无法检测到 NVIDIA 卡作为可能的输出源。
如果我设置值 = 0,则更改 /etc/modeprobe.d/alsa-base.conf 的最后三行(见下文)将关闭麦克风,但保留扬声器上的声音。如果我尝试设置这些行中的选项,以便强制启用两者(选项 >0),则两者都会出现在设置中,但只有麦克风可以工作(显然两行都没有注释!)
还请注意最后一行,尽管:
cat /proc/asound/card*/codec* | grep Codec
给出
Codec: Realtek ALC285
Codec: Intel Kabylake HDMI
在:https://www.kernel.org/doc/html/latest/sound/hd-audio/models.html
Alc285 仅被识别为通用 Alc28x,并未列出具体编解码器。配置文件中的最后一行尝试使用该修复程序来解决任何 HP x360 特定问题,但效果不大或没有效果。
如何让扬声器和麦克风(内置或 USB)正常工作?这是内核问题吗?
以供参考:
inxi 给予
System: Host: abcde Kernel: 5.4.0-81-generic x86_64 bits: 64 Desktop: Gnome 3.36.9
Distro: Ubuntu 20.04.3 LTS (Focal Fossa)
Machine: Type: Convertible System: HP product: HP Spectre x360 Convertible v: N/A serial: <superuser/root required>
Mobo: HP model: 8519 v: 11.66 serial: <superuser/root required> UEFI: AMI v: F.32 date: 09/25/2019
Audio: Device-1: Intel Cannon Lake PCH cAVS driver: sof-audio-pci
Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel
Sound Server: ALSA v: k5.4.0-81-generic
和
lspci | grep Audio
给出:
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev ff)
aplay -l
给出
card 1: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0aplay -l```
gives
/etc/modprobe.d/alsa-base.conf 文件如下所示:
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }
# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from being loaded as first soundcard
# options snd-usb-audio index=-2
options snd-hda-intel dmic_detect=1
#options snd-hda-intel model=alc295-hp-x360```