Clevo rgb keyboard app needs reinstall after some updates

Hello friends! I wanted to tell these for a contribute but there’s a lack of something that I dont know, here is how I install and what did I do:

I convert this guide for arch based and all I need to do change sudo update-initramfs -uk all*** code with sudo mkinitcpio -P and it worked perfectly. But still I wanted to write everything

First I download this after that I write 'sudo dmidecode` and output is

Handle 0x0001, DMI type 1, 27 bytes
System Information
	Manufacturer: MONSTER
	Product Name: ABRA A5 V12.1
	Version: Not Applicable                  
	Serial Number: Not Applicable                  
	UUID: 535bfa80-9df5-0000-0000-000000000000
	Wake-up Type: Power Switch
	SKU Number: Not Applicable                  
	Family: Not Applicable

after that I configure module/clevo-xsm-wmi.c Line 1414 as

static struct dmi_system_id clevo_xsm_dmi_table[] __initdata = {
                .ident = "MONSTER ABRA A5 V12.1",
                .matches = {
                        DMI_MATCH(DMI_PRODUCT_NAME, "ABRA A5 V12.1"),
                .callback = clevo_xsm_dmi_matched,
                .driver_data = &kb_full_color_with_extra_ops,

after that steps are:

cd module
sudo insmod clevo-xsm-wmi.ko

then Fn shortcuts worked

(I wanted to try sudo nano /sys/devices/platform/clevo_xsm_wmi/kb_color with hex codes for custom keybord color but my keyboard’s blue color is broken so I couldn’t feedback you friends about it)

After steps are:
make && sudo make install
sudo install -m644 clevo-xsm-wmi.ko /lib/modules/$(uname -r)/extra
sudo depmod
sudo tee /etc/modules-load.d/clevo-xsm-wmi.conf <<< clevo-xsm-wmi
sudo mkinitcpio -P***
sudo tee /etc/modprobe.d/clevo-xsm-wmi.conf <<< 'options clevo-xsm-wmi kb_color=red,red,red kb_brightness=4'

and everything working after reboot too. BUT after some updates when I do sudo pacman -Syu my keyboard returning back default and Fn shortcuts doesn’t working and I must to reinstall clevo module again and again. How can I do this permanent for my computer?

I think you should just make a PKGBUILD and put it on the AUR, and install that.

1 Like

that makes sense and sounds great! But I’m kinda newbee, I don’t know how to do it :sweat_smile:
Edit: is this a proper guide?
Edit 2: okay I’m learning :+1:

seems like it.

In particular:

  1. Download the source tarball of the software to package.
  2. Try compiling the package and installing it into an arbitrary directory.
  3. Copy over the prototype /usr/share/pacman/PKGBUILD.proto and rename it to PKGBUILD in a temporary working directory.
  4. Edit the PKGBUILD according to the needs of your package.
  5. Run makepkg and check whether the package builds correctly.
  6. If not, repeat the previous two steps.

credit: arch wiki

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.