Skip to content

Instantly share code, notes, and snippets.

@AP-XD
Created February 28, 2022 16:37
Show Gist options
  • Save AP-XD/e805ce0ccc0446d07fa93c6db2646237 to your computer and use it in GitHub Desktop.
Save AP-XD/e805ce0ccc0446d07fa93c6db2646237 to your computer and use it in GitHub Desktop.
Guide for signing the module generated in acer nitro 5 RGB keyboard module

###Guide for signing the module generated in acer keyboard module

git clone https://github.com/JafarAkhondali/acer-helios-300-rgb-keyboard-linux-module
cd "acer-helios-300-rgb-keyboard-linux-module"
chmod +x ./*.sh
sudo ./install_service.sh

Now We need to sign the module

cd src
sudo openssl \
    req \
    -new \
    -x509 \
    -newkey \
    rsa:2048 \
    -keyout MOK.priv \
    -outform DER \
    -out MOK.der \
    -days 36500

enter all var it asks for like organization password and all

sudo chmod 600 MOK*
sudo mokutil --import MOK.der

reboot and enroll MOK in BIOS

sudo KBUILD_SIGN_PIN="your password which u used to create the key" /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der facer.ko
sudo insmod facer.ko
modinfo facer.ko
cd ..

WAVE WHICH I LIKE THE MOST

sudo ./facer_rgb.py -m 3 -s 5 -b 100

Reference 1 Reference 2

@AngryMandragora
Copy link

Thanks for this guide, it worked like a charm, the only mistake I made was not entering the src directory after reboot, which gave me some error messages that confused me for a minute, but then I figured (leaving this comment here for others who might make the same mistake).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment