04-01-2012, 01:03 PM | #16 |
Member
Posts: 17
Karma: 2600
Join Date: Mar 2012
Device: Kindle 3
|
If I start tinysh via kite exit terminates only the evaluation part but the input loop keeps adding chars to the CMD variable and updates the command line.
|
04-01-2012, 01:26 PM | #17 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
By the way, I now have text output using a "dd" to "blit" characters onto the eink screen from a small PNG picture that contains all the ascii characters. It is more than twice as fast as watching uncompressed text come in from a BBS using a 300bps acoustic modem.
And with my smallest tiny font, I get 114 lines of 150 characters, all quite readable if you are near-sighed AND you wear magnifying glasses. I do not know what to call this yet, but I remember the idomatic expression "If you don't stop doing that, you'll go blind!", and may have the same effect, so I need a humorous name for what that warning was originally intended for. It only works on 8bpp displays now (k4 and touch), but it will not be too difficult to port to the k3 if I make sure all characters are multiples of 2px wide (including the whitespace between them). Tiny fonts are a lot faster than larger ones, so I was thinking of using it ONLY to display characters missing from eips. That way all the NORMAL characters would be fast, and only the "special" characters would be slow. I suppose I should post a demo of my tiny texter script... Yes? I know -- because watching the tiny text print at "teletype speed" (but 3x faster), I will call it "titty - tiny teletype"... Is that too offensive? Last edited by geekmaster; 04-01-2012 at 08:27 PM. |
Advert | |
|
04-01-2012, 01:52 PM | #18 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
Kite looks useful and I was tempted to install it but never did, fearing it a little when I saw its embedded binary (with no source that I could understand)... maybe fbdev can comment on the ssh/launchpad/kite different behaviours |
|
04-01-2012, 02:14 PM | #19 | ||
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
Quote:
|
||
04-01-2012, 04:34 PM | #20 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
https://www.mobileread.com/forums/sho....php?p=2026074 Actually it is a script, so "Script Kittty" would work, as a play on words for the pejorative "Script Kiddie". Anyway, check out just how small it is... |
|
Advert | |
|
04-01-2012, 08:22 PM | #21 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Exactly my thoughts regarding kite. Although C, the source code preprocessing made it essentually an undocumented foreign language that I did not have time to learn, so I never installed it. It DOES look quite fascinating though...
|
04-09-2012, 04:57 PM | #22 |
hub
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
Sometimes curiosity throws you into troubles... I just ran this script on my Touch and... tada... it bricked (I know, I know, it was stupid idea! )
I debricked it and the good thing is that I got it exactly back to the previous state (even my collections, hacks, etc.) with this. (I always keep a backup image inside my KT) Moral of story: Do not try this script on Touch as of now (April 9th, 2012). Last edited by thatworkshop; 04-09-2012 at 05:05 PM. |
04-09-2012, 05:19 PM | #23 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
PEBKAC* Error!
Quote:
Your "debricking" procedure was just a complicated way of restarting your kindle. When in doubt, restart first... You could have restarted by holding the power button for 20 seconds to do a hard restart. When you ran this K3 script on your Touch, it paused the framework to prevent the K3 keyboard from opening a framework search bar, and it was waiting for you to type a command on the K3 keyboard. It *does* say in the first paragraph "only for the K3", and it says that if the keyboard keys are not responding to keypresses, slide the power switch to "wake" the kindle and enable the keyboard. Because the framework was paused, the screen contents would not change by pressing the Home or Power buttons until the framework is resumed (or the kindle restarted). You could have resumed the framework from SSH (see the "killall -CONT ..." command in the script). You could have done a reboot command from SSH. You could have restarted by holding the power button for 20 seconds. The backup copy you installed was probably identical to what was already there (unless you installed something that changed it since the backup). Reinstalling it did not do any harm, and at least forced you to restart your kindle to restart the framework (cvm and Xorg). SUGGESTION: If you want to play with this script on a touch, you can change the defined key codes to the "keys" that the touch supports. I suggest commenting out the "killall" lines first until you have a good way to exit. The touch generates "keypress" codes for screen touches (one and two fingers) and for orientation (rotation) events. You can find the touch keycodes from SSH with: while:;do waitforkey;done Of course, this script will be a LOT more useful when it has onscreen keyboard support. UPDATE: To prevent these problems in the future, for any script that pauses the framework I will add a "trap" command to resume the framework on script termination, and I will add "exit" key detection for all kindle models. For the touch, that could be "put two fingers on the screen and press Home button" (i.e. "3-finger salute", like ctrl-alt-del). Although that makes the scripts larger, it should eliminate any chance of confusion. I have tested working script code that does these things now, and it works quite well. Last edited by geekmaster; 04-10-2012 at 03:03 AM. |
|
04-10-2012, 08:42 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:
This script (temporarily) pauses (killall -stop) both cvm and Xorg, but if you exit normally (type "exit" on K3 keyboard), it resumes (killall -cont) both of them. They would automatically restart if you restarted your kindle. There have been no reported bugs in any external programs called by this script (eips, hexdump, dd, waitforkey). On the touch, waitforkey returns keycodes for Home, 1-finger touch, 2-finger touch, left/right/up/down rotations, and headphone-jack insert and removal. The rotation "keys" only return "pressed" status, but the other events also return "released" status. This script normally waits for keypresses in the "waitforkey" program. Even picking up the kindle is likely to return a "rotate-up" keycode, but none of the touch keycodes are processed so it would just go back and wait for another key. Silently sucking up all the keypress events like this would LOOK like it is bricked, but again, restarting would put everything back to normal (unless SOMETHING ELSE bricked it). To Do: I am now gathering all my script code snippets into one program that supports all the OLD functionality (including graphical arts demos), plus new features, including onscreen keyboards and other GUI elements (radio buttons, check boxes, sliders, etc.). Then AFTER it all works as a script, I will go through a process of translating it all to C in successive-refinement "baby steps". The point of starting with scripts is 3-fold: 1) Teach shell scripting (teaching is the best way to learn). 2) Develop kindle-specific code with the most efficient algorithms (required for scripts). 3) Create kindle debricking tools with minimal external dependencies (but good fo general use too). P.S. One of my K4NTs has a non-functional diags now. The menu comes up as an all-black screen. All I did was testing a fix for somebody where I just did a "dd if=/dev/zero of=/dev/mmcblk0p3" in a RUNME.sh script. It still boots main, so the startup scripts DID rebuild it. At some point, I will try flashing a diags kernel and partition. This is part of the reason I wrote the "getkernels" script. These devices seem to be rather touchy and unpredictable at times. I think that if your touch really DID brick, it was probably a firmware or startup script bug triggered by an unclean shutdown. But we will not know for sure unless we can predictably duplicate your symptoms, and I do not have time to try that. At least you did not lose your content, and that is a good thing... |
|
04-23-2012, 02:56 AM | #25 |
Enthusiast
Posts: 32
Karma: 46558
Join Date: Feb 2012
Device: Kindle4NT
|
|
04-23-2012, 03:47 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:
I am working in C at the moment, which is a lot easier with the tcc package I put together. I plan to implement the onscreen keyboard in C. I just finished a complete redesign of my eink display routines that work on all eink kindles (in C), and now the K4 main boot is correct (not a negative image), and the code is much faster now. Anyway, there is only so much time, and so many different things that compete for my attention. |
|
04-23-2012, 09:31 AM | #27 |
Enthusiast
Posts: 32
Karma: 46558
Join Date: Feb 2012
Device: Kindle4NT
|
|
04-23-2012, 10:15 AM | #28 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I have SO MANY things I want to finish (raw proof-of-concept code not ready for release), and so little time. My "to do" list gets shuffled depending on whatever recently grabbed my attention. |
|
04-24-2012, 07:43 AM | #29 | |
Enthusiast
Posts: 32
Karma: 46558
Join Date: Feb 2012
Device: Kindle4NT
|
Quote:
|
|
04-24-2012, 07:58 AM | #30 | |
Guru
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
Quote:
Code:
wget http://some.com/kindle-doom-download |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help finding tiny towers and tiny zoo | mojkadona | Kindle Fire | 5 | 04-26-2012 07:02 PM |
Kindle onscreen keyboard shortcuts | Conniemartin | Amazon Kindle | 3 | 12-27-2011 02:59 PM |
Night Brothers - Vampire Thriller - 99 cents for a limited timefor a limited time | SidneyW | Self-Promotions by Authors and Publishers | 0 | 07-11-2011 09:49 AM |
Jointech JE100: any bigger onscreen keyboard? | datebtraveller | More E-Book Readers | 1 | 04-30-2010 06:33 AM |
PRS-500 Dictionary for Sony PRS500/5 (autorun from SD card) with onscreen keyboard | Clemenseken | Sony Reader Dev Corner | 3 | 07-05-2008 08:33 AM |