smoren / huawei-ubuntu-sound-fix Goto Github PK
View Code? Open in Web Editor NEWFix for sound card behavior on Huawei Matebook s14 / s16 on Ubuntu 22.04 / Fedora / Arch
Fix for sound card behavior on Huawei Matebook s14 / s16 on Ubuntu 22.04 / Fedora / Arch
MateBook 14s (2021), Fedora 39 - Gnome 45
Hi guys,
everything is working correctly, but i have noticed high battery consumption and a buzzing noise coming from the speakers when in balanced or performance mode from Gnome settings.
I tried changing the sleep time from 0.3 to 2 seconds, and the buzzing noise seems to change.
Any ideas? Thanks!
If a USB-C headset is connected, it is not auto-detected as it happens with the 3.5mm Jack or any Bluetooth headset, could it have something to do with the specific audio DAC?
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 Guys,
i have a Matebook d16 with an i7-12700H. I'm running arch linux but i can't use my headphones.
The first thing i recognized is, that i don't have the control 'Headphone' under alsa. The next thing (maybe not really a problem, because i don't have it under alsa) i although don't have sink-port called headphones under pulseaudio.
Currently i'm a little bit lost. I don't where to hack more....
I anyone give me a hint where to look. It seems my be my installation or my matebook is a little bit differnt.
Thanks!
Hi
This fix is works on Fedora 39 for MateBook 14s
I think the following features will be useful for some users:
dnf
package managerHi I am new to linux, I tried to install Ubuntu 22 distro and I have exactly the problem you described,
I tried your solution (after a lot of other commands, too many to remember) but nothing seems to have changed. :(
In some standard installation of linux distros, PipeWire is installed to handle computer sound. However, PipeWire sound card is identified as the default device for amixer, that blocks this sound fix from functioning well since amixer get Headphone | grep -q "off"
command only do things on the default device. Under this circumstance, if you run huawei-soundcard-headphones-monitor.sh in terminal, info "amixer : Host is down" occurs.
To avoid this, you could get the ID of your actual sound device with alsamixer
, and then press F6 button to open sound card menu to see the number. In my case below, 0 is the real sound device.
And you shall edit the huawei-soundcard-headphones-monitor.sh. In line 48, replace amixer
with, in my case, amixer -c 0
, the number should be the same as the ID we got before.
Then install the sound fix and check if it works.
It works on my device MACHD-WXX9/MACHD-WFE9Q aka Matebook X Pro 2021.
more kernel and hardware info:
Host: MatebookLinuX Kernel: 6.6.10-1-MANJARO arch: x86_64 bits: 64
Desktop: GNOME v: 45.3 Distro: Manjaro Linux
Machine:
Type: Laptop System: HUAWEI product: MACHD-WXX9 v: M1160
serial:
Mobo: HUAWEI model: MACHD-WXX9-PCB-B1 v: M1160
serial: UEFI: HUAWEI v: 2.38 date: 05/29/2023
Also, since it is a default sound card problem, I think a more simple solution exits definitely. Please let me know if you have any ideas about it.
Source: https://askubuntu.com/a/1499532
I use fresh Manjaro, by default uses pipewire.
But this fix doesn't work. Do you have any tricks to make it work?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.