Thread: Glo Kobo Night Mode
View Single Post
Old 05-05-2013, 09:50 AM   #40
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
About the slowness and batterylife: None of this has happened on my Glo, maybe there is something specific about the Touch that I missed? Please try to pinpoint when the battery drains so quickly, is it during reading, sleeping (or (!) power off)? There's also an uninstaller if you want to compare easily, see the first post.

Quote:
Originally Posted by Lucas Malor View Post
Anyway, what does exaclt this piece of code?
I create a named pipe (/tmp/screenInvert) to be able to control the state. For this I launch a new thread which opens the pipe and waits for data to arrive. It waits using epoll_wait(), so the thread is only awakened by the kernel when someone writes to the pipe (i.e. you press toggle). After the read is completed, I need to reopen the pipe.
yoq is offline   Reply With Quote