03-28-2012, 10:08 PM | #16 |
Zealot
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
|
Hi,
Does anyone have the man or help pages for eips? What commands are there? Thanks, James |
03-28-2012, 10:15 PM | #17 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
eips is a custom amazon command that we do not have source for. You can do just "eips" and then try all the options, or better yet, look at all the ways it is used in the startup scripts in the kindles.
It can display text (eips x y "text"), and images (eips -g file.png), and can even scroll the text display (eips -z 2 38). It can also display a pretty pattern (eips -p), and clear the screen (eips -c). Adding -f makes it do a full flash update (eips -f -c, eips -f -g, etc.)... To just refresh changes to the framebuffer you can do eips '' (as seen in the "algorithmic art script" thread). Combining -f with other options is really limited to K4 and Touch. On K3 you are better not combining it with other options. Last edited by geekmaster; 03-29-2012 at 02:51 AM. |
Advert | |
|
03-28-2012, 10:51 PM | #18 |
Zealot
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
|
Thanks GM. I tried all the commands you listed and works.
Best Regards, James |
03-29-2012, 02:54 AM | #19 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Check out examples showing how I abused eips beyond its usefulness in a script in this new "tinysh - tiny limited onscreen shell" thread:
https://www.mobileread.com/forums/sho...d.php?t=173657 |
03-29-2012, 03:34 AM | #20 |
Pest
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
|
Advert | |
|
03-29-2012, 07:36 AM | #21 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Check if the copy of dd you are using supports the seek= and skip= options.
Those would give you access to the last (or other selected) line. skip= for skipping the un-wanted lines on a fb read. seek= to seek past the un-changed lines on a fb write. |
03-29-2012, 08:29 AM | #22 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
If you look at almost any script I have published that uses the framebuffer, I have been using dd skip and seek parameters, so apparently they *do* work. You can check if they are supported by typing "dd" with no parameters, to see usage. I have never yet seen any dd anywhere (even limited busybox versions) without both of those parameters. They are the main critical parameters (along with bs, count, if, and of) that distinguish "dd" from "cat". And if what I said was that unclear, let me restate it: "dd" works great, but binary files copied with "cat" do not make good copies in all cases. I was just warning people to use dd instead. The busybox version of "cat" in some kindles may have a bug that makes it process embedded special characters even when its output is redirected. It seems that any time I try to reduce my text output word count, I get these confusing replies. Last edited by geekmaster; 04-03-2012 at 11:40 AM. |
|
03-29-2012, 09:30 AM | #23 | ||
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Perhaps a bit of context would help you out:
Quote:
Quote:
|
||
03-29-2012, 09:37 AM | #24 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Last edited by geekmaster; 03-29-2012 at 09:44 AM. |
|
04-03-2012, 04:06 AM | #25 |
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
May I ask you a question - what does the Home button use to clear the screen? is it 'eips -c' actually? I just discovered that 'eips -c' remains many artefacts when we're running some third-party applications on the Kindle Touch such as CoolReader3.
After 6 page refreshes I invoke 'eips -c' and redraw the full screen, but numerous artefacts remain. Last edited by varnie; 04-03-2012 at 04:10 AM. |
04-03-2012, 10:26 AM | #26 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
You can use "eips -c -f" to do a "full flash clear" (black -> white), which clears off more eink display artifacts. (I fixed post #17, but the original is shown in blue above.) You can look in the GPL source code to find the "definitive" answer to your Home button question, but my "guess" is that the Home button (indirectly) does an ioctl system call to do a "full flash clear". The "eips" command shown above probably does the same ioctl system call. Last edited by geekmaster; 04-03-2012 at 02:45 PM. |
|
04-03-2012, 03:26 PM | #27 |
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
Thank you, it works for my task.
Now all I need to figure out is how to tell/instruct eips not to clear the first 10-20 pixels from the top. The problem I have is that after I perform 'eips -c -f', then redraw a page completely, the header and footer areas (the two narrow strips, ~10 and ~20 pixels in height, respectively) are untouched. |
04-03-2012, 03:33 PM | #28 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
When using eips to display images with a starting position, the column position needs to be 0, or it just horizontally clips the image instead of moving it sideways. But the row position (0-39) works fine. Another way (which I have actually used, unlike the method above) is to define a shell variable that contains 50 ascii space chars, and then just use eips to "print" that to lines 1 to 38 (with the -f option in your case): PHP Code:
Last edited by geekmaster; 04-03-2012 at 05:00 PM. |
|
12-20-2019, 02:13 PM | #29 |
Connoisseur
Posts: 70
Karma: 11789
Join Date: Dec 2019
Device: PW4
|
Newby here looking for assistance with eips;
I am using eips to display small png files with single numeric digits for use as a clock. However, the display of the file is cropped and squashed. The files are 268px x 362px. Any ideas how to resolve this? I figure I can display 4 clock digits by adjusting the x offset for the 2-4 digits. Thanks! Last edited by handyguy; 12-20-2019 at 02:17 PM. |
12-20-2019, 03:30 PM | #30 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Shameless self-promotion: All Hail FBInk!.
As for an actual answer: eips is very particular as to how it wants a PNG to be encoded in order not to mangle it (IIRC, it expects what is roughly colloquially called PNG8. See the ScreenSavers' hack cover mode for all the nitty gritty details). That's probably what's happening here. (FBInk is much more lenient on that front). Last edited by NiLuJe; 12-20-2019 at 03:33 PM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
K4 and Touch framebuffer changes | geekmaster | Kindle Developer's Corner | 13 | 05-19-2014 08:08 PM |
e-ink/reader framebuffer device (killed it, sorta) | tarvoke | enTourage eDGe | 26 | 01-08-2012 04:58 AM |
Kindle Qt embedded framebuffer driver | hassan | Kindle Developer's Corner | 2 | 08-20-2011 10:31 PM |
Nook eInk getting a "major update" (v1.5) update next week | =X= | News | 3 | 11-16-2010 12:54 PM |