fix jumpy mouse with touchpad

get the thread to keep working and only sleep when idle