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 06-25-2017, 09:45 AM   #76
phoenix512
Enthusiast
phoenix512 began at the beginning.
 
phoenix512's Avatar
 
Posts: 45
Karma: 10
Join Date: Feb 2014
Device: kindle PW2
Quote:
Originally Posted by encol View Post
There is a README in the archive.
Read it.
Then:
1) extract the archive on your kindle
2) install KTerm
3) open it from KUAL
4) cd <folder_where_you_extracted_the_archive>
5) ./luajit vncviewer.lua <ip_of_your_vnc_server>:<port_of_your_server>
Thank you very much. you solved the problem for me. I launched the vncviewer in kterm. It can successfully connect with TightVNC server. However, It seems that I have a scaling problem. Not all the screen fits into kindle. In fact, part of the bottom and right part of the screen is cropped. I tried to change client_width and height in the file config.lua but nothing changed. Also, I set the screen resolution in server configuration.
What can I do for this?
phoenix512 is offline   Reply With Quote
Old 06-25-2017, 04:38 PM   #77
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
try to add -rotateFB 90 parameter
encol is offline   Reply With Quote
Advert
Old 06-26-2017, 05:06 AM   #78
phoenix512
Enthusiast
phoenix512 began at the beginning.
 
phoenix512's Avatar
 
Posts: 45
Karma: 10
Join Date: Feb 2014
Device: kindle PW2
Quote:
Originally Posted by encol View Post
try to add -rotateFB 90 parameter
Thanks for your help but adding this option just rotates the screen to portrait. The screen connects in landscape as default. My monitor is 1920*1080.
I tried to use:
./luajit vncviewer.lua -scale 2(and 0.5) 192.168.1.5:5900
but it didn't change anything
phoenix512 is offline   Reply With Quote
Old 02-22-2018, 02:55 AM   #79
a00tkh
Junior Member
a00tkh began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2018
Device: Kindle paperwhite gen1, Sony DPT-S1, reMarkable Tablet
Question

Quote:
Originally Posted by encol View Post
There is a README in the archive.
Read it.
Then:
1) extract the archive on your kindle
2) install KTerm
3) open it from KUAL
4) cd <folder_where_you_extracted_the_archive>
5) ./luajit vncviewer.lua <ip_of_your_vnc_server>:<port_of_your_server>
I follow your instruction to connect my raspberry pi to kindle paperwhite.
However, KTerm return:
ConnectToTcpAddr: connect
Unable to connect to VNC server

I try to connect raspberry pi to my window 10 laptop via RealVNC and it's Okay with no error message shown.

It seems like I do something wrong with my kindle setup, can anyone help me?
a00tkh is offline   Reply With Quote
Old 05-14-2018, 08:29 PM   #80
Faceman2k18
Junior Member
Faceman2k18 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2018
Device: Kindle PW3 JB
Can you ping the PIs address?

are you using a direct USB connection or Wifi? a direct USB connection to the PI requires some extra set up on the PI side to work propery.
Faceman2k18 is offline   Reply With Quote
Advert
Old 04-29-2024, 03:27 PM   #81
scribe_user
Member
scribe_user began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2024
Device: scribe
Just sharing a working version tested on 5.16.2.0.1 for others. I am able to use my Android mobile screen(Apps like Eink Bro Browser(created for android e-ink readers),chrome are looking good on kindle screen).
Changes in the attachment:

1. Recent bug fix from Github(key-event) bleeding, fixes an issue where VNC touch events were getting propagated to kindle gui
2. couple of fixes from older responses in this thread, missing constants
3. recent fixes for newer versions of PW, to refresh the screen in an infinite loop
4. Working touch control

Usage:
1. Adjusting the screen resolution of android phone(will be acting as VNC server) to match the Kindle resolution
Log into Android shell using adb connect & use the below command:
wm size 1836x2448 :Kindle Scribe Resolution(need to be adjusted as per kindle model)
wm size reset :Should be executed, when mobile phone should be reset to it's original resolution
There are some applications available in play store, to adjust mobile screen resolution with out using adb tools on laptop.

2. I am starting VNC server on my mobile with application https://github.com/bk138/droidVNC-NG

3. Now I have a VNC server, which is providing the content in the resolution of kindle. Replace the IP address and Port from your VNC server(android) in the file: kvncviewer.sh
./luajit vncviewer.lua 192.168.23.12:5900
4. If any password is set in the VNC server, provide the same in the file:vncviewer.lua. Replace nil with "<yourpassword>" (including the quotes)
5. Lauch the vnc viewer from KUAL

How to exit from vnc viewer:

Option 1: Force Restarting the kindle(easiest option). Even when the VNC server is stopped on mobile, it is recommended to restart the kindle immediately, after using it as VNC viewer
Option 2: If you can do SSH into kindle, find out the parent PID of the kvncviewer.sh process from htop and kill the same using pkill -P $parent_pid

Screenshot:

Click image for larger version

Name:	Kindle.jpg
Views:	40
Size:	594.1 KB
ID:	207917

Viewer:
kvncviewer.zip

I would like to thank all the developers(creators) for their contributions and making our devices more productive.

Disclaimer: I am not responsible for any damage to the kindles. I just colated the files from different sources and wanted to share a working version(giving back to community). Setting up vnc viewer requires USB Networking(Wifi mode) working for this use case. If you want to use this application, be ready to be patient(time it takes to get it work for Newbie, is high) and doing your research.
scribe_user is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KindleVNCviewer hack: full screen display? bbhuston Amazon Kindle 0 04-28-2012 11:19 PM


All times are GMT -4. The time now is 09:19 AM.


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