Thread: Glo Kobo Night Mode
View Single Post
Old 04-27-2014, 06:44 PM   #379
Riboli
Junior Member
Riboli began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2014
Location: Brazil
Device: Kobo Glo
Quote:
Originally Posted by yoq View Post
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.
Thanks a lot for the quick fix, mate! Working as intended, sweet!
Riboli is offline   Reply With Quote