View Single Post
Old 02-13-2015, 09:56 AM   #2066
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
No. It is called upon suspend, meaning that koreader assumes to gain back control at exactly the point where it handed it off to the suspend script. All files are open, changes unwritten at that point. This is not the way to implement a quit & poweroff.

You would have to implement it properly, within koreader. It isn't hard to do, but the use case does not look very common. Maybe it's sufficient to have the script that calls koreader from KSM do a poweroff when koreader is done?
hawhill is offline   Reply With Quote