Compile kernel with psmouse as module

Hi there,
I’ve a touchpad which misbehaves when leaving S3 and S4.
As a stopgap measure I’d like to
rmmod psmouse
modprobe psmouse
to attemp to workaround the issues.

I’ve been able to compile the kernel using the instructions here: Waydroid on Fedora - Karuboniru's Blog

But the setting for psmouse must be being overwritten somewhere.

So, how can I force the psmouse driver to be compiled as module instead of builtin?


I suggest following the guide here instead, specifically this section.

Thank you for your help! But that manual page is severely out-of-date.

That is the vanilla way of compiling the kernel. There seems to be now a Fedora way.