Fix logout-automatic & power-dim-screen