Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-02-2013, 04:52 PM   #1
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Kobo Night Mode

Quote:
Originally Posted by yoq View Post
Nightmode for Kobo
Read light-on-dark on your Kobo AuraHD / Aura / Glo / Touch or Mini!



Installation / Removal
  • Download the attached zip file
  • Connect your Kobo to your computer
  • Extract the file KoboRoot.tgz from the installer / uninstaller folder
  • Copy it to the .kobo folder on your device
  • Safely remove the USB storage and unplug
  • Your device will reboot automatically

Control nightmode
There are two ways to control this mod:
  • Long-press the LIGHT/HOME button to toggle on/off
  • Use a launcher to start the nightmode.sh script:
    • KoboLauncher: Add:
      Night Mode = /mnt/onboard/.kobo/nightmode.sh
      to .kobo/KoboLauncher/kobo_launcher.ini
    • or KoboTweaks: (not working on 2.6+) Add:
      Night Mode=tweaks.executeSystemCmd(\"/mnt/onboard/.kobo/nightmode.sh\")
      to .kobo/kobotewaks.ini

Configuration
In your .kobo folder, there will be a configuration file called nightmode.ini. You can change whether the state should be retained over a restart of the device, the default state after power up and the duration for a long press. The new setting will take effect after a restart.

FAQ
  • I have updated my firmware and it stopped working!
    Simply install the mod again
  • Will this drain my battery?
    The effect on battery life should be negligible
  • I can see more ghosting when the mod is activated!
    This is normal, as eInk screens are optimized for black-on-white mode. Change the refresh rate if it annoys you.

More info
For a more detailed description, the changelog and the source code, visit github:
http://dbeinder.github.io/kobo-nightmode

Credits
  • KevinShort, for the idea and a first proof of concept
  • Nicolas Devillard and others, for the iniParser library
This hack works on the Aura HD, Aura, Glo, Touch, and Mini.
Attached Files
File Type: zip kobo-nightmode_build12.zip (13.7 KB, 633 views)

Last edited by KevinShort; 03-14-2014 at 04:31 PM. Reason: Clarified wording.
KevinShort is offline   Reply With Quote
Old 05-02-2013, 05:03 PM   #2
Lucas Malor
Pain in the arse
Lucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughing
 
Lucas Malor's Avatar
 
Posts: 545
Karma: 63112
Join Date: Apr 2013
Device: Kobo Glo, Kindle 4
Is there no "patch" on Kobo?

Last edited by Lucas Malor; 05-03-2013 at 06:59 AM.
Lucas Malor is offline   Reply With Quote
 
Enthusiast
Old 05-02-2013, 06:08 PM   #3
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by Lucas Malor View Post
Is there not "patch" on Kobo?
I'm afraid I don't understand, what do you mean?
KevinShort is offline   Reply With Quote
Old 05-02-2013, 07:28 PM   #4
Tiburscyo
Member
Tiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTiburscyo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 20
Karma: 12814
Join Date: Apr 2013
Device: Kobo Glo / Kindle 4 NT (2012)

for me works fine!
No problems in the transition of pages or reboot

once again, thanks KevinShort
Tiburscyo is offline   Reply With Quote
Old 05-03-2013, 03:34 AM   #5
Lucas Malor
Pain in the arse
Lucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughing
 
Lucas Malor's Avatar
 
Posts: 545
Karma: 63112
Join Date: Apr 2013
Device: Kobo Glo, Kindle 4
Well you're right... :-P I mean the unix program
Lucas Malor is offline   Reply With Quote
Old 05-03-2013, 03:46 AM   #6
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,701
Karma: 4748453
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
Quote:
Originally Posted by KevinShort View Post
Here's a new hack that will hopefully benefit some people (I know I use it!).




A little while back I release a very hacky white on black display mode for the Glo. Not long after, yoq put together a much nicer version of the hack, which you can download here.


Installation - for firmware version 2.5.1 ONLY!

A word of caution: This hack could potentially cause your Glo to not boot. If that happens, a factory reset (hold the light button while turning on the device) should resolve any issues. Also, this installer is specifically for firmware 2.5.1. It may or may not work on other versions.

You'll need to install the Kobo Tweaks plugin and create a new file named "kobotweaks.ini" in the .kobo folder on your Glo. Put these lines in kobotweaks.ini:
Code:
[Global]
compatFirmware=2.5.1

[CustomCommands]
Toggle Night Mode=tweaks.executeSystemCmd(\"/mnt/onboard/.kobo/nightmode.sh\")
Download "gloNightMode.zip", below. Extract it and put the KoboRoot.tgz file in the .kobo folder on your Glo. After your Glo reboots, open the Library to activate the plugin, then go back to the home screen. Under the "Tools" menu you can now select "Toggle Night Mode" to turn the hack on and off.
Kevin, this looks brilliant - and indeed I guess it would be even more useful for non lit devices - is there any chance it could work on the Mini: if there is, I am happy to play guinea pig!
paola is offline   Reply With Quote
Old 05-03-2013, 04:43 AM   #7
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 1,129
Karma: 317474
Join Date: Jun 2012
Device: kobo touch
Thank you yoq and KevinShort for your impressive work!

Yoq, may I ask you if you could set the resolution values depending on the respective device (800x600, 1024x758, 1024x768, 1440x1080), if you find the time. For establishing the device one could maybe follow the model used in /bin/kobo_config.sh.
tshering is offline   Reply With Quote
Old 05-03-2013, 05:24 AM   #8
tapioco2000
Member
tapioco2000 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2013
Device: kobo glo
KevinShort, you are my new hero!

It works like a charm!

Last edited by tapioco2000; 05-03-2013 at 05:45 AM.
tapioco2000 is offline   Reply With Quote
Old 05-03-2013, 07:13 AM   #9
yoq
Developer
yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.
 
Posts: 74
Karma: 197622
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
Quote:
Originally Posted by tshering View Post
Thank you yoq and KevinShort for your impressive work!

Yoq, may I ask you if you could set the resolution values depending on the respective device (800x600, 1024x758, 1024x768, 1440x1080), if you find the time. For establishing the device one could maybe follow the model used in /bin/kobo_config.sh.
That should be possible, I just have a Glo here though, so you'll have to be my tester on other models
yoq is offline   Reply With Quote
Old 05-03-2013, 07:17 AM   #10
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 1,129
Karma: 317474
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by yoq View Post
That should be possible, I just have a Glo here though, so you'll have to be my tester on other models
Thank you for the quick response. I can try on my Touch.
tshering is offline   Reply With Quote
Old 05-03-2013, 08:31 AM   #11
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,701
Karma: 4748453
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
Quote:
Originally Posted by tshering View Post
Thank you for the quick response. I can try on my Touch.
and I will definitely try on my Mini
paola is offline   Reply With Quote
Old 05-03-2013, 09:05 AM   #12
yoq
Developer
yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.
 
Posts: 74
Karma: 197622
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
Ok, it should now read the actual resolution on startup and should work on the Touch and the Mini. Just replace screenInv.so and reboot.
If it doesn't refresh properly, send me the content of /tmp/screenInvertLog this might help me find the bug.
Attached Files
File Type: zip screenInv_build2.zip (6.6 KB, 138 views)
yoq is offline   Reply With Quote
Old 05-03-2013, 11:51 AM   #13
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 1,129
Karma: 317474
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by yoq View Post
Ok, it should now read the actual resolution on startup and should work on the Touch and the Mini. Just replace screenInv.so and reboot.
If it doesn't refresh properly, send me the content of /tmp/screenInvertLog this might help me find the bug.
Thank you very much for the great program. Works nicely on the Touch. On a side note, I am still on FW 2.4.0.

As for the log file, it might perhaps be more convenient to have it on the user partition.

Last edited by tshering; 05-03-2013 at 12:01 PM.
tshering is offline   Reply With Quote
Old 05-03-2013, 03:21 PM   #14
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,701
Karma: 4748453
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
Quote:
Originally Posted by yoq View Post
Ok, it should now read the actual resolution on startup and should work on the Touch and the Mini. Just replace screenInv.so and reboot.
If it doesn't refresh properly, send me the content of /tmp/screenInvertLog this might help me find the bug.
sorry, as a non-techie: do I just ignore Kevinshort's file, or do I first have to intall his and then replace his screenInv.so with yours?
paola is offline   Reply With Quote
Old 05-03-2013, 03:25 PM   #15
ShellShock
Guru
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 854
Karma: 1639368
Join Date: Sep 2008
Device: Sony PRS-505 & PRS-650, Kobo Glo & Aura HD
Anyone tried this on the Aura?
ShellShock is offline   Reply With Quote
Reply

Tags
glo, hack, mini, night mode, touch

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo Night mode ? Ethanaul Kobo Reader 1 07-23-2013 10:23 PM
does 'night mode' use more power? pumpkincat Kobo Tablets 10 02-25-2012 01:39 PM
Odyssey Anyone using Night-Mode? DuckieTigger Bookeen 2 01-28-2012 12:13 PM
help with night mode golfgirl Kobo Tablets 5 11-04-2011 10:40 AM
Is there a night mode? zeroh Nook Color & Nook Tablet 5 12-04-2010 10:24 AM


All times are GMT -4. The time now is 03:24 AM.


MobileRead.com is a privately owned, operated and funded community.