View Single Post
Old 08-16-2017, 05:22 PM   #33
fraggle111
Junior Member
fraggle111 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Feb 2017
Device: Kobo Glo, H2O, Kindle PW
@melodyh

I finally got it working on my H2O 2017.

The steps:

- I copied the .tgz file to kobo (do not unpack it - that's a mistake I make time and time again)

- rebooted the kobo

- changed the complete nightmode.ini to:



# config file for kobo-nightmode

[state]
invertActive = no # yes / no
retainStateOverRestart = no # yes / no

[control]
longPressDurationMS = 800 # time in milliseconds to toggle (1000 = 1 second)
debug=no # yes/no to enable/disable debug logging

[nightmode]
refreshScreenPages = 3 #force refresh every X pages
#forceSWInvert = true #force SW invert mode (default: false)

[brightness]
1percentPatch = yes # yes / no : Nickel set brightness to 2% even when on UI it is set to 1%
# this patch will force brightenss to 1% when:
# - it was set to 1%, then it was set to 0% (for instance: stand-by) then changed again to "what Nickel says is 2%"
# - it was set to 3%, then it was set to 1% then changed again to "what Nickel says is 2%"
timeout = 0 # time in seconds, after brightness is set (and maintained) to a given level, to toggle the action set to that level
# switch device off
7 = echo -ne "\xfe\x0f\xc5\x54\xff\x6a\x0d\x00\x01\x00\x74\x00\ x01\x00\x00" > /dev/input/event0
# put device in standby
8 = echo -ne "\xf0\x0f\xc5\x54\x3c\xe0\x0d\x00\x01\x00\x74\x00\ x01\x00\x00\x00\xf1\x0f\xc5\x54\x8e\xe3\x02\x00\x0 1\x00\x74\x00\x00\x00\x00\x00" > /dev/input/event0
# when brightness is set to 4% : special action, toggle night toggleNightMode
4 = toggleNightMode
5 = disableNightMode



(Or any other numbers you like)
Reboot the kobo again.

I hope it works

Regards,
Olivia
fraggle111 is offline   Reply With Quote