sash17
(Alex Alex)
August 16, 2023, 6:52pm
1
I’v got a new LG Gram 2023 and would like to use it with my favorite Linux Fedora 38. There is an issues that sound card is working only via headphones, HDMI and Bluetooth but not via internal speakers. I did some research and have seen that this issue still exists and a some people even give up selling this perfect laptop.
I also found that this issue was fixed in clearlinux:
opened 03:01AM - 12 Jul 23 UTC
closed 08:53PM - 14 Jul 23 UTC
bug
new
New computer (LG Gram 2023), fresh CL install, everything default. No Audio (see… screenshot below). Here are some diagnostic commands:
- `pacmd ` returns this;
```
dad@DadsGram~ $ pacmd list-sinks
1 sink(s) available.
* index: 0
name: <auto_null>
driver: <module-null-sink.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause: (none)
priority: 1000
volume: front-left: 43434 / 66% / -10.72 dB, front-right: 43434 / 66% / -10.72 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: yes
current latency: 1.40 ms
max request: 6 KiB
max rewind: 6 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 1
configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
module: 14
properties:
device.description = "Dummy Output"
device.class = "abstract"
device.icon_name = "audio-card"
```
- `lspci -nnk | grep -A2 Audio` returns nothing;
- `aplay -l` also returns nothing:
```
dad@DadsGram~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
```
- `lspci -nnk` returns this:
```
dad@DadsGram~ $ lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:a707]
Subsystem: LG Electronics, Inc. Device [1854:0513]
00:02.0 VGA compatible controller [0300]: Intel Corporation Raptor Lake-P [Iris Xe Graphics] [8086:a7a0] (rev 04)
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Device [8086:a71d]
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: proc_thermal_pci
Kernel modules: processor_thermal_device_pci
00:06.0 PCI bridge [0604]: Intel Corporation Device [8086:a74d]
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: pcieport
00:07.0 PCI bridge [0604]: Intel Corporation Device [8086:a72f]
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: pcieport
00:07.3 PCI bridge [0604]: Intel Corporation Device [8086:a71f]
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: pcieport
00:08.0 System peripheral [0880]: Intel Corporation GNA Scoring Accelerator module [8086:a74f]
Subsystem: LG Electronics, Inc. Device [1854:0513]
00:0a.0 Signal processing controller [1180]: Intel Corporation Device [8086:a77d] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: intel_vsec
Kernel modules: intel_vsec
00:0d.0 USB controller [0c03]: Intel Corporation Device [8086:a71e]
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: xhci_hcd
00:0d.3 USB controller [0c03]: Intel Corporation Device [8086:a76d]
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt
00:14.0 USB controller [0c03]: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller [8086:51ed] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: xhci_hcd
00:14.2 RAM memory [0500]: Intel Corporation Alder Lake PCH Shared SRAM [8086:51ef] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:0513]
00:14.3 Network controller [0280]: Intel Corporation Device [8086:51f1] (rev 01)
Subsystem: Intel Corporation Device [8086:0094]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
00:15.0 Serial bus controller [0c80]: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 [8086:51e8] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:15.1 Serial bus controller [0c80]: Intel Corporation Alder Lake PCH Serial IO I2C Controller #1 [8086:51e9] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.0 Communication controller [0780]: Intel Corporation Alder Lake PCH HECI Controller [8086:51e0] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:519d] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:0513]
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Device [8086:51ca] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: sof-audio-pci-intel-tgl
Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
00:1f.4 SMBus [0c05]: Intel Corporation Alder Lake PCH-P SMBus Host Controller [8086:51a3] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:0513]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Alder Lake-P PCH SPI Controller [8086:51a4] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:0513]
01:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller PM9B1 [144d:a80b] (rev 02)
Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller PM9B1 [144d:a80b]
Kernel driver in use: nvme
```
What could be the cause of this? Any opinions? Is this a case of missing drivers?

They installed a new sof-bin v2.2.6
If I understand it correct it is alsa-sof-firmware that need to be updated. I installed v2.2.6 from rawhide repository:
sudo dnf install fedora-repos-rawhide -y
sudo dnf --disablerepo=* --enablerepo=rawhide update alsa-sof-firmware
The new alsa-sof-firmware v2.2.6 is there:
sudo dnf list alsa-sof-firmware
Installed Packages
alsa-sof-firmware.noarch 2.2.6-1.fc40 @rawhide
sof-audio-pci-intel-tgl driver is used
lspci -nnk | grep -A2 audio
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Device [8086:51ca] (rev 01)
Subsystem: LG Electronics, Inc. Device [1854:048a]
Kernel driver in use: sof-audio-pci-intel-tgl
Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
00:1f.4 SMBus [0c05]: Intel Corporation Alder Lake PCH-P SMBus Host Controller [8086:51a3] (rev 01)
But there is still no sound from internal speakers. How can I fix this issue?
frankk
(Frank Kelbe)
September 6, 2023, 8:36pm
2
I tried alsa-sof-firmware-2.2.6-1 but it did nothing. However… I found a post by a Galaxy Book Pro user that had used the method of running Windows in a QEMU VM and capturing the verbs. He then created a script (necessary-verbs.sh) with most likely a lot more than is needed, but - it worked! I finally got my 2023 Gram 16" (16Z90R-A) to produce sound through the speakers.
I haven’t tested many scenarios other than system sounds work as well as running some multimedia apps. (script is run at startup via systemd unit file).
[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
2 Likes
This looks like something others may find of use.
Would you please post the content of the /usr/local/sbin/necessary-verbs.sh file so others having similar issues may find the assistance as well. Linking the source where you found that fix would be useful as well.
frankk
(Frank Kelbe)
September 8, 2023, 12:12am
4
Sorry for the reply vs edit, but I am a level nothing so I can’t edit my own post after a day.
As suggested, the source of the fix is here . I don’t see a way to upload the actual script file and I don’t want to post it because it’s 3870 lines long - sorry - it’s very prominent at the linked site.
2 Likes
Thanks for the link. Others may find it useful as we have seen several posts concerning audio issues and speakers not working recently.
Please mark the post that shows the answer as the solution if you wish.
sash17
(Alex Alex)
September 17, 2023, 11:33am
6
Thanks a lot!
The only problem I noticed is that the balance is about 20% more on the right side and needs to be rebalanced manually.