Thread: Fake Night mode
View Single Post
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