View Single Post
Old 04-27-2013, 04:47 PM   #60
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
Sorry to have kept you waiting, but i stumbled across an annoying bug in the driver (details in the source code), and it took me some time to understand whats going on.

Anyway, it works now and it should be easier on your eyes and on the Kobo's battery than the old hack. Props to Kevin for the initial research!

Installation:
  • Copy screenInv.so and nightmode.sh to your .kobo folder
  • Change the following line in your rcS (the one in the zip is just an example), from:
    Code:
    /usr/local/Kobo/nickel -qws &
    to:
    Code:
    LD_PRELOAD=/mnt/onboard/.kobo/screenInv.so /usr/local/Kobo/nickel -qws &
  • Add this line to your kobotweaks.ini
    Code:
    Toggle Night Mode=tweaks.executeSystemCmd(\"/mnt/onboard/.kobo/nightmode.sh\")
  • Reboot and it should work
This is licensed under the GPL and was tested on a Kobo Glo with FW 2.5.1.

A word of caution:
This hack has the potential to freeze nickel, therefore, if something goes wrong badly you won't be able to activate WiFi. So I recommend you to activate Network over USB as a backup plan: https://wiki.mobileread.com/wiki/Kobo...lnet.2FFTP_USB
Attached Files
File Type: zip screenInv.zip (12.4 KB, 283 views)

Last edited by yoq; 04-27-2013 at 07:17 PM. Reason: clarification
yoq is offline   Reply With Quote