Some Background
While I realize that my question is related to my original post over on Ask Ubuntu, it was never answered there, and I'm really hoping to refocus my question here (as it's really no longer a Ubuntu specific question), so...
The Issue
From that original question, I'm running Ubuntu 22.10 on a Lenovo ThinkPad T15 Gen2, and my goal was to disable the touchscreen, as I don't use it and I just keep bumping it accidentally, causing problems. So, I wanted to just disable the touchscreen entirely.
While I ultimately did figure out how to solve my issue, what's still concerning me is that I ended up with multiple possible solutions, which is something of a "shotgun approach" to resolving this issue.
I could:
sudo modprobe -r hid_generic
AND
sudo modprobe -r hid-multitouch
Or I could:
sudo modprobe -r i2c-hid-acpi
OR
sudo modprobe -r intel_lpss_pci
Or even disable a driver:
GRUB_CMDLINE_LINUX_DEFAULT="splash initcall_blacklist=dw_i2c_init_driver"
Sure, any of these solutions seem to work, but I don't know which is the most appropriate (and/or most efficient) solution.
My Question
So... my question isn't so much about disabling the touchscreen (that's resolved) as it is about how to know how to identify the best solution. Or put differently...
What's the best approach for determining/troubleshooting specific module functionality with a high degree of understanding?
Since troubleshooting this issue, I'm starting to think the only way to really identify the most appropriate solution would be to track down the source code for every kernel module, and step through them and fully understand their functionality (and side effects). But that seems to be overkill, and I wonder if there's a much better way?
Thanks