From b3a62245f503a5b87046227e12d2c66f6a2defeb Mon Sep 17 00:00:00 2001 From: Iqbal Attila Date: Thu, 7 May 2026 16:51:27 +0700 Subject: [PATCH] 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 --- install/config/all.sh | 2 ++ .../hardware/lenovo/fix-yoga-pro7-bass-speakers.sh | 10 ++++++++++ migrations/1778001804.sh | 3 +++ 3 files changed, 15 insertions(+) create mode 100644 install/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh create mode 100755 migrations/1778001804.sh diff --git a/install/config/all.sh b/install/config/all.sh index 1656a2d5..a7b28c02 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -64,6 +64,8 @@ run_logged $OMARCHY_INSTALL/config/hardware/apple/fix-spi-keyboard.sh run_logged $OMARCHY_INSTALL/config/hardware/apple/fix-suspend-nvme.sh run_logged $OMARCHY_INSTALL/config/hardware/apple/fix-t2.sh +run_logged $OMARCHY_INSTALL/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh + run_logged $OMARCHY_INSTALL/config/hardware/fix-bcm43xx.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-surface-keyboard.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-yt6801-ethernet-adapter.sh diff --git a/install/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh b/install/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh new file mode 100644 index 00000000..4459f0ae --- /dev/null +++ b/install/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh @@ -0,0 +1,10 @@ +# 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 diff --git a/migrations/1778001804.sh b/migrations/1778001804.sh new file mode 100755 index 00000000..38413d36 --- /dev/null +++ b/migrations/1778001804.sh @@ -0,0 +1,3 @@ +echo "Fix bass speakers on Lenovo Yoga Pro 7 14IAH10" + +source "$OMARCHY_PATH/install/config/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh"