(cherry picked from commit 794796dd)
use wake lock See merge request !1
(cherry picked from commit 8a9552fa)