09-24-2007, 09:29 AM | #1 |
Member
Posts: 24
Karma: 11
Join Date: Sep 2007
Device: iLiad
|
Connect to Xfbdev - no vnc
I was wondering if this is possible, in order to use iLiad monitor for editor like xemach or vim (or whatsoever) and typing. I tried the following:
on iLiad I changed the following line in /etc/rc5.d/S99start Code:
/usr/bin/Xfbdev -screen 768x1024x8 -3button -dpi 160 -br -nolisten tcp & Code:
/usr/bin/Xfbdev -screen 768x1024x8 -3button -dpi 160 -br & #-nolisten tcp & Code:
core2duo ~ # nmap -p 6000 ereader Starting Nmap 4.20 ( http://insecure.org ) at 2007-09-23 23:44 GMT Interesting ports on ereader.mshome (192.168.1.172): PORT STATE SERVICE 6000/tcp open X11 MAC Address: 00:16:7C:00:27:11 (iRex Technologies BV) Nmap finished: 1 IP address (1 host up) scanned in 0.127 seconds Code:
core2duo ~ # DISPLAY=ereader:0 xmessage asd Xlib: connection to "ereader:0.0" refused by server Xlib: No protocol specified Error: Can't open display: ereader:0 So what can I do? Is there any xauth for compiling and is it safe? If you have any idea please post here. Regards, Gil |
09-24-2007, 09:49 AM | #2 |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
Try adding "-ac" to the launcher script. I believe it will allow connections that way.
|
Advert | |
|
09-24-2007, 10:00 AM | #3 |
Member
Posts: 24
Karma: 11
Join Date: Sep 2007
Device: iLiad
|
Yead thanks it worked! I simply did:
Code:
DISPLAY=ereader:0 xterm Regards, Gil |
09-24-2007, 10:07 AM | #4 |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
I'm attaching my port of VNC (server and viewer), you may have more luck with that and the hacked libX11 that has screen refresh built in.
Take a look at this thread and read around. I don't know of anyone who has a working solution as of yet. |
09-24-2007, 02:11 PM | #5 |
Member
Posts: 24
Karma: 11
Join Date: Sep 2007
Device: iLiad
|
A workaround for the keyboard, just type:
Code:
core2duo ~ # DISPLAY=ereader:0 xterm -hold -e screen Code:
core2duo ~ # screen -x Hope this help |
Advert | |
|
09-24-2007, 02:14 PM | #6 |
Member
Posts: 24
Karma: 11
Join Date: Sep 2007
Device: iLiad
|
PS: maybe you don't have screen... On gentoo just
Code:
emerge screen @Adam: I'm not experienced in porting or sort of... Anyway if this could be tried on your vmware image and/or I don't risk very much to brick my iLiad I could give it a try in my sparetime. Regards, Gil |
09-24-2007, 02:24 PM | #7 |
Member
Posts: 24
Karma: 11
Join Date: Sep 2007
Device: iLiad
|
Is the displayMgr that's responsable for refreshing? If so, there is a "-a" option that will accept message from any host.
Code:
root@ereader:~# displayMgr -h Usage: displayMgr -<option> <argument> no arguments : start server process (local access only) -a : allow messages to be sent from any host (starts server process) -h : display this message -p : disable partial update -w <filename> : load waveform from filename I think that with a little of scripting is possible to update every keystroke, so using iLiad as a monitor for typing. Regards, Gil |
09-26-2007, 03:39 AM | #8 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2007
Location: Tokyo, Japan
Device: iRex iLiad
|
displayMgrClient
Don't forget this useful tool too. If you combine the S99start modification above, as well as the screen trick above, as well as this displayMgrClient trick, you can use the iRex as a minimal X11 display!! Way cool.
Code:
root@ereader:~# displayMgrClient -h Usage: displayMgrClient -<option> <argument> no arguments : send messages to local loop -d <dotted decimal ip address> : send messages to ip address -h : display this message -p : test of partial update -r <seconds> : repeat a full update every <seconds> -t : update toolbar area Code:
root@ereader:~# displayMgrClient -d 127.0.0.1 -r 4 (W)displayMgrClient.c:156,main() Server address 127.0.0.1 (I have no idea what kind of message displayMgrClient is sending behind the scenes.. but it's not that important to me because I can just run it on the iRex. If you really wanted to figure it out maybe you could use tcpdump?) -Jim Last edited by jimbocho; 09-26-2007 at 09:33 PM. |
09-26-2007, 09:25 PM | #9 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2007
Location: Tokyo, Japan
Device: iRex iLiad
|
Using iRex as PC display with VNC
Thanks to Adam for sharing his VNC client and server ports! I thought I would share with everyone how I got the iRex to be a display for my Windows PC using them.
Start VNC server on your PC first. I chose to not set a password to make it easier for the iRex to connect. Then download Adam's vnc.tar.gz from above and copy it to a CF card and put it in the iRex. Then ssh to the iRex and run: Code:
cd /media/cf tar zxf vnc.tar.gz cd vnc LD_LIBRARY_PATH=/media/cf/vnc/lib ./vncviewer -display=:0 10.193.243.198 Code:
displayMgrClient -d 127.0.0.1 -r 1 Besides the mouse refresh, the other big caveat is that for speed there is only minimal display refreshing, so after switching windows a few times, you start to get a lot of artifacts.. Hope some other people find this info useful.. Thanks to Adam B. for his porting efforts! -Jim Last edited by jimbocho; 09-26-2007 at 09:35 PM. |
09-27-2007, 07:17 PM | #10 |
Member
Posts: 24
Karma: 11
Join Date: Sep 2007
Device: iLiad
|
Nice info
Is the vnc that Adam posted some thread ago here? Anyway, good job. I didn't have much time, anyway I started a kde session, but after the refresh you loose the wallpaper. Try some fixing if you want: Code:
core2duo: ~ # DISPLAY=ereader:0 startkde |
09-27-2007, 10:20 PM | #11 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2007
Location: Tokyo, Japan
Device: iRex iLiad
|
vnc is an attachment in this same thread, message #4. Here is the direct link though:
https://www.mobileread.com/forums/sho...58&postcount=4 Thanks for the info on KDE. -Jim |
03-31-2008, 07:30 PM | #12 |
Member
Posts: 14
Karma: 10
Join Date: Mar 2008
Device: None
|
I find this tool very useful for reading books in djvu (because javadjvu doesn't have zoom, pan, bookmarks etc.). Problem is that when refreshing using displayMgr it doesnt refresh well, some pixels from previous page are still there. but when I press button for some page in content lister it refreshes well. Is there any way to refresh automatically (but to refresh well)? Does file iliad_refresh.conf has anything to do with it? How to start vnc in full screen (at the bottom of the screen there is toolbar from I guess matchbox)
Last edited by Luka Trifunovic; 03-31-2008 at 08:11 PM. |
04-09-2008, 04:00 PM | #13 | |
Evangelist
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
|
Quote:
It has only one line of text (and a new-line), containing a word ("Full" or "Typing") and a number. The word indicates the type of refresh: Full - refresh witn a screen flash, very little ghosting. Typing - refresh stealthly, a lot of ghosting The number is the timeout in milliseconds to wait for more changes to the screen before doing th refresh. The lower it is, faster refreshes but you can "double-refreshes" (it refresh the screen a number of times one after another). Examples: Full 750 Typing 100 Hope that clarifies the iliad_refresh.conf file |
|
04-12-2008, 10:30 AM | #14 |
Member
Posts: 14
Karma: 10
Join Date: Mar 2008
Device: None
|
Thanks!
I put "Full 1500", but there is still ghosting (little). But as I said when I press flipbar (it turns, page in content lister in background) and refreshes screen and than there is no ghosting. I there any way to do this kind of refresh automatically? |
04-12-2008, 10:56 AM | #15 |
Member
Posts: 14
Karma: 10
Join Date: Mar 2008
Device: None
|
I just compared it with dilllo, I have same settings but dillo refresh is much better. How is that possiblle?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iLiad Scratchbox VNC Server Usage | BTolputt | iRex Developer's Corner | 2 | 02-02-2009 01:57 AM |
Connect is no longer Connect it's now The eBook Store from Sony | Lobo59 | Sony Reader | 14 | 12-18-2007 12:27 PM |
iLiad Hacking the Xfbdev: what are your intentions? Here are mines... | Antartica | iRex Developer's Corner | 1 | 05-04-2007 01:12 PM |
Change PDF title in Connect/Import files w/o Connect | jessesn | Sony Reader | 6 | 10-02-2006 12:55 PM |