首先下载内核源码并解压

首先下载内核源码并解压

我买了这台新笔记本电脑,安装了 18.04,但到目前为止,我无法让音频工作(内置/外置扬声器)。卡存在,在音频设置中似乎正常,麦克风工作正常。

0 [PCH]:
HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xec228000 irq 134

在另一个问题中,建议这样做,但对我来说不起作用:

sudo nano /etc/modprobe.d/alsa-base.conf 
add line : options snd-hda-intel model=pch position_fix=1

提前致谢。

答案1

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1784485我终于解决了这个问题。

它需要新的内核和一些手动修补。

首先下载内核源码并解压

wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.12.tar.xz
tar Jxf linux-4.19.12.tar.xz

安装必要的软件包

sudo apt-get install build-essential libncurses-dev bison flex \
             libssl-dev libelf-dev

复制内核配置

cd linux-4.19.12/
cp -v /boot/config-$(uname -r) .config
make defconfig

添加对 UX391UA 的支持

将行添加到文件sound/pci/hda/patch_realtek.c

SND_PCI_QUIRK(0x1043, 0x10a1, "ASUS UX391UA", ALC294_FIXUP_ASUS_SPK)

补丁格式

--- patch_realtek.c.bck 2018-12-21 14:15:25.000000000 +0100
+++ patch_realtek.c 2018-12-30 16:13:23.970326312 +0100
@@ -6584,6 +6584,7 @@
    SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC),
    SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
    SND_PCI_QUIRK(0x1043, 0x14a1, "ASUS UX533FD", ALC294_FIXUP_ASUS_SPK),
+    SND_PCI_QUIRK(0x1043, 0x10a1, "ASUS UX391UA", ALC294_FIXUP_ASUS_SPK),
    SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A),
    SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_FIXUP_STEREO_DMIC),
    SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW),

构建内核

此命令必须在linux源的顶级目录中执行。

make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-custom

安装新内核并重启

cd ..
sudo dpkg -i linux-headers-4.19.12-custom_4.19.12-custom-1_amd64.deb \
             linux-image-4.19.12-custom_4.19.12-custom-1_amd64.deb
reboot

答案2

更舒适的方法是安装Ubuntu 内核更新实用程序(UKUU)并升级到 v5.0-rc1 内核。稳定的 v4.20 不包含针对华硕 UX391UA 的修复,如所述这里

相关内容