clevo-xsm-wmi
clevo-xsm-wmi copied to clipboard
Trying to get work clevo-keyboard working on XMG 17-Pro Notebook?
I'm trying to get this work on XMG 17-Pro Notebook (https://bestware.com/en/xmg-pro-17.html) which also has Clevo Keyboard with colored-LEDs and so on. I think it's the same than yours and the one build into Tuxedo-Notebooks.
I already tried tuxedo-driver, which was unable to detect my keyboard to get the module work. I already tried to figure out which device matches:
With: grep -i 'Clevo' -A4 /proc/bus/input/devices | grep -E '/input[0-9]*$'
I'll was able to figure out the following:
N: Name="Clevo Airplane-Mode Hotkey"
P: Phys=tuxedo_wmi/input0
S: Sysfs=/devices/platform/tuxedo_wmi/input/input14
Your Clevo-Device appears to be on: /input14
Looks like my notebook has this device on /input14, so I've tried to modify & recompile your provided clevo-xsm-wmi.c with that.
But still modprobe complains: modprobe: ERROR: could not insert 'clevo_xsm_wmi': No such device Error initializing device!
Do you have any advice how I could fix that modifying the driver source?
Thanks in advice
By the way... the dmesg after modprobe says:
97835.611154] clevo_xsm_wmi: Could not register WMI notify handler (0x0015)
[97835.611158] clevo_xsm_wmi: probe of clevo_xsm_wmi failed with error -5
Okay... I think I've figured out... https://github.com/rafaelgieschke/clevo-xsm-wmi/blob/3d83230a2fd785fd2f0087e50d9cfae84d310e60/module/clevo-xsm-wmi.c#L1469
one of the devices listed must match these values: sudo dmidecode | grep -E 'Product (Model|Name)'