Probably the easiest solution with games that exhibit this issue is to write launch scripts that contain the resolution reset command at the end.

Detecting the docking station is a lot trickier. You can check dmesg and the connect it and recheck dmesg to see what it saw. Other parts of the solution might include udev or incron watching for specific changes in /sys, /proc or /dev. For example your docking station might come with extra usb ports and as a hacky solution you could use the usb port count as an indicator.

Reply via email to