LG gram 2023 (i7-1360P) 扬声器没有声音

LG gram 2023 (i7-1360P) 扬声器没有声音

刚买了一台 LG Gram 16Z90R-G.AD78F EVO,这是全新的 Lg Gram,配备了新的 i7-1360P,而不是之前的 i7-1260P(我之前的笔记本电脑,没有声音问题)。

安装 Ubuntu cinnamon 23.04 后,一切都运行良好,除了扬声器发不出任何声音,它在 HDMI 输出或插孔上运行良好,但切换到内置扬声器时不会输出任何声音。

我尝试过网上很多教程,比如这个

$ uname -a 
Linux udol 6.2.0-20-generic #20-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr  6 07:48:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ dmesg | grep sof
[    2.683941] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    2.684125] sof-audio-pci-intel-tgl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    2.684142] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    2.684596] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    4.183953] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    4.266023] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[    4.284380] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5
[    4.284384] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[    4.284387] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[    4.284968] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    4.284970] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[    4.284975] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[    4.397123] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    4.397129] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[    4.402583] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[    4.497861] input: sof-hda-dsp Mic as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input12
[    4.497912] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input13
[    4.497954] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input14
[    4.497993] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input15
[    4.498028] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input16
$ inxi -A 
Audio:
  Device-1: Intel driver: sof-audio-pci-intel-tgl
  Sound API: ALSA v: k6.2.0-20-generic running: yes
  Sound Server-1: PipeWire v: 0.3.65 running: yes

系统信息这里, 和另请参阅

感谢您的帮助

答案1

问题解决了,请看一下:

https://forums.fedoraforum.org/showthread.php?331130-Fixing-ALC298-audio-(扬声器无声音)

该解决方案依赖于执行许多hda-verb(来自alsa-tools)命令来重新配置高清音频编解码器。

sudo apt install -y alsa-tools
wget https://github.com/joshuagrisham/galaxy-book2-pro-linux/raw/main/sound/necessary-verbs.sh

chmod +x necessary-verbs.sh
sudo ./necessary-verbs.sh

如果它对你有用,你可能希望在启动时像这样运行它:

cat <<EOF | sudo tee /etc/systemd/system/audio-fix-alc298.service
[Unit]
Description=Run internal speaker fix script at startup
After=getty.target

[Service]
Type=simple
ExecStart=/usr/local/sbin/necessary-verbs.sh
TimeoutStartSec=0

[Install]
WantedBy=default.target
EOF

笔记:

  • hda-verb 在 Ubuntu 22.04 上至少需要 root 权限
  • 像往常一样,你应该检查不受信任的 shell 脚本

相关内容