A kernel module adding an LED class device for the screenpad on some ASUS Zenbooks
This module was created using the asus-wmi-screenpad patches, but distributed as a separate module to make installation easier and prevent breakages
- Add this repo to your flake's inputs
- Override the kernel parameter with something like this
asus-wmi-screenpad = inputs.asus-wmi-screenpad.defaultPackage.${system}.override kernelPackages.kernel;
- Add the new package to your
boot.extraModulePackages
- Optionally enable it by default by adding
asus-wmi-screenpad
toboot.kernelModules
This project is meant to be used with NixOS, but it should work with DKMS
- Add the repo to DKMS with
sudo dkms add .
- Build and install the module with
sudo dkms install asus-wmi-screenpad/0.1
- Load the module with
sudo modprobe asus-wmi-screenpad
To enter a shell with the dependencies to develop run
nix develop --override-input nixpkgs nixpkgs
-ovveride-input
is used to make sure that nixpkgs
is matched with your system's nixpkgs
Use the build script to provide a custom kernel
nix run --override-input nixpkgs nixpkgs path:.#buildWithKernel linuxPackages_latest
There are two command-line module parameters
enable_led_dev
(default=true
) Registers an LED deviceenable_bl_dev
(default=false
) Registers a backlight device