Comment 295 for bug 1958019

Revision history for this message
In , cam (cam-linux-kernel-bugs) wrote :

Created attachment 297597
legion-alc287-0.0.4.patch - snd-hda patch

This is _NOT_ a kernel patch. It's a patch file for snd-hda, and therefore is much easier to try.

*face palm*

I forgot this could be done. This effectively does the same thing as the kernel patch... Except without having to patch, recompile, etc the kernel.

This works for me on the 5.11.0-22-generic vendor kernel for *buntu 21.04 on my 2020 Lenovo Legion. Here's how to utilize it:

1. Download the "legion-alc287-0.0.4.patch" from this bug.

2. Copy it to /lib/firmware/legion-alc287-0.0.4.patch

3. Create/open "/etc/modprobe.d/lenovo-fix.conf" in your favorite text editor. Ie, "sudo nano -w /etc/modprobe.d/lenovo-fix.conf"

4. Set the contents of "/etc/modprobe.d/lenovo-fix.conf" to be following then save and exit:
# Patch file to enable output on speakers.
options snd-hda-intel patch=legion-alc287-0.0.4.patch

5. Reboot

6. Test your sound and report back here with your results.

This patch file should work as well as applying verbs-working.txt or using the kernel patch (provided your model is supported by the patch).

Some more info on snd-hda patch files can be found here for those wanting to experiment:
https://www.kernel.org/doc/html/latest/sound/hd-audio/notes.html