lidel / linux-on-huawei-matebook-x-2017

Brain dump: Huawei MateBook X running Debian Linux
75 stars 3 forks source link

Hotkeys not working #4

Open cytrinox opened 6 years ago

cytrinox commented 6 years ago

Hotkeys are all reported with value 0x80:

# acpi_listen 
 59142400-C6A3-40� 00000080 00000000
 59142400-C6A3-40� 00000080 00000000

Based on a decompiled BMOF, I've found that some GUIDs are matching a Pegatron-ACPI driver on Github by benatto: https://github.com/benatto/pegatron_acpi but this module won't work on my Matebook X (the WMI Init method fails).

I've started a simple ACPI/WMI kernel module from scratch, porting some of the Pegatron driver parts and trying to figure out how the whole stuff works. So far, I was not able to get any hotkey working. But I'm open this issue to keep track of the work and maybe someone who is more familiar with ACPI could have a look. If I get more feedback from benatto, I will continue on the module source.

Github project for the module, including BMOF & DSDT: https://github.com/cytrinox/matebook-hotkeys

lhuang15 commented 6 years ago

Thank you so much for the tutorial. I don't expect the goodix fingerprint sensor to work anytime soon as well, cuz I didn't get any response from the company on Linux driver issue. But I did think the keyboard would work perfectly like some of dell's laptop running Ubuntu.Will keep looking. THX

janbaer commented 6 years ago

I just tried it yesterday with the latest version of Linux Mint which is based on Ubuntu 18.04 but none of the function keys was working in the expected way.

breznak commented 6 years ago

For anyone still watching this issue, can you please follow these and report to upstream kernel? https://wiki.ubuntu.com/Kernel/Debugging/Backlight seems it's kernel driver/ACPI issue.

The text is focused on brightness, but I believe debugging the Fn+ keys for brightness, then other would be easy too.

This issue is still relevant with the 2018 HW refresh version of Matebook X Pro. Thank you!

aymanbagabas commented 6 years ago

Hey, I'm working on a kernel module for Huawei MBX and MBXP. Right now, I got the MBXP to work just fine. I need someone with a MBX to test the module. If anyone is interested please let me know. Huawei-WMI

alexte commented 6 years ago

@breznak perhaps I missunderstand your issue. but I had no issues on Mate Book Pro X

I run debian 9.5 on a matebook x pro and the fn keys mute vol+ vol- bright+ bright- are actually recognized correctly in X11, and I use this .xbindkeysrc file to make them work correctly:

"xbacklight -steps 1 -dec 10"
    XF86MonBrightnessDown

"xbacklight -steps 1 -inc 10"
    XF86MonBrightnessUp

"amixer -q set Speaker Playback Volume toggle"
    XF86AudioMute

"amixer -q set Speaker Playback Volume 1db+"
    XF86AudioRaiseVolume

"amixer -q set Speaker Playback Volume 1db-"
    XF86AudioLowerVolume