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

Ubuntu 23.10 support #3

Closed vimmerru closed 9 months ago

vimmerru commented 10 months ago

Hi, the fix is working for 23.4, but for some reason it can't enable speaker on 23.10. Switching to jack seems works reliable.

KharLexis commented 10 months ago

Hi, the fix is working for 23.4, but for some reason it can't enable speaker on 23.10. Switching to jack seems works reliable.

Hi, I'm having the same problem, have you been able to solve it?

vimmerru commented 10 months ago

Hi, I'm having the same problem, have you been able to solve it?

Unfortunately, not. I found few workarounds that allow me to work efficiently

  1. I bought $8 3.5 to usb-c adapter for my headphones that works well
  2. In rarely cases i need speakers i open alsamixer and unmute headphones channel manually. It gives loud enough and acceptable sound from 2 speakers.
vimmerru commented 10 months ago

@KharLexis seems, i found the issue. On modern distros amixer command always requires the argument. Changing amixer to amixer -c 0 in huawei-soundcard-headphones-monitor.sh solved the problem.

I tested it on Debian 12, but seems it should work on modern Ubuntu too.

Smoren commented 9 months ago

Hi @KharLexis,

Thank you for your issue and your idea to solve it! Can you modify the script with if statetement for Ubuntu version, test it on your distr and open a pull request?

KharLexis commented 9 months ago

Hi @Smoren, i have tested this method, it works! And i opened pull request. @vimmerru Thanks a lot for solution!

Smoren commented 9 months ago

@KharLexis, sorry, I do not see your pull request. Can you check it and send the link here?

KharLexis commented 9 months ago

@KharLexis, sorry, I do not see your pull request. Can you check it and send the link here?

https://github.com/Smoren/huawei-ubuntu-sound-fix/compare/master...KharLexis:KharLexis-patch-1?expand=1

Smoren commented 9 months ago

@KharLexis, PR is merged. https://github.com/Smoren/huawei-ubuntu-sound-fix/pull/5 Please check on your device.

KharLexis commented 9 months ago

Please check on your device.

Disabled and uninstalled the service, deleted directories, rebooted OS, downloaded the package with the changes, installed. Everything works great!

Smoren commented 9 months ago

@KharLexis thank you!

KharLexis commented 9 months ago

@KharLexis thank you!

Your welcome!)