Automatic laptop detection
hugglesfox opened this issue · 1 comments
Just an idea. It's possible to use
sudo dmidecode -s system-product-name
to get the laptop model name. There's also the py-dmidecode library for interacting with the command and parsing it's output. Meaning it wouldn't be too difficult to implement automatic detection of the laptop model.
The default behavior could be to automatically detect unless the -m
cli flag is specified, falling back to the default model on failure.
In my implementation of the MSI Keyboard, it's possible to detect which version of the keyboard you have, either from the long version of the keyboard which includes the numpad, or the other version which it does not include the numpad.
You can see the difference in version number here.
At least this is for detecting which keyboard layout you have.