Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-08-2014, 10:24 AM   #1
Salah
Member
Salah began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Sep 2014
Device: Kindle 4
Broken Kindle 4 screen

So i got a kindle 4 with half of its screen working, but i'd like to use some software like vnc to see the whole screen on my pc, its using os 4.1.1 , wifi is working etc.
edit:
also would it be possible to tweak a button and make it rotate the screen when i press it ?

Last edited by Salah; 09-08-2014 at 10:44 AM.
Salah is offline   Reply With Quote
Old 10-05-2014, 09:00 PM   #2
PatrikLundin
Junior Member
PatrikLundin began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2014
Device: k3, k4, gen1 fire
I wrote a thing that did this at one point, but I never wrote it up sufficiently to retrace my steps. Here's a few binaries I found though: http://www.nothisispatrik.com/remote.zip . It was (and is, though the kindle is in pieces at the moment) meant to have the file "bmb" in cgi-bin of the tiny webserver that came with the k3/k4 jailbreaks. When loading it (<IP>/cgi-bin/bmb) it grabs a copy from /dev/ of the screen, converts it to a .bmp and shoves it across along with a Content-type: image/bmp. The .html file is a rough-edged thing that shows it and some buttons linking to another cgi-bin file, fkey, which dunks the query string of anything calling it into the input device. Using that, I could emulate the keyboard and fiveway as well, essentially controlling it completely through a browser.

I tested it on a k3 and a few k4s (some were just motherboards, I was hoping to start using them as headless linuxes although unfortunately I could never get them to work without a battery) though, and I'm terribly sorry, my notes and experimental files are a total mess. I'll see if I find the source somewhere, it was compiled with that native c chain (tcc) someone posted. If I don't or if it's just as easy, it was a pretty quick and easy hack - the screen is readable in /dev in a fairly straightforward format so all that's needed is to convert it to anything viewable on the pc side (or do so on the pc side) and shove it out thought the web server or through some other port.

EDIT Here's a few sources http://www.nothisispatrik.com/sources.zip with some binaries, again, sorry that they're a mess. These look more like they spawn their own server on port 8080. I vaguely remember trying to do that and getting it to work sorta, but with it hanging if I accessed it too often before giving up on the whole thing.

Last edited by PatrikLundin; 10-05-2014 at 09:09 PM.
PatrikLundin is offline   Reply With Quote
Old 10-13-2014, 10:47 AM   #3
Salah
Member
Salah began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Sep 2014
Device: Kindle 4
Quote:
Originally Posted by PatrikLundin View Post
I wrote a thing that did this at one point, but I never wrote it up sufficiently to retrace my steps. Here's a few binaries I found though: http://www.nothisispatrik.com/remote.zip . It was (and is, though the kindle is in pieces at the moment) meant to have the file "bmb" in cgi-bin of the tiny webserver that came with the k3/k4 jailbreaks. When loading it (<IP>/cgi-bin/bmb) it grabs a copy from /dev/ of the screen, converts it to a .bmp and shoves it across along with a Content-type: image/bmp. The .html file is a rough-edged thing that shows it and some buttons linking to another cgi-bin file, fkey, which dunks the query string of anything calling it into the input device. Using that, I could emulate the keyboard and fiveway as well, essentially controlling it completely through a browser.

I tested it on a k3 and a few k4s (some were just motherboards, I was hoping to start using them as headless linuxes although unfortunately I could never get them to work without a battery) though, and I'm terribly sorry, my notes and experimental files are a total mess. I'll see if I find the source somewhere, it was compiled with that native c chain (tcc) someone posted. If I don't or if it's just as easy, it was a pretty quick and easy hack - the screen is readable in /dev in a fairly straightforward format so all that's needed is to convert it to anything viewable on the pc side (or do so on the pc side) and shove it out thought the web server or through some other port.

EDIT Here's a few sources http://www.nothisispatrik.com/sources.zip with some binaries, again, sorry that they're a mess. These look more like they spawn their own server on port 8080. I vaguely remember trying to do that and getting it to work sorta, but with it hanging if I accessed it too often before giving up on the whole thing.
Wow this looks amazing but when i tried i got this error
Code:
[root@kindle Apps]# ./bmb
./bmb: line 6: srjava.util.ArrayListx����a�Isizexpw: not found
./bmb: line 6: srjdbm.recman.BlockIo
                                      xpz�: not found
./bmb: line 6: �k
                  S: not found
./bmb: line 6: cannot open �: no such file
./bmb: line 6: : not found
./bmb: line 6: cannot open �: no such file
./bmb: line 6: : not found
./bmb: line 6: �m
                  tA��?G���7: not found
