Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-31-2021, 11:58 PM   #1
cronot
Member
cronot has a complete set of Star Wars action figures.cronot has a complete set of Star Wars action figures.cronot has a complete set of Star Wars action figures.
 
Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
Fake Night mode

This is a little KUAL extension that leverages the method on this thread to allow a sort of fake night mode on non-Paperwhite Kindles (i.e. ones where night mode is not officially supported on the stock firmware).

As it uses fbdepth and fbink, it requires USBNet installed.

Caveats:
  • I've tested this only on my KT4, I'm not really sure how it'll behave on other models - worse case scenario, if it breaks horribly, like the screen blanks out, freezes, or doesn't seem to respond to touches, you may need to force reboot your Kindle. Feedback on working devices are welcome!
  • When in night mode, ghosting effects are much more pronounced; you'll either have to force a screen refresh very often (by touching the status bar, then back at the center of the book) or just leave page refresh turned on all the time (Settings > Reading Options > Page Refresh), as the screen refresh clears up the ghosting. YMMV, of course, that was just my experience with the KT4;
  • The night mode setting doesn't survive a reboot.

To install, just drop the contents of the zip file inside the extensions folder on the internal storage.
Attached Files
File Type: zip nightmode.zip (1.0 KB, 333 views)
File Type: zip nightmode_debug.zip (1.1 KB, 201 views)

Last edited by cronot; 04-06-2021 at 02:23 PM.
cronot is offline   Reply With Quote
Old 04-06-2021, 12:32 AM   #2
Sol Arkite
Zealot
Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Posts: 125
Karma: 30302
Join Date: Oct 2015
Device: KV; PW3 ; PW2 ; k5; KT2
Works on my KV Firmware 5.13.2
I like that ability, but I don’t like the flashing between page turns. Koreader wins for nighmode.

Doesn't work for KV and PW2 firmware 5.10.3

Last edited by Sol Arkite; 04-06-2021 at 01:50 AM.
Sol Arkite is offline   Reply With Quote
Advert
Old 04-06-2021, 09:33 AM   #3
cronot
Member
cronot has a complete set of Star Wars action figures.cronot has a complete set of Star Wars action figures.cronot has a complete set of Star Wars action figures.
 
Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
Quote:
Originally Posted by Sol Arkite View Post
Works on my KV Firmware 5.13.2
I like that ability, but I don’t like the flashing between page turns. Koreader wins for nighmode.

Doesn't work for KV and PW2 firmware 5.10.3
Well, koreader alleviates the issue by actually doing a flash/refresh of the screen every few (about 5 I think) page turns. It does that even in normal (non-night) mode. It's hard to get any better than koreader, and seeing how powerful it is, I wouldn't be surprised if that behavior and the number of pages turns per refresh is configurable. Amazon's own reader unfortunately is all or nothing.

If you care about it, I could try to put together an alternate extension that generates some debug info that I could use to try figure out what is going on and hopefully fix it, although considering those devices are somewhat old, I suspect it may be a hardware limitation. But I'm not really sure what to think without more information.

Edit: (nvm, just realized you got two KVs with different FW versions, and apparently the KV and PW on older firmwares are not working, so it may be something related to the FW afterall)

Thanks for the feedback anyway!

Last edited by cronot; 04-06-2021 at 09:36 AM.
cronot is offline   Reply With Quote
Old 04-06-2021, 09:51 AM   #4
Sol Arkite
Zealot
Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Posts: 125
Karma: 30302
Join Date: Oct 2015
Device: KV; PW3 ; PW2 ; k5; KT2
Quote:
Originally Posted by cronot View Post
If you care about it, I could try to put together an alternate extension that generates some debug info
I'd be glad to run an extension to help.

