Is there a way to detect the layout of modules on the input deck? I’m fiddling with a pair of the LED matrix modules, and I want to be able to see where each one is connected (which one is on the left or the right, but also if they are mounted together or split on opposite sides of the keyboard).
Bonus points would be detecting which position (left/center/right) the touchpad and/or keyboard is in.
What OS?
You could check which usb port it’s connected to. You’d have to map out which spot corresponds to which number port on the midplate hub first.
I was thinking about sussing out the same info. In particular, for the LED matrix service that puts system stats on the panels. It only works if the modules are in far left/right slots with keyboard in center. I’d love to put in a pull req to add detection for other positions (both on left or right, for example).
It does seem that the port paths do remain static, at least in Linux’s case. That’s how the sys stat service currently addresses them, and it works across several distros.