./bmb: line 6: 
                ��=�l?�rn
                                    �
                                      �
                                        �
                                          ?�
                                            �
                                              �
                                                Aro
                                                         �

                                                           �
                                                            ����wytNeeds: not found
./bmb: line 6: ��w�F: not found
./bmb: line 7: syntax error: "(" unexpected
[root@kindle Apps]#
Salah is offline   Reply With Quote
Old 10-17-2014, 09:07 AM   #4
PatrikLundin
Junior Member
PatrikLundin began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2014
Device: k3, k4, gen1 fire
Hmm.. Looks like it's not interpreting it as a binary and attempting to run it as a script. Not sure why that would happen, possibly corrupt file? If it actually should run in the situation you show, it'd jam a .bmp file to stdout though - it needs to be set up to run through a web server through the other files or the output moved back to the PC in some other way. As a test, "./bmb >1.bmp" should save a bitmap "1.bmp" containing a screenshot. But since it's complaining about errors on certain lines (in a compiled program) something else has likely gone wrong making it not recognize it.
PatrikLundin is offline   Reply With Quote
Old 10-17-2014, 09:46 AM   #5
knc1
Helpdesk Junkie
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: 6,845
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Could it be the good ol' "Windows hides known extensions" strikes again?

Unless your Windows is installed to show known extensions, you can't tell the difference between files such as: bmp2 and bmp2.c

Last edited by knc1; 10-17-2014 at 10:16 AM.
knc1 is offline   Reply With Quote
Old 10-24-2014, 10:51 AM   #6
PatrikLundin
Junior Member
PatrikLundin began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2014
Device: k3, k4, gen1 fire
Nah, it's not even for windows - it runs on the kindle. So I guess if the prior was from running it on a computer (that isn't an arm6 based linux) yeah, that could be it, but the whole thing should run on the kindle. The server spawning version opens port 8080 and shoves a bitmap over it when accessed with a browser (from any os), so http://<kindles ip>:8080/ shows what is on the screen, the other ('bmb') just dumps a screenshot to stdout in the form of a .bmp file. I was using it with the little webserver that was there or came with the jailbreak, putting a script file in cgi-bin on the kindle that was just like 'echo Content-type: "image/bitmap\n" ; ./bmb'. I had way vaster plans for the whole whatever I was doing, it was mostly a convenience thing so I didn't have to reach over and look plus on some of the broken kindles or bare-bone motherboards (I bought some somewhere for like $2-$5 each, for K2/3/4 - hella deal for a functioning arm linux with wifi and a few gigs of space if they could function w/o battery) could be used. Kinda shelved the whole thing (hardware and all) which is why I'm answering super vaguely - if things calm down on some other projects they're expecting stuff on I'll try to dig out a board or kindle and see what exactly I was up to, wasn't anything complicated I just didn't write it up properly (if at all) since it was just a quick stepping stone to some much awesomer thing that would be worth posting about (I think, can't be sure since I have no idea what it was and I think later someone(s) else accomplished it separately).
PatrikLundin is offline   Reply With Quote
Old 10-24-2014, 01:12 PM   #7
knc1
Helpdesk Junkie
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: 6,845
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Aw, but there are a lot of readers here who view the files the Kindle presents over the USB cable with a Windows PC.

It is the Viewer (not the Kindle) that hides known extensions.
knc1 is offline   Reply With Quote
Old 11-01-2014, 05:35 PM   #8
PatrikLundin
Junior Member
PatrikLundin began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2014
Device: k3, k4, gen1 fire
Good point. Well, if there was confusion, none of this will do much of anything just placed on it - it has to be executed from the shell on the kindle in one way or another. Just dug out a K4 motherboard, but as it turns out my only K4 battery (itself kind of a mess) had been busted at some point. So I'll need to find my K3 supposing it has a battery or perhaps jailbreak one of the ones still in use. Though now I want to check a few things on this one since I have it out (I didn't have a way to talk to SPI devices (or be one) last time I had it out, nor did I have a serial interface, so I'm a little curious what this thing actually does do and say when it can't find a battery.
PatrikLundin is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to de-register a Kindle which has a broken screen uhstud2215 Amazon Kindle 8 08-23-2013 06:33 AM
Free Looking for a Kindle 3 with broken screen lunohod Flea Market 4 04-13-2012 02:12 AM
Hacking my Broken Screen Kindle 3 mpolo Kindle Developer's Corner 0 07-12-2011 06:02 PM
Kindle screen broken? oecherprinte Amazon Kindle 24 05-12-2011 12:41 AM
Broken Screen - Jailbroken Kindle janp92 Amazon Kindle 9 12-31-2010 03:16 PM


All times are GMT -4. The time now is 06:03 AM.


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