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