-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huawei MateBook D16 microphone led does not work #53
Comments
Now I tried to install version 3.4 using dkms autoinstall, but it didn't change anything |
Also I updated the BIOS to the latest version and it didn't help. I attach dumps after manipulations |
I have the same problem on the same device. |
@EnginAcikgoz hello, look battery issue here #52 |
Does the led light up when you do echo 1 | sudo tee /sys/devices/platform/huawei-wmi/leds/platform::micmute/brightness |
yes, the code is working and led light up. |
@EnginAcikgoz this means there is nothing wrong with The way this works is, when you press the key, the driver fires an event with the code |
@aymanbagabas Thanks for answer
LED lights up
I use Gnome 3.36.9 and xorg-server 2:1.20.11-1ubuntu1~20.04.2. Could you tell us how to find clues why this does not work on our hardware? |
@m1khal3v could you upload the output of |
@aymanbagabas http://alsa-project.org/db/?f=bdffc32fb0826fbe78792752b0fade8b4c4a43f7 |
k now I see the problem. It seems like new Huawei devices have a different subsystem id compared to the old ones. Linux-Hardware.org shows devices with this subsystem vendor id
Related: #39 |
@aymanbagabas try to hook fn+f7
|
@m1khal3v could you please try this module and see if the led work unzip snd-hda-codec-realtek.zip
sudo cp snd-hda-codec-realtek.ko /lib/modules/`uname -r`/updates
sudo depmod -a
sudo reboot |
I tried it in manjaro KDE environment and it didn't work.
|
@enginacikgoz did the module load |
"dmesg | grep realtek" output:
I can turn the microphone off and on without any problems via ctrl + f7 or the system settings, but in both cases the microphone light does not turn on. |
seems like because of the kernel version differences it is not letting you load the module. could you try |
also try after copying the new module to
|
does |
No, returns 5.13 |
k, this is how you'd build the module yourself
if everything goes well, |
These are a bit complicated for me. I will try it as soon as possible though. Thank you. =) |
it really isn't tbh, i just need to verify it works before I can submit the patch to the mailing list. here, try this git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd linux
git checkout v5.13 # or whatever matches your kernel
wget https://github.com/aymanbagabas/Huawei-WMI/files/7326045/0001-ALSA-hda-realtek-New-Huawei-vendor-ID.patch.txt
git am < 0001-ALSA-hda-realtek-New-Huawei-vendor-ID.patch.txt
cp /boot/config-`uname -r` .config
cp /usr/src/linux-headers-`uname -r`/Module.symvers .
make oldconfig # accept all default values if any (press enter)
make scripts prepare modules_prepare
make -C . M=sound/pci/hda if everything goes well, you should get a patched you could also copy the patched module to |
Thank you, I'm trying right now. I will post the result |
Sir,
|
hmm, try |
Oh, my fault... i built for kernel 5.13... I will try again. |
I did build for 5.13.19 but still not working.. :( |
I apologize for hijacking this issue, but I haven't been able to get neither speakers nor microphone to work in the Matebook D16 pro, wondering if any of you could point me in the right direction? Again, sorry for hijacking the issue, just couldn't find anything on this problem |
@aymanbagabas Today I noticed that the sound in the right earpiece has disappeared, how can I roll back the changes? UPD: I remove the modified driver and ran sudo depmod -a but it didn't help. After that I tried other headphones and noticed that the balance slider moved all the way to the left. I returned to the center and everything worked as before. Not sure if it has something to do with the driver but suddenly |
0001-ALSA-hda-realtek-New-Huawei-vendor-ID.patch.txt @m1khal3v @enginacikgoz I've changed the name of the entry in the patch, perhaps this makes a difference? Could you try this instead? Just make sure you undo the previous one in the linux tree |
Still not working. But i got extra information. just to be sure i did the steps here from scratch and just changed the patch file
Still not working but
Before doing these operations, I deleted snd-hda-codec-realtek.ko and ran
This is the result after processing
I hope this information was helpful. Thanks for be interested. |
What's the output of |
@enginacikgoz could you also provide your |
cat /sys/bus/hdaudio/devices/hdaudio*/*
And here is |
k, i guess it's clear what the issue now haha. the card uses the |
Sorry for bothering you so much. =') |
Additional info: |
Additional info: |
Okay, I take that back, |
On my Honor Magicbook Pro 2020 i have popup notification, but led don't turn on.
I try |
198 is micmute key
what does it mean? |
i have got same outputs with sermart1234. |
On Huawei Matebook D15 AMD micmute led works
|
@aymanbagabas how i can fix audio-micmute trigger? |
when you press the micmute key, do you get the wmi interface fires a key event when you press a function key. then this gets processed using the micmute key works by mapping |
|
@aymanbagabas
don't work.
|
@sermart1234 good observation. Huawei-WMI driver creates a new keyboard for the hotkeys which are defined in that table, |
@aymanbagabas how do triggers for LEDs work? how can emulate a trigger? Does it depend on the audio driver? should I configure systemd, udev? Or will you just have to write a script for processing the micmute button? |
@sermart1234 AFAICT each trigger is implemented differently in the LED subsystem. if |
@aymanbagabas Should the Realtek driver send events to turn off the LED? or DE? |
Copy 99-Huawei.hwdb to /etc/udev/hwdb.d/ then update the hwdb tables |
Can someone try this patch with the above instructions? Thank you! |
unfortunately it is not working :( I guess matebook D16 doesn't use realtek driver. Someone shared details about D16 |
Hello everybody. Any news here? May i help with something? |
Closing this one as it is related to the AMD sound driver. https://bugzilla.kernel.org/show_bug.cgi?id=215119#c1 |
Huawei D15 2020 internal microphone array not detected |
Describe the bug
LED on the F7(fn+mic) key does not light up when microphone is turned off
Expected behavior
When the microphone is turned off, the LED on the F7(fn+mic) key should light up
Kernel: 5.14.8-051408-generic
Distro: Ubuntu 20.04.3 LTS
Loaded WMI modules:
acpidump.txt | dmidecode.txt | dmesg.txt
The text was updated successfully, but these errors were encountered: