OpenSuse: Help tackling keyboard backlight on Clevo laptop

Chat about Linux in general
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Locked
newo
Level 1
Level 1
Posts: 1
Joined: Thu Jun 10, 2021 6:14 am

OpenSuse: Help tackling keyboard backlight on Clevo laptop

Post by newo »

It doesn't work for me
Here's the output line once I launch the make command

Code: Select all

↪ make
make -C /lib/modules/5.12.9-1-default/build M=/home/newo/.clevo/module modules
make[1]: Entering directory '/usr/lib/modules/5.12.9-1-default/build'
make[1]: *** No rule to make target 'modules'.  Stop.
make[1]: Leaving directory '/usr/lib/modules/5.12.9-1-default/build'
make: *** [Makefile:7: all] Error 2
I'm using OpenSuse and the laptop comes from PCSpecialist which also uses clevo hardware.
Can someone help me pleas?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
karlchen
Level 23
Level 23
Posts: 18222
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: OpenSuse: Help tackling keyboard backlight on Clevo laptop

Post by karlchen »

<mod>
Split off from solved Linux Mint related thread here: viewtopic.php?f=49&t=287190
Reason:
OpenSuse is not Linux Mint. And this is the Linux Mint forum.
The solution from the linked thread does not work. So maybe the same problem is not really the same problem. Who knows?
</mod>
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
DPM
Level 4
Level 4
Posts: 430
Joined: Thu Sep 24, 2020 9:21 am

Re: OpenSuse: Help tackling keyboard backlight on Clevo laptop

Post by DPM »

newo wrote: Thu Jun 10, 2021 6:22 ammake[1]: *** No rule to make target 'modules'. Stop.
Check in your distro's package manager that you have the kernel headers installed - the packages should be linux-headers-xyz matching your installed kernels. build-essential (or comparable) also needs to be installed.
User avatar
Jeronimo17
Level 3
Level 3
Posts: 194
Joined: Fri Jun 08, 2018 6:48 pm

Re: OpenSuse: Help tackling keyboard backlight on Clevo laptop

Post by Jeronimo17 »

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
DPM
Level 4
Level 4
Posts: 430
Joined: Thu Sep 24, 2020 9:21 am

Re: OpenSuse: Help tackling keyboard backlight on Clevo laptop

Post by DPM »

Jeronimo17 wrote: Wed Aug 11, 2021 8:35 amAnd if it works better than it does from the original source https://bitbucket.org/tuxedocomputers/c ... rc/master/
Yes, I added more colours, and I fixed a buffer overflow when cycling through the colours in kb_next_color(), line 581.
I have seen that a poll process is created, but it seems that it is only for the airplane mode light?
Yes, that's how it looks.
I don't know if this could cause me keyboard lockups very sporadically when gaming
You could just try to uninstall this kernel module and see whether the lockups stop.
Can this process be removed from the .C file to only use the RGB color change?
I think so, that shouldn't be much work.
It seems that the driver has not been updated for a long time.
It is basically unmaintained because the functionality was moved : https://github.com/tuxedocomputers/tuxedo-keyboard
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: OpenSuse: Help tackling keyboard backlight on Clevo laptop

Post by Hoser Rob »

If you're using one distro and then have to ask for support on another forum, I think it's time to use the distro whose forum you're asking for support on.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
User avatar
Portreve
Level 13
Level 13
Posts: 4870
Joined: Mon Apr 18, 2011 12:03 am
Location: Within 20,004 km of YOU!
Contact:

Re: OpenSuse: Help tackling keyboard backlight on Clevo laptop

Post by Portreve »

Hoser Rob wrote: Wed Aug 11, 2021 10:24 am If you're using one distro and then have to ask for support on another forum, I think it's time to use the distro whose forum you're asking for support on.
+1
Flying this flag in support of freedom 🇺🇦

Recommended keyboard layout: English (intl., with AltGR dead keys)

Podcasts: Linux Unplugged, Destination Linux

Also check out Thor Hartmannsson's Linux Tips YouTube Channel
User avatar
Jeronimo17
Level 3
Level 3
Posts: 194
Joined: Fri Jun 08, 2018 6:48 pm

Re: OpenSuse: Help tackling keyboard backlight on Clevo laptop

Post by Jeronimo17 »

DPM wrote: Wed Aug 11, 2021 9:57 am
Jeronimo17 wrote: Wed Aug 11, 2021 8:35 amAnd if it works better than it does from the original source https://bitbucket.org/tuxedocomputers/c ... rc/master/
Yes, I added more colours, and I fixed a buffer overflow when cycling through the colours in kb_next_color(), line 581.
Thanks, it could be that when I was playing I was changing the color of the keyboard with the integrated buttons before and there was something weird when the cycle was restarted.
I have seen that a poll process is created, but it seems that it is only for the airplane mode light?
Yes, that's how it looks.
What a waste of resources
I don't know if this could cause me keyboard lockups very sporadically when gaming
You could just try to uninstall this kernel module and see whether the lockups stop.
The problem is that it happens to me about once a month (maybe it's because I don't play too much).
Can this process be removed from the .C file to only use the RGB color change?
I think so, that shouldn't be much work.
:wink: I have not succeeded
It seems that the driver has not been updated for a long time.
It is basically unmaintained because the functionality was moved : https://github.com/tuxedocomputers/tuxedo-keyboard
Do you have your modification in any repository or could I create it in one so I don't lose it?

Thank you again
Locked

Return to “Chat about Linux”