我刚刚安装了 Ubuntu 18.04,但我的耳机根本不起作用。
我的声卡是 Realtek ALC668
驱动程序:高级 Linux 声音架构驱动程序版本 k4.15.0-23-generic。
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-H HD Audio [8086:a170] (rev 31)
Subsystem: ASUSTeK Computer Inc. Sunrise Point-H HD Audio [1043:158f]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
最初我遇到了另一个问题 - 扬声器有声音,但音量始终处于最大水平(更改搜索栏没有任何作用),我通过重新安装解决了这个问题,alsa
但耳机仍然无法工作。
lspci
输出:
00:00.0 Host bridge: Intel Corporation Skylake Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-H Serial IO I2C Controller #0 (rev 31)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-H Serial IO I2C Controller #1 (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #3 (rev f1)
00:1c.3 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #4 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
03:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
dmesg | grep audio
[ 4.758469] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 4.809446] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC668: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 4.809449] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 4.809451] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[ 4.809452] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 4.809453] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 4.809455] snd_hda_codec_realtek hdaudioC0D0: Mic=0x12
dmesg | grep realtek
[ 4.809446] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC668: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 4.809449] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 4.809451] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[ 4.809452] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 4.809453] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 4.809455] snd_hda_codec_realtek hdaudioC0D0: Mic=0x12
答案1
我解决了这个问题:
检查 Pulseaudio 音量控制中的设备配置
pavucontrol -t 5
如果你不使用内置输入设备,将其从双工到输出
还可以将任何网络摄像头/麦克风更改为输入仅减少播放设备。
也许你会发现 nvidia 卡被检测到,但设置为离开。
对于插入 USB 麦克风时的输出切换,请检查加载了哪些 Pulseaudio 模块:
pactl list short modules
可能会module-switch-on-connect
在 18.04 上映。
答案2
打开设置然后点击左侧声音。
在底部选择配置文件,然后尝试其他配置文件。单击“测试扬声器”以测试您的配置文件。