Thread: Glo Kobo Night Mode
View Single Post
Old 05-05-2013, 02:39 PM   #44
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
Quote:
Originally Posted by Lucas Malor View Post
This is strange, on my Glo 2.4 all is white on black: header, dictionary, homepage, even the book when you sleep or power off.

@yoq: ok. Granted that I don't know much about programming :-P, can't you create a fifo AND a file in nightmode.sh, reading the file only the first time? Furthermore you check if returned value of epoll_wait is > 0, but this is not superfluous since timeout is infinite?
He changed the ebook itself to be white on black to test if there is a difference in consumption.

about epoll, i'm think an EINTR error is possible: http://linux.die.net/man/2/epoll_wait
it suspect it could happen when shutting down

I'm not sure what you mean about the file, but I have to create the fifo on startup, as a channel of communication.

@Mingyar
I'm sorry to hear you had to do a factory reset. But I have an idea why there could be a problem, I'll upload a new version soon.
I'm not entirely sure what you mean by serial information.

And yes, the uninstaller doesn't remove all files but the hack is disabled afterwards. So far I couldn't think of a safe way to remove them on all models.

Last edited by yoq; 05-05-2013 at 02:44 PM.
yoq is offline   Reply With Quote