diff --git a/plugins/autosuspend.koplugin/main.lua b/plugins/autosuspend.koplugin/main.lua index d2b211054..4394ff5a1 100644 --- a/plugins/autosuspend.koplugin/main.lua +++ b/plugins/autosuspend.koplugin/main.lua @@ -137,6 +137,12 @@ if Device:isKindle() then return end + -- Also causes problems when charging. + if PowerD:isCharging() and not PowerD:isCharged() then + logger.dbg("AutoSuspend: Device is charging, skipping t1 timeout reset") + return + end + local now = UIManager:getElapsedTimeSinceBoot() local kindle_t1_reset_seconds = default_kindle_t1_timeout_reset_seconds - time.to_number(now - self.last_t1_reset_time) -- NOTE: Unlike us, powerd doesn't care about charging, so we always use the delta since the last user input.