Smoren / huawei-ubuntu-sound-fix

Fix for sound card behavior on Huawei Matebook s14 / s16 on Ubuntu 22.04 / Fedora / Arch
140 stars 24 forks source link

Throbleshooting on Arch (USB snd and del pacmd) #17

Open tetrois opened 2 months ago

tetrois commented 2 months ago

Hello, I would like to suggest adding the following:

  1. I have a USB microphone connected to my laptop. In some cases, the device identifier in the system changes from 0, which breaks the script (I mean that the path to the device changes, for example, from /dev/snd/hwC0D0 to hwC0D1).

Suggestion how to fix: Hardcode the sound card index in: /etc/modprobe.p/sound.conf add:

options snd_hda_intel index=0
options snd_usb_audio index=1 #(optional)

and reboot

  1. I discovered that in kernel 6.9.5 (maybe in earlier ones) the auto detection of connected headphones or speaker was fixed (Only what pacmd does is fixed). And using pacmd in https://github.com/Smoren/huawei-ubuntu-sound-fix/blob/df9791984f67436c1c82cabeeaf87af8e5e0e751/huawei-soundcard-headphones-monitor.sh#L61 is no longer required.