Auto offline/online based on mouse activity