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 10-28-2012, 06:29 AM   #31
pepijndevos
Connoisseur
pepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
I remember some patches that removed the tty reliance of X11.

My Kindle 4 also has a /etc/init.d/framework startx, I found that just before coming across this thread. Magic.
pepijndevos is offline   Reply With Quote
Old 10-28-2012, 08:31 AM   #32
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
@hawhill... I am struggling to get x2x configured right to do some driving?

me@dev ~ $ x2x -font "6x13" -geometry 600x800 -from :0.0 -to k:0 -nopointermap
Quote:
BadMatch (invalid parameter attributes)
was wondering if I was missing something obvious. I'll keep trying obviously. thanks
twobob is offline   Reply With Quote
Old 10-28-2012, 11:35 AM   #33
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
Hm, I did as follows: 1. Connected via USB networking, used SSH port forwarding:
host$ ssh -L6001:127.0.0.1:6000 root@192.168.2.2
(port 6001 is display :1 for X11/TCP)

On the Kindle, the framework should probably be stopped
k3$ /etc/init.d/framework stop

And an update loop wouldn't hurt, I guess
k3$ while sleep 3; do echo 1 > /proc/einkfb/update_eink; done
(/proc path might be wrong, didn't check)

Then I started the X server on the Kindle
k3$ LD_LIBRARY_PATH=. ./Xfbdev

Then on the host I started applications and x2x:
host$ DISPLAY=:1 firefox &
host$ x2x -to :1 &

And that's about it. I didn't use any other features from x2x, and I did not install any fonts on the K3 (which means only fonts using the RENDER/Xft extension work, but that's enough for testing, but will break "simple" X11 apps).
hawhill is offline   Reply With Quote
Old 10-28-2012, 02:38 PM   #34
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by hawhill View Post

host$ ssh -L6001:127.0.0.1:6000 root@k
(port 6001 is display :1 for X11/TCP)

On the Kindle, the framework should probably be stopped
k3$ /etc/init.d/framework stop

And an update loop wouldn't hurt, I guess
k3$ while sleep 3; do echo 1 > /proc/eink_fb/update_display ; done

Then I started the X server on the Kindle
k3$ Xfbdev

Then on the host I started applications and x2x:
host$ DISPLAY=:1 firefox &
host$ x2x -to :1 &
much obliged. I missed the port forwarding duh.

Last edited by twobob; 10-28-2012 at 02:40 PM.
twobob is offline   Reply With Quote
Old 10-28-2012, 02:48 PM   #35
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
Well, it should have worked via TCP connection to the host, too - but I gave it one try and it didn't work right out of the box, so rather than messing with that I decided to do it "as usual" and forward the port.
hawhill is offline   Reply With Quote
Old 10-28-2012, 03:27 PM   #36
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
I mentioned the problems with nibble ordering for framebuffer output. I played a bit and what I've found is that a combination of Xvfb and x11vnc (both built with the buildroot environment) plus kindlevncviewer does a resonably good job. It's a bit awkward to use three programs in the place of one X server, but x11vnc does a good job recognizing changed parts of the screen and kindlevncviewer knows about eink updates. Together, they provide a nice bundle. Memory footprint is about ~20MByte RSS.

I did not explore this further, but x11vnc has options to start an Xvfb server automatically upon vnc client connection.

I was still using this with SSH-forwarded X11 applications (and even a window manager) from the USB host machine. It would be interesting to see if the K3 could be switched over to a Debian-ARM-based userland, running Xvnc (I think Debian has this, would probably work better than Xvfb+x11vnc) plus kindlevncviewer for the graphical UI.
hawhill is offline   Reply With Quote
Old 10-28-2012, 03:32 PM   #37
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by hawhill View Post
I mentioned the problems with nibble ordering for framebuffer output. I played a bit and what I've found is that a combination of Xvfb and x11vnc (both built with the buildroot environment) plus kindlevncviewer does a resonably good job. It's a bit awkward to use three programs in the place of one X server, but x11vnc does a good job recognizing changed parts of the screen and kindlevncviewer knows about eink updates. Together, they provide a nice bundle. Memory footprint is about ~20MByte RSS.

I did not explore this further, but x11vnc has options to start an Xvfb server automatically upon vnc client connection.

I was still using this with SSH-forwarded X11 applications (and even a window manager) from the USB host machine. It would be interesting to see if the K3 could be switched over to a Debian-ARM-based userland, running Xvnc (I think Debian has this, would probably work better than Xvfb+x11vnc) plus kindlevncviewer for the graphical UI.

not so cumbersome I don't want to badly
will try this right now. Appreciate all your help. I owe you a beer
twobob is offline   Reply With Quote
Old 10-29-2012, 07:33 AM   #38
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
hmm. x11vnc keeps shutting down when I try to attach xtightvnc to it.

Quote:
29/10/2012 10:14:31 Pixel format for client 192.168.1.65:
29/10/2012 10:14:31 32 bpp, depth 24, little endian
29/10/2012 10:14:31 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
29/10/2012 10:14:31 rfbSetTranslateFunction: server bits per pixel not 8, 16 or 32 (is 4)
29/10/2012 10:14:31 client_count: 0
29/10/2012 10:14:31 Restored X server key autorepeat to: 1
29/10/2012 10:14:31 viewer exited.
will read more docs. again.
twobob is offline   Reply With Quote
Old 10-29-2012, 07:43 AM   #39
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
Oh, I don't think that Xfbdev and x11vnc will play together - the error message is clear in that regard.

I was talking about using Xvfb (virtual framebuffer, pure RAM-based X server) plus x11vnc:

Kindle eink display <-> kindlevncviewer <-> x11vnc <-> Xvfb <-> X11 applications

I used "-encoding copyrect" for kindlevncviewer and "-screen 0 600x800x16" for Xvfb. No special parameters for x11vnc, except pointing it to Xvfb's X11 display address.

It messed up when I tried Xvfb with 8bpp depth, but I didn't investigate.
hawhill is offline   Reply With Quote
Old 10-29-2012, 07:58 AM   #40
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
ah. good info lol

(I was trying to do a 4bpp -rawfb but yes, it doesn't work )
twobob is offline   Reply With Quote
Old 10-29-2012, 10:37 PM   #41
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Had blackbox WM running very nicely

lots of fun
twobob is offline   Reply With Quote
Old 10-30-2012, 09:14 AM   #42
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Word to the wise:

After a few good hours of struggling with bug@ http://forums.gentoo.org/viewtopic-p...fonts+dir.html in Xvfb

simply rebuilding the Xfontslib fixed the issue.
phew
twobob is offline   Reply With Quote
Old 10-30-2012, 02:16 PM   #43
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
whilst I still haven't got the keyboard input working I dig manage to get the output back on the screen as you describe with no nibble errors via the 3 way linkup.

very nice actually. with just a little bit more work from the community this could be a solid little version of X. I actually think it does a very decent job. all things considered.

I didn't even stop the framework just to see how it would perform under load and abusive operation. ico happily shoved around the screen with surprising speed.

need a few more heavy duty apps x-compiled now for the 3. give it a real test. but yeah. great!
Attached Thumbnails
Click image for larger version

Name:	Selection_303.png
Views:	256
Size:	2.7 KB
ID:	95176  
twobob is offline   Reply With Quote
Old 10-30-2012, 04:54 PM   #44
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Okay so I got the keyboard input working. via the PC.

next up would be either implementing it via OTG USB or getting the onboard device working (preferable)

but seriously? This is genuine fun!

If you had said that my kindle 3 would be monitoring this screen in realtime and running blackbox WM with a smattering of X apps this time 3 months ago... well... I wouldn't have believed you.

Brilliant progress here. just got factor the PC out of the loop to get a genuinely shocking result.

: ) Thanks Hawhill. superstar
Attached Thumbnails
Click image for larger version

Name:	Selection_305.png
Views:	285
Size:	11.2 KB
ID:	95201  
twobob is offline   Reply With Quote
Old 10-30-2012, 04:58 PM   #45
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by twobob View Post
...
Brilliant progress here. just got factor the PC out of the loop to get a genuinely shocking result. ...
To get a "genuinely shocking result", you need to replace the PC with a neon sign transformer.
geekmaster is offline   Reply With Quote
Reply

Tags
8bpp, kindle3, startx, x server, xorg

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
startx? On a K3???? qlob Kindle Developer's Corner 1 11-21-2012 02:30 PM
Action Ballantyne, R. M: Digging for Gold. V1. 25 Sep 2010 crutledge BBeB/LRF Books 0 09-25-2010 08:01 AM
Action Ballantyne, R. M: Digging for Gold. V1. 25 Sep 2010 crutledge ePub Books 0 09-25-2010 08:00 AM
Action Ballantyne, R. M: Digging for Gold. V1. 25 Sep 2010 crutledge Kindle Books 0 09-25-2010 07:59 AM
Some Kindle source code digging TadW Kindle Developer's Corner 9 10-04-2009 01:34 AM


All times are GMT -4. The time now is 03:09 PM.


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