View Single Post
Old 07-22-2020, 06:09 PM   #26
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 867
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by NiLuJe View Post
Not yet. Sherman is working on something that may help, but keep in mind that when a device goes to sleep, it goes to *suspend*, so that's generally a terrible trigger to do stuff, because you can't actually do stuff ;p.
I haven't tested any of these yet, but Nickel does emit the following signals:
Code:
SIGNAL :: void N3PowerWorkflowManager::aboutToSleep()
SIGNAL :: void N3PowerWorkflowManager::resumingFromSleep()
SIGNAL :: void N3PowerWorkflowManager::resumedFromSleep()
SIGNAL :: void N3PowerWorkflowManager::aboutToPowerOff()
SIGNAL :: void N3PowerWorkflowManager::aboutToReboot()
So I think it will be possible to listen for them using my current project. Just got to plumb them in...
sherman is offline   Reply With Quote