10-28-2012, 06:29 AM | #31 |
Connoisseur
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. |
10-28-2012, 08:31 AM | #32 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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:
|
|
Advert | |
|
10-28-2012, 11:35 AM | #33 |
Wizard
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). |
10-28-2012, 02:38 PM | #34 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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:
Last edited by twobob; 10-28-2012 at 02:40 PM. |
|
10-28-2012, 02:48 PM | #35 |
Wizard
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.
|
Advert | |
|
10-28-2012, 03:27 PM | #36 |
Wizard
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. |
10-28-2012, 03:32 PM | #37 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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:
not so cumbersome I don't want to badly will try this right now. Appreciate all your help. I owe you a beer |
|
10-29-2012, 07:33 AM | #38 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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:
|
|
10-29-2012, 07:43 AM | #39 |
Wizard
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. |
10-29-2012, 07:58 AM | #40 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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 ) |
10-29-2012, 10:37 PM | #41 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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 |
10-30-2012, 09:14 AM | #42 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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 |
10-30-2012, 02:16 PM | #43 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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! |
10-30-2012, 04:54 PM | #44 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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 |
10-30-2012, 04:58 PM | #45 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
|
Tags |
8bpp, kindle3, startx, x server, xorg |
|
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 |