View Single Post
Old 03-21-2023, 01:53 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
The rtcwake binary in my KoboStuff package is patched to behave on recalcitrant i.MX boards, so it should Just Work (TM).

Just keep in mind you cannot enter suspend while Wi-Fi is enabled (that'll either hang or crash immediately or on wakeup, depending on the board).

See KOReader's suspend logic for all the gory details (which basically boil down to writing to 2 sysfs files, and some carefully tuned timing gymnastics. The sleep matters. A lot. As does the fact that this whole thing runs 15s *after* a suspend request). That's for suspend. We implement rtcwake ourselves, so I'll spare you that bit of hellscape .

Last edited by NiLuJe; 03-21-2023 at 01:58 PM.
NiLuJe is offline   Reply With Quote