make docking fully automatic using hardware events