Build a kernel
Applies to kernels prior to 5.xx
Prior to building a custom kernel add the patches
You may have to manually make changes to the patches, though by opening the files you can see where the changes are made. Due to there being only three patches, I prefer to add them manually, checking for any errors. You could also manually make the changes to the relevant files (I did) but best not to with the sound one. ;-) See build.txt for the actual commands used.
Example
patch -p1 < ../sound_click_mini.patch
- rtl8723bs_bt_rfkill.4.14.18.patch
- sound_click_mini.4.14.18.patch
Note: the fix for Elan keyboard/mouse (below) is now included in kernel 4.15.3 - disable-elan.4.14.18.patch
Once added, go on to build your own custom kernel - see the DIY section.
Credit to zaurus.org.uk for making these files and others available.
Existing installations
Updating your kernel - example
- linux-libc-dev-4.14.18-ejsolutions-5_amd64.deb
- linux-headers-4.14.18-ejsolutions-5_amd64.deb
- linux-image-4.14.18-ejsolutions-5_amd64.deb
Noting the order, install via
sudo dpkg -i linux-libc-dev-4.14.18-ejsolutions-5_amd64.deb -i linux-headers-4.14.18-ejsolutions-5_amd64.deb -i linux-image-4.14.18-ejsolutions-5_amd64.deb
Replace 4.14.18-ejsolutions-5 with the relevant versions for your build.
If you experience issues with bluetooth, then try older drivers..
sudo dpkg --force-overwrite -i rtl8723bt_4.12.0_amd64.deb
The overwrite is required due to existing files in kernel-firmware.