Last edited by Sol Arkite; 04-06-2021 at 09:53 AM.
Sol Arkite is offline   Reply With Quote
Old 04-06-2021, 09:58 AM   #5
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,058
Karma: 3581267
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
Quote:
Originally Posted by cronot View Post
I wouldn't be surprised if that behavior and the number of pages turns per refresh is configurable.
Off, any number of pages, separately for day/night mode, every chapter.
hius07 is offline   Reply With Quote
Advert
Old 04-06-2021, 11:54 AM   #6
cronot
Member
cronot has a complete set of Star Wars action figures.cronot has a complete set of Star Wars action figures.cronot has a complete set of Star Wars action figures.
 
Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
Quote:
Originally Posted by Sol Arkite View Post
I'd be glad to run an extension to help.
aight, just attached the debugging extension to the OP. Overwrite the existing files and try pressing the toggle button on KUAL. It should generate a debug.log file inside extensions/nightmode/ , send me that file!

Thanks!

Last edited by cronot; 04-06-2021 at 11:56 AM.
cronot is offline   Reply With Quote
Old 04-06-2021, 12:42 PM   #7
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I smell PEBCAK, because it should work on pretty much anything since the K5, no matter the FW version. (I'm pretty sure I did in fact try it on an old as hell K5, and, more relevant to the original report, a PW2 on 5.9).

Sidebar @cronot: Don't use fbset, it's broken as all hell (hence, well, fbdepth), and may not even be there in the first place. You can pull the screen resolution from an eval $(fbink -e).

EDIT: You don't actually need the resolution for a full-screen refresh anyway. An empty rectangle means FS already, i.e., fbink -q -f -s

Last edited by NiLuJe; 04-06-2021 at 12:45 PM.
NiLuJe is offline   Reply With Quote
Old 04-06-2021, 02:32 PM   #8
cronot
Member
cronot has a complete set of Star Wars action figures.cronot has a complete set of Star Wars action figures.cronot has a complete set of Star Wars action figures.
 
Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
Quote:
Originally Posted by NiLuJe View Post
I smell PEBCAK, because it should work on pretty much anything since the K5, no matter the FW version. (I'm pretty sure I did in fact try it on an old as hell K5, and, more relevant to the original report, a PW2 on 5.9).

Sidebar @cronot: Don't use fbset, it's broken as all hell (hence, well, fbdepth), and may not even be there in the first place. You can pull the screen resolution from an eval $(fbink -e).

EDIT: You don't actually need the resolution for a full-screen refresh anyway. An empty rectangle means FS already, i.e., fbink -q -f -s
Thanks a lot for the insights @Niluje! That makes the script much more straightforward! I didn't really delve into much documentation to do this, I've only tried to generalize the concept on that other thread by fumbling around with the fb* utilities, initially I didn't even know fbset was unrelated to fbdepth/fbgrab/fbink, and I overlooked the -e and -f switches on fbink due to the sheer amount of switches that fbink has

Although: looking at the -f switch, it says "Note that on legacy einkfb devices, this may not always be honored by the hardware.". Wouldn't that be a problem, such that explicitly specifying the screen geometry would be needed afterall?

But anyway, it works for me, so I've updated the zips on the OP again following these suggestions. @Sol, try again, see if that works for you.
cronot is offline   Reply With Quote
Old 04-06-2021, 02:53 PM   #9
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Said legacy hardware (namely, anything <= K3, with the K4 in between), doesn't support this hack anyway, and ignore just means that: "ignore", not "horribly implode in fun and interesting ways" .

Also, it doesn't really has anything to do with the full-screen thing anyway, that's just to request a flash, which is necessary because the screen content may not have changed, so a non-flashing update will most likely not do anything.
NiLuJe is offline   Reply With Quote
Old 04-06-2021, 04:31 PM   #10
Sol Arkite
Zealot
Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Posts: 125
Karma: 30302
Join Date: Oct 2015
Device: KV; PW3 ; PW2 ; k5; KT2
Quote:
Originally Posted by cronot View Post
@Sol, try again, see if that works for you.
no joy on the latest fake night mode iteration.
Sol Arkite is offline   Reply With Quote
Old 04-06-2021, 04:48 PM   #11
cronot
Member
cronot has a complete set of Star Wars action figures.cronot has a complete set of Star Wars action figures.cronot has a complete set of Star Wars action figures.
 
Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
Quote:
Originally Posted by Sol Arkite View Post
no joy on the latest fake night mode iteration.
Ok, did you try the debug variation? Did you get a log file?
cronot is offline   Reply With Quote
Old 04-06-2021, 05:21 PM   #12
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Sol Arkite: Obvious question is obvious: are you actually running a recent (-ish) build of USBNetwork on your affected devices?
NiLuJe is offline   Reply With Quote
Old 04-06-2021, 06:39 PM   #13
Sol Arkite
Zealot
Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.Sol Arkite can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Posts: 125
Karma: 30302
Join Date: Oct 2015
Device: KV; PW3 ; PW2 ; k5; KT2
Quote:
Originally Posted by NiLuJe View Post
@Sol Arkite: Obvious question is obvious: are you actually running a recent (-ish) build of USBNetwork on your affected devices?
Good call. I tried it on my son's PW2 that didn't have an updated USBNetwork.
It is a success! Fake night mode enabled on all devices!

Last edited by Sol Arkite; 04-06-2021 at 07:00 PM.
Sol Arkite is offline   Reply With Quote
Old 06-22-2022, 09:05 AM   #14
Gaudi
Junior Member
Gaudi began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Apr 2022
Device: Voyage+Oasis 2nd
Hi all, thank you for the extension.
I have a KV on FW 5.13.6, Jailbroken with latest Jailbreak from katadelos (https://www.mobileread.com/forums/sh...d.php?t=203326).
At some point, without doing anything I could replicate later, it went into "dark mode" (even though there is no switch in stock firmware/laucher).
I did some search and found this thread, so I went ahead to install USBNetwork + Dark Mode Extension, but they do not seem to do anything.

Can you please help me find out why it is not working?

I have also a KO2 I really like to dark mode to read at night.
Also, to enable dark mode with the extension, should it be inmmediate?

Thank you and regards
Gaudi is offline   Reply With Quote
Old 06-22-2022, 09:21 AM   #15
Gaudi
Junior Member
Gaudi began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Apr 2022
Device: Voyage+Oasis 2nd
Quote:
Originally Posted by Gaudi View Post
Hi all, thank you for the extension.
I have a KV on FW 5.13.6, Jailbroken with latest Jailbreak from katadelos (https://www.mobileread.com/forums/sh...d.php?t=203326).
At some point, without doing anything I could replicate later, it went into "dark mode" (even though there is no switch in stock firmware/laucher).
I did some search and found this thread, so I went ahead to install USBNetwork + Dark Mode Extension, but they do not seem to do anything.

Can you please help me find out why it is not working?

I have also a KO2 I really like to dark mode to read at night.
Also, to enable dark mode with the extension, should it be inmmediate?

Thank you and regards

I correct myself, I was using the wrong version of USBNet.
downloaded USBNetwork Hack | kindle-usbnet-0.22.N-r18897.tar.xz from Snapshots of NiLuJe's hacks and now it works as expected.

Hope this help other users


Regards
Gaudi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Night mode reading preference vs normal mode ProDigit General Discussions 19 11-08-2020 04:33 AM
Calibre 4.10 night mode/dark mode likeaghost Calibre 11 05-03-2020 05:43 PM
Fake sleep mode on Kindle PW1 (bug) LittleBiG KOReader 5 08-30-2019 11:21 AM
Glo Night mode ? Ethanaul Kobo Reader 1 07-23-2013 10:23 PM
Odyssey Anyone using Night-Mode? DuckieTigger Bookeen 2 01-28-2012 12:13 PM


All times are GMT -4. The time now is 05:54 PM.


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