Thread: Clara HD Display time when reading
View Single Post
Old 07-25-2019, 07:17 PM   #260
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Huh. Wouldn't have thought there'd be extra shenanigans for Japanese...

For reference, after an eval $(fbink -e) the final *visible* pixel can be read by our friend dd as such:

dd if=/dev/fb0 skip=$(( ((viewWidth - 1) * (BPP>>3)) + ((viewHeight + (viewVertOrigin - viewVertOffset) - 1) * lineLength) )) count=$((BPP>>3)) bs=1

(It's essentially (x * bpp/4) + (y * line_length), with extra craptastic arithmetics because of the crappy viewports on the H2O & Aura, to make sure we don't end up reading a dead, under the bezel pixel, which Nickel won't necessarily touch).

Pipe to hexdump -vC for testing .

EDITē: Fixed it! With a bit of help from FBInk master, because I wasn't exporting line_length before.

Last edited by NiLuJe; 07-25-2019 at 08:00 PM.
NiLuJe is offline   Reply With Quote