-
-
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
[KPL-W0X] micmute LED doesn't activate automatically #20
Comments
What kernel you running? Are you running the driver from this repo or the one that comes with kernel 5.0? This might be related to this commit which got merged in stable not sure about Ubuntu 19.04. |
Kernel: 5.0.0-25-generic |
I've just looked at the commit thread you linked, but not sure if it's fully related (don't really understand enough of it). But I know the fn-keys, special keys, charge threshold, micmute LED (when setting manually) all work perfectly for me. But if you think it will be fixed in the next kernel of course I'd be happy to wait and report back! |
Yes, but the one comes with the kernel is old that's why. I'm working on submitting the new updates. If the LED works by setting it manually, it means the kernel didn't link the led with the sound subsystem. Kernel 5.2 fixes that using the mentioned patch which should detect all Huawei laptops instead of only MACH-WX9, which is what I have, and MatebookX the original one from 2017. Try installing kernel 5.2 and let me know what happens. The easiest way to install kernel 5.2 is through Ukuu in Ubuntu though I'd use that for testing only and then remove it. |
I've spent a while trying to install Ukuu without success, so I think I will probably leave it and just wait until the next kernel is officially upgraded, since I feel like it's reaching much beyond my current knowledge. Sorry that I wasn't able to help test it out more! |
I'm sorry I should've given you instructions on what to do my apologies. Follow this to install Ukuu. You would do
to install add Ukuu repository, refresh apt, and install Ukuu.
If you don't want to do any of that you can close the issue and ignore all of the above lol. |
Hi, many many thanks again for your time! And no it's definitely my own responsibility to not require you to guide me step-by-step! |
Hmm, I didn't know that see I use Fedora 😄 which is what I call it semi-cutting-edge when it comes to updates. As of today, Fedora 30 comes with kernel 5.2.9. The current stable version is 5.2.11. I did some googling and I found this article. It turns out Ubuntu provides latest testing mainline kernel builds hosted on https://kernel.ubuntu.com/~kernel-ppa/mainline/ . You could follow that article but use a more recent version maybe 5.2.11 the current stable one. Or you could try a bootable distro with 5.2 installed and then try the driver out. |
Hi again, I'm now on "5.2.11-050211-generic" and everything is the same, i.e. huawei-wmi directory existed and all the functions seemed to be behaving the same way. So the micmute LED is still not triggering automatically (I can still change it directly by editing the value of /sys/devices/platform/huawei-wmi/leds/platform::micmute/brightness). |
What's your model codename/product name? Is it |
yes it is KPL-W0X dmidecode
|
And yes I remember reading through that thread a while back, it seemed quite relevant but I wasn't really able to follow at all (disabling SElinux? etc.). |
You could try disabling SElinux but I don't see that it would affect this issue. What DE are you using? GNOME, KDE, etc. Does muting the mic from has any effect? Could you provide Since the led works manually, then the issue wouldn't be related to the driver. I'm trying to think of anything that would affect this other than the driver and the sound driver issue (that should be included in 5.2) is the only thing comes to my mind. |
Hi I'm just using everything default from Ubuntu at the moment thankfully (so I think it's just Gnome?). Muting the mic via the function keys I see that it mutes the mic from settings->sound, and it also shows the 'mic muted/mic activaed' icon in the center of the screen (like when u change volume/screen brightness) when you use the hotkey. hdaudio*/* (I had 2 folders, hdaudioC0D0 and hdaudioC1D0) 0x1002aa01 0x10ec0256 micmute/trigger: |
Hi @wrtiap, I see from your dmesg log that you're using kernel 5.0.0-25-generic. Once you install 5.2.11 and update GRUB, you should see a new option in GRUB to boot with the newer one. If you have GRUB hidden, you could get it to show menu by holding ESC key while booting. Let me know if it still doesn't work because I'm working on submitting a newer version to the kernel and a broken driver is not good. Thank you and I appreciate you doing this. |
Oh yes sorry I didn't mention. After I tested the newer kernel I immediately removed it back again and used the older one again. I'll re-upload all the logs again in 5.2.11 below |
sudo dmidecode dmseg: dmidecode
dmesg > dmesg.txt: cat /sys/bus/hdaudio/devices/hdaudio*/*:
cat /sys/devices/platform/huawei-wmi/leds/platform::micmute/trigger:
|
Once again I am very happy to be able to help in any way, and I should be the one thanking you! |
I'd be happy to help with the speakers issue but once we get this out of way. Try following the guide since it wouldn't affect what we're doing here. I see that the driver's LED has the correct trigger Disable selinux and apparmor:
Change Install the updated driver:
Now, reboot, choose 5.2.11 and see if the LED works as expected. Report back with a |
The only file in /etc/selinux/ for me is semanage.conf, which doesn't seem to be the right thing. |
Nothing seems to have changed so far (didn't/couldn't do the selinux disabling step) |
Try |
The command is not found. Did I not even install Linux on my computer properly lol? |
Nah I think recent Ubuntu versions don't come with SELinux, they use AppArmor instead. TBH, at this point, I can't think of anything that would cause such behavior but I can assure you it's not the driver. It has to do with the sound drivers because activating the LED manually works as you said but not using ALSA. Maybe @wasakakero can help? |
Let's try this. So basically, we're going to patch the sound driver for realtek
Now, reboot and test the LED using a GUI/ALSA/Pulseaudio so muting the mic from a GUI should turn on the LED. Make sure you're running the latest driver from Also could you provide |
Sorry if it's a stupid question, but I got stuck on line 3: |
Download the attached file and have it in the same directory. |
oh my god sorry! That was really stupid. |
Don't be
Just do |
Thanks again. Just to make a note, I had to install bison as well after that. But now I got another error for the same line. Something about openssl, but this time openssl is/was already installed: No change to .configHOSTCC scripts/sign-file |
|
alsa-info.txt |
Thank you! If you look at line 665 and 984 you will see that LED is enabled/seen by ALSA. If #7 got it working, then comparing your You can follow this if you wanna update BIOS from Linux.
Yes, that's what I meant. The function key doesn't turn on LED, ALSA does, so when you press that key, it mutes the mic and then ALSA should call the function from the driver to turn the LED on/off. Same function when you do it manually from |
alsa-info.txt |
Assuming the driver works by writing "1" or "0" into huawei-wmi/leds/platform::micmute/brightness when triggered, is there a way to track how it does so or see if it made an attempt to do so? |
Look at L250 and L298. First one is the function that gets called when setting If you wanna know or track if you made an attempt to change the LED you can apply this patch, recompile, |
Ok I found the issue (it was on my side sorry)! |
All good. I don't know what is "echo cancelled" but the trigger is hooked to the Realtek sound driver so it should also work if you were using an external microphone connected through the microphone jack. If this "echo cancelled" mutes the actual mic, I don't see why it wouldn't work. Anyway, thank you for your great work! I'll be closing this one. |
Everything else works absolutely perfectly for my Matebook 14D AMD. But the micmute LED does not know to turn itself on when mic is muted. If I go and directly change the value of the LED file from 0 to 1, that will turn on the micmute LED though.
Using Ubuntu 19.04
The text was updated successfully, but these errors were encountered: