Disable the RTC alarm on shutdown (#6211)

* Disable the RTC alarm on shutdown

* Nice typo.

* Bump base

https://github.com/koreader/koreader-base/pull/1103
https://github.com/koreader/koreader-base/pull/1105
https://github.com/koreader/koreader-base/pull/1106
reviewable/pr6218/r1
NiLuJe 4 years ago committed by GitHub
parent fc6c786f84
commit 95567d8af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit 4a91eefe3a42f926ebe262658c258c9929544836
Subproject commit e556b6a64c69db034360c04ba5a2f790e67d7661

@ -767,6 +767,10 @@ function Kobo:saveSettings()
end
function Kobo:powerOff()
-- Much like Nickel itself, disable the RTC alarm before powering down.
WakeupMgr:unsetWakeupAlarm()
-- Then shut down without init's help
os.execute("poweroff -f")
end

Loading…
Cancel
Save