1. Install module building dependencies (depends on your distro, on debian/ubuntu install `build-essential` and `linux-headers-$(uname -r)` packages).
2. Clone the repo with `git clone https://github.com/cmetz/ec-su_axb35-linux.git`.
3. Build and install the module with `cd ec-su_axb35-linux && sudo make install`.
@@ 24,6 24,45 @@
6. Run `scripts/test_fan_mode_fixed.sh`, it should test your fans on all 6 fixed levels.
7. If everything is good, you can make the module automatically load on system boot with `sudo echo ec_su_axb35 >> /etc/modules`. If it says "permission denied", drop into root console with `su` or `sudo su -` and try again.
+
#### Installation with secure boot on Fedora
+
Check that secure boot is enabled:
+
```
+
$ mokutil --sb-state
+
SecureBoot enabled
+
```
+
Generate a new self-signed certificate for MOK and request it to be added to your UEFI keys:
+
```
+
sudo dnf install dkms openssl sbsigntools
+
sudo dkms generate_mok
+
MOK_PASSWD=test1
+
sudo mokutil -i /var/lib/dkms/mok.pub << EOI
+
${MOK_PASSWD}
+
${MOK_PASSWD}
+
EOI
+
sudo systemctl reboot
+
```
+
During reboot the blue Shim UEFI key management screen appears. Press a key.
+
Select “Enroll MOK”, choose “Continue”, select “Yes”, enter the password "test1" from above. Note that the password must be no more than 5 characters long. Your keyboard will probably be in a US keyboard layout at this point.
Reading and writing all of the parameters happens through sysfs with `/sys/class/ec_su_axb35` path. You can find detailed information in [the repo's readme file](https://github.com/cmetz/ec-su_axb35-linux/blob/main/README.md).