DPM wrote: ⤴Thu Jun 10, 2021 8:06 am
@DPM
Greetings DPM,
I have seen that you have improved the Clevo keyboard color driver in this post
viewtopic.php?p=2018865#p2018865 adding my laptop as well.
Code: Select all
{
.ident = "Clevo AORUS 7 KB",
.matches = {
DMI_MATCH(DMI_PRODUCT_NAME, "AORUS 7 KB"),
},
.callback = clevo_xsm_dmi_matched,
.driver_data = &kb_full_color_ops,
},
And if it works better than it does from the original source
https://bitbucket.org/tuxedocomputers/c ... rc/master/
Code: Select all
jeronimo17@jeronimo17-GIGABYTE-AORUS-7-KB ~ $ dmesg | grep clevo
[ 4.748962] clevo_xsm_wmi: loading out-of-tree module taints kernel.
[ 4.748990] clevo_xsm_wmi: module verification failed: signature and/or required key missing - tainting kernel
[ 4.749234] clevo_xsm_wmi: Model Clevo AORUS 7 KB found
[ 4.773334] input: Clevo Airplane-Mode Hotkey as /devices/platform/clevo_xsm_wmi/input/input18
[ 4.774085] clevo_xsm_wmi: Polling thread started (PID: 454), polling at 1 Hz
[ 4.774948] clevo_xsm_wmi clevo_xsm_wmi: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
I have seen that a poll process is created, but it seems that it is only for the airplane mode light? I don't know if this could cause me keyboard lockups very sporadically when gaming, perhaps from long presses of several keys at once...
viewtopic.php?f=49&t=353810
I have reduced the polling to 1 hz
Can this process be removed from the .C file to only use the RGB color change?
It seems that the driver has not been updated for a long time.
Thank you very much
PD:
Another thing that interested me and I have seen that it is easy is to change the color for some script to warn of something.
In
/etc/sudoers
add line:
ALL ALL = (ALL) NOPASSWD: /usr/bin/tee /sys/devices/platform/clevo_xsm_wmi/kb_color
And then change the keyboard colors with this line in the script of your choice
echo white | sudo tee /sys/devices/platform/clevo_xsm_wmi/kb_color
echo blue | sudo tee /sys/devices/platform/clevo_xsm_wmi/kb_color