This script uses the devicetree compatible properties in the modalias info and compares them to all the compatible properties
used on the running device. Essentially, it filters lsmod
to only show modules which are directly used for hardware
functionality on your device. This is NOT an exhaustive list of modules, but should be added to your distros existing
list. It doesn't cover basic things like nvme
, etc.
On the Lenovo Yoga Slim 7x laptop, the following is printed: