Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2013, 02:34 PM   #16
greektardis
Member
greektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud of
 
Posts: 13
Karma: 27490
Join Date: Mar 2013
Location: Greece
Device: Kindle Dxi 2.5.8
Twobob and ixbab pase tell me how to do it on my kindle dx
greektardis is offline   Reply With Quote
Old 03-07-2013, 03:46 PM   #17
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: 6299993
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
Ill just paste my /usbnet/etc/config for the DX here...

one sec Ill go hookup it up
Attached Thumbnails
Click image for larger version

Name:	Selection_102.png
Views:	279
Size:	13.0 KB
ID:	102549   Click image for larger version

Name:	Selection_103.png
Views:	322
Size:	29.8 KB
ID:	102550   Click image for larger version

Name:	Selection_104.png
Views:	295
Size:	29.0 KB
ID:	102551   Click image for larger version

Name:	Selection_105.png
Views:	337
Size:	30.3 KB
ID:	102552   Click image for larger version

Name:	Selection_106.png
Views:	336
Size:	20.1 KB
ID:	102553   Click image for larger version

Name:	Selection_107.png
Views:	345
Size:	108.0 KB
ID:	102554  

Last edited by twobob; 03-07-2013 at 03:55 PM.
twobob is offline   Reply With Quote
Advert
Old 03-07-2013, 05:44 PM   #18
greektardis
Member
greektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud of
 
Posts: 13
Karma: 27490
Join Date: Mar 2013
Location: Greece
Device: Kindle Dxi 2.5.8
twobob you 're great! I 'll try that tommorow
greektardis is offline   Reply With Quote
Old 03-07-2013, 06:11 PM   #19
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
Note that twobob's settings as shown reflect the defaults. You need to follow ixtabs advice to change it (or, as I told you, change the settings of your LAN). Use an editor to edit the "config" file according to ixtabs post. Change the RNDIS interface IP accordingly.
hawhill is offline   Reply With Quote
Old 03-08-2013, 01:46 PM   #20
greektardis
Member
greektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud of
 
Posts: 13
Karma: 27490
Join Date: Mar 2013
Location: Greece
Device: Kindle Dxi 2.5.8
Hawhill I have succeeded in changing the IP settings and Terminal finally saw Kindle! (I followed ixtab's settings: 192.168.42.2 for usbnetwork IP and for RDNIS device IP 192.168.42.1)

then I followed the last steps:
[root@kindle root]# /etc/init.d/netwatchd stop
system: I netwatchd:def:stopping Netwatch Daemon
[root@kindle root]# /etc/init.d/powerd stop
Stopping Power Management Daemon: [root@kindle root]# /mnt/us/kindlevncviewer/kvncviewer.sh
192.168.42.1:1 &

The last phrase though was unsuccessful and I got this message
[root@kindle root]# com.lab126.powerd failed to set value for property preventScreenSaver (0X3)

I am just one step behind! Could you help me again?
greektardis is offline   Reply With Quote
Advert
Old 03-08-2013, 02:25 PM   #21
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: 6299993
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
dx right?

should read

lipc-set-prop com.lab126.powerd preventScreenSaver 1

?


just try poking that at the ssh. check it works..

perhaps the file got mangled?
twobob is offline   Reply With Quote
Old 03-09-2013, 06:35 AM   #22
greektardis
Member
greektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud of
 
Posts: 13
Karma: 27490
Join Date: Mar 2013
Location: Greece
Device: Kindle Dxi 2.5.8
these are the contents of the knvcviwer.sh file:
#!/bin/sh
cd $(dirname "$0")
LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH

lipc-set-prop com.lab126.powerd preventScreenSaver 1
./kindlevncviewer -config config.lua "$@"
lipc-set-prop com.lab126.powerd preventScreenSaver 0

# send menu key twice to refresh display
echo "send 139" > /proc/keypad
echo "send 139" > /proc/keypad


That means that the line that you have written twobob is already there...!

A question about installing vncviewer in the Kindle. I unzip the file and I get one folder named kindlevncviewer and inside it are two folders, one of which is named kindlevncviewer, another one named launchpad and some files. Should I copy the first (big) folder kindlevncviewer in Kindle or open it and copy its contents separately?

I also edited another file called kindlevncviewer.ini to match the IP settings I have for my Kindle. These are the lines that I changed:
[Actions]
;; start kindlevncviewer, connect to 192.168.42.1:1
V U = !/mnt/us/kindlevncviewer/kvncviewer.sh 192.168.42.1:1 &

Now what guys?
greektardis is offline   Reply With Quote
Old 03-09-2013, 07:21 AM   #23
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by greektardis View Post

cd $(dirname "$0")
LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH

Now what guys?
Fix the above three statements.

1) You can't be certain that the current working directory will remain unchanged.
Don't include the current working directory in any *nix path.
This isn't a Windows FHS plan, it is the Linux FHS plan.

2) Don't assume that LD_LIBRARY_PATH is empty when this is entered. Always include its current setting with your additions.

