not-jan/apex-tux

Gracefully handle "losing" keyboard

Opened this issue · 1 comments

My Apex Pro is connected to a USB switcher which - once in a while - gets disrupted for a few seconds. After that the apex-tux tool stops and keeps the last info on the screen. If I restart it manually it works fine.

Would it be possible to have this tool handle this more gracefully, e.g. by retrying to reconnect until the keyboard is found again?

This can be reproduced by unplugging the keyboard while this tool is running.

Definitely possible but it'd probably require some architectural refactoring and I'm very short on time at the moment. Your best bet for a quick fix is probably a udev script that kills apex-tux and restarts it.