Patch by Markus Heidelberg. tslib should be changed to use inputattach from the input-tools package instead though.