FIX: [linux] fix & optimize input device checking
fixup minix passthrough