set sleeping timeout