3) Use the information you have on hand in those three statements to provide an absolute path to your application's library files.
knc1 is offline   Reply With Quote
Old 03-10-2013, 08:20 AM   #24
greektardis
Member
greektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud of
 
Posts: 13
Karma: 27490
Join Date: Mar 2013
Location: Greece
Device: Kindle Dxi 2.5.8
knc1 I am a novice I don't quite understand what you are talking about...

These lines are written from Hawhill I guess who wrote vncviewer... I am just a writer who is trying to connect kindle as a second monitor to rest my eyes and I am in the last step of the procedure written by tinyapps.org (http://tinyapps.org/docs/e-ink-monitor.html)

and I need help!

Hawhill are you there? You wrote vncviewer you can help me...!
greektardis is offline   Reply With Quote
Old 03-10-2013, 03:09 PM   #25
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: 6299993
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
cd $(dirname "$0") <-- = change to the directory of the program you are trying to run

LD_LIBRARY_PATH=. <-- = add the current directory (SHOULD be the one above) to the LD_LIBRARY_PATH...

you could make that absolute I guess like...
LD_LIBRARY_PATH=/mnt/us/kindlevncviewer:$LD_LIBRARY_PATH

IIRC there is like a jpg lib and libvncclient? in there... not much anyways.. both variation can cover all use cases for this thing... It works on mine as Hawhill provisioned and so would this other (more standard) variation.

as it is an ephemeral value that will "just disappear" at the end of the script run it wont matter in this context... however as knc1 says as a general rule you would not have something as horrible as "." in your global LD_LIBRARY_PATH.

Your error, you reported, however was nothing to do with any of that... you said that
lipc-set-prop com.lab126.powerd preventScreenSaver 1

failed in some way...

Have you checked the output of just

lipc-set-prop com.lab126.powerd preventScreenSaver 1
via ssh... or myts.. or something (I use both of them on the DX )

perhaps the script got mangled in some way... ???

I really am at a bit of a loss as I run this thing all the time...

Hope that at least provides some background. if not a solution.

Last edited by twobob; 03-10-2013 at 03:41 PM.
twobob is offline   Reply With Quote
Old 03-10-2013, 04:31 PM   #26
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
The error reported is irrelevant as for now. I'd rather say that the host PC is misconfigured so it does either not present a VNC server listening on 192.168.42.1:5901 (which is VNC display :1) - or a firewall or similar prevents connections to it.
hawhill is offline   Reply With Quote
Old 03-18-2013, 11:23 AM   #27
greektardis
Member
greektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud ofgreektardis has much to be proud of
 
Posts: 13
Karma: 27490
Join Date: Mar 2013
Location: Greece
Device: Kindle Dxi 2.5.8
Hawhill you are my man! As I type these words I am now looking on My Kindle screen and it ... works! It is mirroring my imac display (75% of the whole desktop).

The solution of the mystery was on the Vine Server. The display was set on number 2 not on number 1. I changed it and everything works now.

Thanks to all the people that bothered to help, it's the first time I ask for advice in such a forum and I was moved by the interest and the generosity specially when the subject is about someone who doesn't know anything about programming!
greektardis is offline   Reply With Quote
Old 03-18-2013, 11:36 AM   #28
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: 6299993
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 yeah... I get that too.. Since I don't actually "use" a unified single screen anymore (since my paired screens died ) so yes - my 1st monitor is screen :1 and the right hand monitor is :2

Glad you got it sorted mate.
twobob is offline   Reply With Quote
Old 08-02-2013, 07:28 AM   #29
ekwus
Junior Member
ekwus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2013
Location: Edinburgh
Device: Kindle DXG
Hey Guys

Thanks for all the great work on the VNC Viewer. I've just finished hooking up my new DXG to the Raspberry Pi using USB Networking and the Kindle VNC Viewer, amazingly great work, thanks.

I do have an issue where the Viewer seems to crash out after an hour or two running and sometimes the DX reboots, leaving me back at the USB Drive Mode screen!

My gut feeling is that the screensaver is maybe kicking in but think I have switched it off and also stopped powerd and netwatchd (not sure what these do but thinking they are to do with power management)

Has anyone seem this before?

Cheers

Dave
ekwus is offline   Reply With Quote
Old 08-02-2013, 12:04 PM   #30
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Duplicate posting in multiple threads is discouraged at this site.

Plus, it makes it hard for readers to follow the discussion when they have to jump from thread-to-thread.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Monitor Problem Moonraker Sigil 1 10-12-2012 10:41 AM
Kindle 3 wifi mode monitor | sniffing visgean Kindle Developer's Corner 14 08-01-2011 09:04 AM
Christian Science Monitor Recipe Problem Tegan Recipes 3 03-20-2011 10:14 AM
Monitor Folders richacol Calibre 0 05-22-2009 11:00 AM
Christian Science Monitor labels Kindle a ‘Trojan horse’ dreams News 72 03-22-2009 03:24 PM


All times are GMT -4. The time now is 04:29 AM.


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