![]() |
#16 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
|
![]() |
![]() |
![]() |
#17 |
Developer's Corner Mascot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#18 | |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#19 | |
Developer's Corner Mascot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
|
Quote:
|
|
![]() |
![]() |
![]() |
#20 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() |
![]() |
![]() |
![]() |
#21 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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). |
|
![]() |
![]() |
![]() |
#22 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() |
![]() |
![]() |
![]() |
#23 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
#24 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 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). |
![]() |
![]() |
![]() |
#25 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Check some of his "video" threads. |
|
![]() |
![]() |
![]() |
#26 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
![]() |
![]() |
![]() |
![]() |
#27 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#28 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
![]() |
![]() |
![]() |
![]() |
#29 |
Enthusiast
![]() 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 |
![]() |
![]() |
![]() |
#30 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |