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 09-18-2013, 06:22 AM   #16
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by NiLuJe View Post
@Aeris: I was wondering if centering it wouldn't work better .

I have a bit of something that auto-centers eips calls somewhere, let me try something...
If you don't find it in your files, my PW jailbreak.sh also includes centering logic.
ixtab is offline   Reply With Quote
Old 09-18-2013, 06:34 AM   #17
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
Is there any way to clear screen after eipsing? I've tryed eips -c but i clears ALL the screen, not only the new written portion... and overything lines lives a black space, not the starting condition (I'm not talking of this script only). A screen refresh command that clear all eips and these only would be perfect

Last edited by Aeris; 09-18-2013 at 06:45 AM.
Aeris is offline   Reply With Quote
Old 09-18-2013, 06:42 AM   #18
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by Aeris View Post
Is there any way to clear screen after eipsing? I've tryed eips -c but i clears ALL the screen, not only the new written portion
Yes, and no.

The simplest way is to overwrite the existing text with spaces (something like eips x y " "). Another options is to fill some rectangle with a particular color.

In any case, this will NOT simply "remove" the text that you wrote and show whatever was there before. It will paint over it again. What was there before you started writing to the screen will be lost in any case, until it gets refreshed - by whichever means, usually by an update -- in this case -- of the KUAL menu.
ixtab is offline   Reply With Quote
Old 09-18-2013, 06:46 AM   #19
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
Quote:
Originally Posted by ixtab View Post
Yes, and no.

The simplest way is to overwrite the existing text with spaces (something like eips x y " "). Another options is to fill some rectangle with a particular color.

In any case, this will NOT simply "remove" the text that you wrote and show whatever was there before. It will paint over it again. What was there before you started writing to the screen will be lost in any case, until it gets refreshed - by whichever means, usually by an update -- in this case -- of the KUAL menu.
Absolutely clear, thanks
Aeris is offline   Reply With Quote
Old 09-18-2013, 06:53 AM   #20
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
@ixtab: Thanks, found it (it was in the bridge ) .

That exposed a not-completely-accurate assumption in all my previous stuff, so, yay .

Anyway, done, updated the zip in the previous message .
NiLuJe is offline   Reply With Quote
Old 09-18-2013, 08:09 AM   #21
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
@knc1: What's the issue and and on which devices with Backdoor Lock's eips calls?
Hmm...
It was (or is) on a Paperwhite.
I had to change the default configuration to disable the on-screen report.

"Life" has interfered with all of my hobby plans for the last three weeks or so -
So I should be able to find that device in my stack of "work to finish" and provide you with better details of the problem(s).
knc1 is offline   Reply With Quote
Old 09-19-2013, 04:21 PM   #22
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
FWIW, I just went ahead and played with the 'clear screen' idea a bit, and it's of course doable by playing around with the framebuffer...

It's not pretty, but it works .

(Cf. current_ss_preview() in the ScreenSavers KUAL ext).

(Yes, that means that a crazy person should be able to build a crappy image viewer around KUAL ).
NiLuJe is offline   Reply With Quote
Old 09-20-2013, 08:52 PM   #23
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
I remember seeing on here somewhere a script (by twobob??) that copies the screen to a buffer, runs the eips part, then restore what was shown. Can't seem to find it with the search... Seems to be what you are looking for?
brianinmaine is offline   Reply With Quote
Old 09-20-2013, 09:46 PM   #24
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
This?

Yeah, that'll work. The downside is that the filename is unpredictable.

You could create a slightly patched "screenshot" executable like this:
Code:
sed -e 's/\/mnt\/us\/screenshot_%Y_%m_%dT%H_%M_%S%z.png/\/tmp\/screenshot_for_kual_and_eips_hack.png/' /usr/sbin/screenshot > screenshot.hacked
... and then use screenshot.hacked instead. It will always create the screenshot as /tmp/screenshot_for_kual_and_eips_hack.png.

Just make sure that the file "name" is exactly the same length as the original one in the binary, i.e., that the screenshot.hack and screenshot files end up with the exact same file size again.*

(No, I don't attach the patched file for copyright reasons, and I suggest that you don't ship it either. You could just create it on the fly within the script, if it doesn't exist).

(*) I didn't find a way to tell sed to insert a zero byte, that would be cleaner. But for some reason \x00 doesn't work.

PS: Tested on Paperwhite only. I'm pretty confident that this would work on the Touch too, but I'm not sure about other devices (e.g. K3/K4).
ixtab is offline   Reply With Quote
Old 09-20-2013, 10:04 PM   #25
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by brianinmaine View Post
I remember seeing on here somewhere a script (by twobob??) that copies the screen to a buffer, runs the eips part, then restore what was shown. Can't seem to find it with the search... Seems to be what you are looking for?
Geekmaster did that -
Check some of his "video" threads.
knc1 is offline   Reply With Quote
Old 09-20-2013, 10:13 PM   #26
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
The problem is that writing to the framebuffer usually has no effect when the framework is running. The screenshot/eips solution works though. Don't ask me why
ixtab is offline   Reply With Quote
Old 09-21-2013, 08:49 AM   #27
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
Thanks guys, but did anyone even check the code I linked in my message?

I went with 'dump fb0 -> show pretty things -> restore fb0 dump -> refresh screen', which is, IIRC, more or less what GM did (except maybe he used a proper ioctl to refresh the screen, I use eips '' to make sure it works everywhere).

I thought about using screenshot/scrot manually, but I'm not sure it's even there on FW 2/3, so I didn't even try ;p.

Last edited by NiLuJe; 09-21-2013 at 08:58 AM.
NiLuJe is offline   Reply With Quote
Old 09-21-2013, 11:50 AM   #28
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Ouch. Yeah, I seem to have missed the "refresh screen" part - I stopped after writing to the framebuffer and not seeing a result
ixtab is offline   Reply With Quote
Old 03-09-2016, 05:08 PM   #29
Vladi69
Enthusiast
Vladi69 began at the beginning.
 
Vladi69's Avatar
 
Posts: 29
Karma: 10
Join Date: Feb 2016
Device: PW3, Kobo Glo HD
Hello, I do not know if this thread is stilla active.
I installed in my PW3 this hack, but can not figure what "Tweak battery icon" do, maybe it is not compatible?

Thank you
Vladi69 is offline   Reply With Quote
Old 03-09-2016, 08:42 PM   #30
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
It does not appear to do anything on my PW-3

IIRC - when tweak'd, it shows a percentage of charge as a number.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pocket Pro 5" Is the battery "Nokia" compatible for real?? wayamauro Astak EZReader 76 02-24-2020 03:48 AM
"This American Life" retracts its Apple/Foxconn report Andrew H. News 4 03-16-2012 10:15 PM
SONY pocket edition: "Device locked" + "charge battery" obstacles? hermes Devices 3 06-02-2011 03:32 AM
British report takes aim at copyright "lobbynomics" GA Russell News 3 05-22-2011 02:06 PM
"Meditations", a unique self improvement book vminniti Self-Promotions by Authors and Publishers 16 10-05-2010 12:21 PM


All times are GMT -4. The time now is 10:43 AM.


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