Add cachyos_setup.sh for DAMX driver setup#135
Conversation
This script automates the process of building, signing, and installing the DAMX driver for CachyOS. It includes checks for required keys, builds the driver using Clang, signs the driver, and provides installation instructions.
Request for Release InclusionCould you please also include this script ( Currently, users downloading the release via the "Releases" tab won't get this script unless they clone the repository manually. Including it in the release package would ensure a seamless experience for CachyOS and Secure Boot users who prefer downloading the stable release. |
There was a problem hiding this comment.
Pull request overview
This PR introduces a specialized setup script for CachyOS users to build, sign, and install the Linuwu Sense driver with Clang compiler support. The script automates the driver compilation process, handles Secure Boot signature requirements, and provides clear installation instructions for both new installations and driver updates.
Key changes:
- Automated driver building using Clang/LLD toolchain specific to CachyOS
- Secure Boot key discovery and driver signing functionality
- Post-installation guidance for integrating with the main DAMX setup
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Hey @scorpionTaj I am trying to install this on cachyos which has secureboot using sbctl how do I use your script to install this? |
|
@Krak8 so sorry for being late :-) , you can install the latest release build from the repo and put that script in the driver "Linuwu Sense" directory and then run it like in the screenshot |
|
thanks for this |
|
@Krak8 you are welcome 👍🏼 |
|
sorry if I sound dumb but how do I install it I have the AN17-42 model and I have a seperate copy of the driver modified for my laptop (just added quirks with the help from FAQ) I downloaded the script seperately and copied it to the Linuwu-Sense and I get this error ensure sbctl is installed (which I installed) and verify keys are generated the thing is I verified the secure boot key from the bios during installation as the bios doesn't load if it's not a signed os any help is appreciated and sorry for the bad english |
Troubleshooting the "Keys Not Found" ErrorDon't worry, you don't sound dumb at all! Secure Boot on Linux is notoriously tricky. The error happens because the script can't find your 1. Fix the Script LocationThe error in your terminal shows you are running the script from inside the Move the script up one level into the main 2. Verify/Generate your KeysEven if
Follow the steps in that wiki to create and enroll your keys. Once 3. Help the Script find the KeysSometimes the script's "search" function misses the Open KEY="/var/lib/sbctl/keys/db/db.key"
CERT="/var/lib/sbctl/keys/db/db.pem"
4. Run the Script againOnce the keys are ready and the script is in the main folder, run: sudo ./cachyos_setup.sh |
|
that did the trick thank you friend |
|
this is pretty useful for users with secureboot on ! |
|
I’ll be opening a new one shortly to reflect the updated local-setup.sh and the new build process for Secure Boot files across all distributions. this is it #152 |


This script automates the process of building, signing, and installing the DAMX driver for CachyOS. It includes checks for required keys, builds the driver using Clang, signs the driver, and provides installation instructions.