Files
arthur-os/install/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh
T
b3a62245f5 Add bass speaker fix for Lenovo Yoga Pro 7 14IAH10 (#5597)
* Add bass speaker fix for Lenovo Yoga Pro 7 14IAH10

The ALC287 codec on Yoga Pro 7 14IAH10 requires the alc287-yoga9-bass-spk-pin
quirk to properly route audio to both amplifier speakers. Without this fix,
only one speaker works and bass output is missing.

This adds:
- Hardware detection script (omarchy-hw-lenovo-yoga-pro7-bass)
- Audio fix that creates /etc/modprobe.d/lenovo-yoga-pro7-bass.conf

Tested on Lenovo Yoga Pro 7 14IAH10 (Intel Core Ultra 9 285H).
Reference: https://wiki.archlinux.org/title/Lenovo_Yoga_9i_2022_(14AiPI7)

* Add Lenovo Yoga Pro 7 bass fix to install flow

Addresses review feedback: the hardware fix script was not invoked
during installation. Add it to install/config/all.sh so it runs
automatically on matching hardware.

* Fix implementation

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
2026-05-07 11:51:27 +02:00

11 lines
459 B
Bash

# Fix bass speakers on Lenovo Yoga Pro 7 14IAH10
# The ALC287 codec needs a pin quirk to route audio to both AMP speakers.
# Without this quirk, only one speaker works and bass output is missing.
# Reference: https://wiki.archlinux.org/title/Lenovo_Yoga_9i_2022_(14AiPI7)
if omarchy-hw-match "Yoga Pro 7 14IAH10"; then
sudo tee /etc/modprobe.d/lenovo-yoga-pro7-bass.conf <<'EOF'
options snd-sof-intel-hda-generic hda_model=alc287-yoga9-bass-spk-pin
EOF
fi