最近我在我的 Acer Swift 3 笔记本电脑上安装了 Ubuntu 20.04。
内置麦克风似乎无法使用。声音设置中的输入设备下拉菜单为空。但耳机的外置麦克风可以检测到并且工作正常。
以下是一些可能有用的输出,
reyansh@acer:~$ cat /proc/asound/card0/codec* | grep Codec
Codec: Conexant Generic
Codec: Intel Icelake HDMI
多媒体音频控制器输出lspci -v
命令,
00:1f.3 Multimedia audio controller: Intel Corporation Smart Sound Technology Audio Controller (rev 30)
Subsystem: Acer Incorporated [ALI] Smart Sound Technology Audio Controller
Flags: bus master, fast devsel, latency 32, IRQ 164
Memory at 601d160000 (64-bit, non-prefetchable) [size=16K]
Memory at 601d000000 (64-bit, non-prefetchable) [size=1M]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_sof_pci
/etc/modprobe.d/alsa-base.conf 的最后几行,
#Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2
#options snd-hda-intel model=auto
options snd-hda-intel dmic_detect=0
我试过这但没有运气。任何帮助都将不胜感激。谢谢!
编辑1:输出sudo hdajacksensetest -a
(无外接麦克风)
Pin 0x16 (Black Headphone, Right side): present = No
Pin 0x17 (Internal Speaker, Rear side): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Black Mic, Right side): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x1f (Not connected): present = No
Pin 0x21 (Not connected): present = No
Pin 0x26 (Not connected): present = No
Pin 0x27 (Not connected): present = No
编辑2:
输出modprobe --show-depends snd_hda_intel
reyansh@acer:~/Documents/Keys$ modprobe --show-depends snd_hda_intel
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soundcore.ko
install /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
insmod /lib/modules/5.4.0-42-generic/kernel/sound/core/snd-timer.ko
install /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
insmod /lib/modules/5.4.0-42-generic/kernel/sound/core/snd-hwdep.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/hda/snd-hda-core.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/pci/hda/snd-hda-codec.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/hda/snd-intel-dspcfg.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/pci/hda/snd-hda-intel.ko model=auto dmic_detect=0 patch=hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw
输出modprobe --show-depends snd_sof_pci
reyansh@acer:~/Documents/Keys$ modprobe --show-depends snd_sof_pci
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soundcore.ko
install /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
insmod /lib/modules/5.4.0-42-generic/kernel/sound/core/snd-timer.ko
install /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
insmod /lib/modules/5.4.0-42-generic/kernel/sound/core/snd-pcm-dmaengine.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/ac97_bus.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/core/snd-compress.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/snd-soc-core.ko
insmod /lib/modules/5.4.0-42-generic/kernel/drivers/leds/trigger/ledtrig-audio.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/core/snd-hwdep.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/hda/snd-hda-core.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/pci/hda/snd-hda-codec.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/hda/snd-intel-dspcfg.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/snd-soc-acpi.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/intel/common/snd-soc-acpi-intel-match.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/hda/ext/snd-hda-ext-core.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/sof/xtensa/snd-sof-xtensa-dsp.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/sof/snd-sof.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/sof/intel/snd-sof-intel-ipc.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/sof/intel/snd-sof-intel-byt.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/sof/intel/snd-sof-intel-hda.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/codecs/snd-soc-hdac-hda.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/sof/intel/snd-sof-intel-hda-common.ko
insmod /lib/modules/5.4.0-42-generic/kernel/sound/soc/sof/snd-sof-pci.ko
输出journalctl -b -k -p3
-- Logs begin at Wed 2020-04-01 22:53:42 IST, end at Tue 2020-08-04 12:10:16 IST. --
Aug 04 06:44:01 acer kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.DGPV], AE_NOT_FOUND (20190816/psargs-330)
Aug 04 06:44:01 acer kernel: ACPI Error: Aborting method \_SB.PCI0.RP05.PCRP._ON due to previous error (AE_NOT_FOUND) (20190816/psparse-529)
Aug 04 06:44:01 acer kernel: Initramfs unpacking failed: Decoding failed
Aug 04 12:03:52 acer kernel: snd_hda_codec_generic hdaudioC0D0: The codec is being used, can't reconfigure.
Aug 04 12:04:29 acer kernel: snd_hda_codec_generic hdaudioC0D0: The codec is being used, can't reconfigure.
Aug 04 12:07:04 acer kernel: snd_hda_codec_generic hdaudioC0D0: The codec is being used, can't reconfigure.
Aug 04 12:07:10 acer kernel: snd_hda_codec_generic hdaudioC0D0: The codec is being used, can't reconfigure.
pavucontrol 中的输出设备 pavucontrol 中的输入设备 当未插入带麦克风的耳机时的 AlsaMixer 配置。
答案1
答案2
不是你的问题,但类似。就我的情况而言,笔记本电脑 Toshiba Satellite L840,在我意外将耳机插入麦克风端口后,内置麦克风停止工作。无法确切地说出哪个步骤解决了问题,但下面就是解决办法。
- 安装 pavucontrol 并重新启动。(无效)
sudo alsactl -F restore
然后打开 pavucontrol,将声音配置文件更改为另一个,再改回来,然后重新启动。(没有用)- 将耳机插入麦克风端口并在连接的情况下重新启动,现在它至少检测到一个“有线麦克风”,断开连接,将配置文件更改为“双工内部音频”,就这样。
希望它能帮助别人...问候
答案3
我遇到了一个相反的问题,即 PC 机箱内置的麦克风可以工作,但当我插入 3.5 毫米耳机时,只能检测到耳机输出,而无法检测到耳机麦克风。
比较你的最后几行etc/modprobe.d/alsa-base.conf
,你的最后一行与我的不一样。我的也是设备,snd_hda_intel
但没有这一dmic_detect
行,而是有model=
一行未注释,如下所示:
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2
# Shows multi-selection dialog. I added this to fix my headphone jack microphone issue
options snd-hda-intel model=dell-headset-multi
您可以尝试各种选项model=
,例如auto
或,dell-headset-multi
看看是否能解决您的问题。更改之间可能需要重新启动。
在我的 PC 上,将选项设置为dell-headset-multi
(顺便说一下,不仅适用于戴尔 PC,我的不是戴尔的),它会在音频设置中添加一个对话框弹出窗口或附加组合框(取决于您的桌面环境如何处理它)允许您根据插入的内容选择麦克风/耳机。
如果您将其设置为,auto
理论上当您插入时它应该自动选择耳机,然后在您拔出时恢复到内置麦克风,所以也尝试一下看看。
答案4
由于缺少驱动程序 - 您可以尝试以下操作:
sudo apt-get 安装 rhythmbox clementine
或者
sudo apt-get install --reinstall rhythmbox clementine
如果此操作(重新启动后)没有帮助,您可以尝试安装这些程序,如下所述(因为有附加驱动程序):
https://www.ubuntupit.com/20-best-music-making-mixing-and-dj-software-for-linux/