Wakeup fix to better handle battery devices