Thread: Glo Kobo Night Mode
View Single Post
Old 03-01-2014, 02:04 PM   #344
yoq
Developer
yoq ought to be getting tired of karma fortunes by now.yoq ought to be getting tired of karma fortunes by now.yoq ought to be getting tired of karma fortunes by now.yoq ought to be getting tired of karma fortunes by now.yoq ought to be getting tired of karma fortunes by now.yoq ought to be getting tired of karma fortunes by now.yoq ought to be getting tired of karma fortunes by now.yoq ought to be getting tired of karma fortunes by now.yoq ought to be getting tired of karma fortunes by now.yoq ought to be getting tired of karma fortunes by now.yoq ought to be getting tired of karma fortunes by now.
 
Posts: 77
Karma: 206176
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
Finally found some time to look into the new bugs

The problem with 3.2.0 is that Kobo decided that they wanted to flip the internal representation of the screen by 90° after booting up, and of course the mod was not expecting this to happen, which caused a couple of things to go wrong.

Then the battery drain on the new Aura 6': I was actually quite shocked when I measured how long a software invert took. I had forgotten to turn on compiler optimization and my code was pretty bad to begin with. So with both of these fixed, the invert is now about 40 times faster. It now takes about 5ms compared to 200ms before. (measured on my Glo) I hope this brings the battery drain down to an acceptable level.

This was only tested on a Kobo Glo with FW 3.2.0. It should work with older firmwares, but have a backup ready. The same goes for the new Aura 6'.
Attached Files
File Type: zip kobo-nightmode_build12.zip (13.7 KB, 1248 views)
yoq is offline   Reply With Quote