Thread: Glo Kobo Night Mode
View Single Post
Old 04-27-2014, 04:38 PM   #374
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
tl;dr: Update for FW 3.3.0 available!

What changed:
As Lucas Malor already pointed out, the line to start nickel changed, so the (un)installer had to be adapted. Also someone had the brilliant idea that nickel needs exclusive access to the hardware buttons (see this strace):
Code:
open("/dev/input/event0", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC) = 8
fcntl64(8, F_SETFD, FD_CLOEXEC)         = 0
ioctl(8, EVIOCGRAB, 0x1)
Now I simply ignore EVIOCGRAB ioctls, and haven't found any problem with it so far.
I also added a check to the logging mechanism for debug builds, since it would crash the device when plugged to a computer.
Attached Files
File Type: zip kobo-nightmode_build13.zip (13.8 KB, 3148 views)

Last edited by yoq; 04-27-2014 at 05:36 PM.
yoq is offline   Reply With Quote