Long ago I installed Linux on a MacBook and found it unusable because of clicks and movement while typing. It’s probably improved these days though.
I might have to try their preinstalled Ubuntu images or something and see if there's some secret sauce in the input configs.