JacKeTUs / universal-pidff

GNU General Public License v2.0
56 stars 4 forks source link

Added signing section to the README #15

Closed JacKeTUs closed 1 month ago

JacKeTUs commented 1 month ago

@cjhelloletsgo, thanks! Can you please try to follow automatic signing procedure? Enroll DKMS's autogenerated MOK key into the machine, and reinstall module through DKMS? It should work fine, but i'd like to double check

cjhelloletsgo commented 1 month ago

Yes, I will give it a shot later today!

cjhelloletsgo commented 1 month ago

Ok, I have a few notes.

Firstly for me at least there were no files in the /var/lib/dkms/ directory, the default location appears to be /var/lib/shim-signed/mok/ It actually mentions that in your dkms reference link as well. I'm not sure if the file path might be different on different distros but I am on Ubuntu 24.04 if it matters.

So with that in mind for me it worked like this:

confirm keys are present (keys for me were uppercase)

ls -al /var/lib/shim-signed/mok/MOK*

Screenshot from 2024-07-18 20-10-37

Apparently you can just import .der files? I ran

sudo mokutil --import /var/lib/shim-signed/mok/MOK.der

then input my password, rebooted, added the key when it booted then ran

sudo dkms install /usr/src/universal-pidff

This time it mentioned the signing keys Screenshot from 2024-07-18 20-35-53

and then

sudo update-initramfs -u

then tried

sudo dmesg | grep hid-universal-pidff

to check if the driver was loaded and nothing, so I rebooted and tried again and then it says the driver is loaded and ff was working again.

JacKeTUs commented 1 month ago

I'm not sure if the file path might be different on different distros but I am on Ubuntu 24.04 if it matters.

Looks like it, on Ubuntu keys are generated at different path. Well, i updated instructions with that info :D

cjhelloletsgo commented 1 month ago

With that change both methods are accurate from my perspective.