![]() |
#391 |
( ͡° ͜ʖ ͡°){ʇ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
|
an Old Man Very Happy:
You know I was thinking just the same thing last night. Really glad you said that. Nice To Have: Perhaps I should visit the mythical world of dithering (you have the 8 bit code in fbgnuboy) as this would surely benefit from that. (for both targets). Tinned Unicorn: My thought was also making it push "out" (the lack of native FB realtime monitoring is an annoyance - on the Non X enabled lower devices) And a Pet Unicorn, preferably that I can fold up in a small bag for easy travel ![]() Last edited by twobob; 04-12-2013 at 10:17 AM. |
![]() |
![]() |
![]() |
#392 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Apr 2009
Location: Canada
Device: PRS-505
|
That's ok Hawhill, I just wanted to know if the vnc was possible with a KPW.
One day, I might have a look at your code when I have some time. ![]() |
![]() |
![]() |
![]() |
#393 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8
Karma: 26290
Join Date: Apr 2013
Device: Kindle PW
|
Played around with getting this running on my PW today. I've got to say I'm impressed with the greyscale and the refresh rate. I never expected an eink display might actually make a very practical and useful vnc client!
So, to get this up and running, of course the paperwhite's display doesn't refresh automatically, so I needed to add eips in a while loop, but no one ever really mentioned how to implement this. The way I did it is by adding the eips loop, with an ampersand after it, to the *top* of /mnt/us/kindlevncviewer/kvncviewer.sh like so: Code:
#!/bin/sh cd $(dirname "$0") LD_LIBRARY_PATH=. export LD_LIBRARY_PATH while :; do eips ''; usleep 80000; done & lipc-set-prop com.lab126.powerd preventScreenSaver 1 ./kindlevncviewer -config config.lua "$@" lipc-set-prop com.lab126.powerd preventScreenSaver 0 Now, launching this from kterm overlays the vnc window on top of the terminal, and they compete for the foreground. So, ideally we should launch it from KUAL. For this I edited /mnt/us/extensions/vncviewer/menu.json like so: Code:
{ "items": [ {"name": "VNC Connection", "priority": 1, "action": "/mnt/us/kindlevncviewer/kvncviewer.sh -password mypassword 10.0.0.2:1"} ] }
On that note, hawhill, if you're willing to accept a modest donation towards development, I have 0.1 bitcoins I'd like to donate. (Worth $24 last week, currently worth something like $9) Just provide a bitcoin address to send to, and I'd be happy to send a tip your way. Last edited by inedible; 04-15-2013 at 03:33 PM. |
![]() |
![]() |
![]() |
#394 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8
Karma: 26290
Join Date: Apr 2013
Device: Kindle PW
|
PS: To anyone trying to get the eips command to work: That's two single quotes (''), not a double quote (").
|
![]() |
![]() |
![]() |
#395 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8
Karma: 26290
Join Date: Apr 2013
Device: Kindle PW
|
Heh, I just realized I can use a stupidly convoluted setup to get windows to use 1024x758.
Over an RDP session, the resolution gets set to whatever you resize the window to. So, simply run an rdp session over vnc! On a linux machine, install tightvnc and rdesktop. Edit ~/.vnc/xstartup Comment out the line at the end that says: /etc/X11/xsession, and add a line that says: Code:
while :; do rdesktop -f 10.0.0.10; done Now, launch a tightvnc server with the appropriate size: Code:
vncserver -geometry 1024x758 In fact, for me it actually works with no more lag than straight VNC, though I'm using two virtual machines on the same physical box. So, they're probably connected by some crazy 100gbit internal psychic network or something; So that probably makes a difference. Last edited by inedible; 04-23-2013 at 04:59 AM. |
![]() |
![]() |
![]() |
#396 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 171512
Join Date: Feb 2012
Location: Jena
Device: k3gb (3g)
|
Today I used your viewer and I have to repeat myself: Awesome work!!!!
|
![]() |
![]() |
![]() |
#397 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 6550
Join Date: May 2013
Location: Bosnia & Herzegovina
Device: Kindle Paperwhite 1 WiFi
|
I am amazed by your work. I've just been experimenting on my paperwhite and I made it possible to click by editing config.lua: (bold = code added by me)
Code:
clickevent = 0 x, y = 0, 0 -- this handler will be called upon key presses (input events, actually) function handleInput(channel, itype, code, value) if itype == 3 then if code == 57 then clickevent = value + 1 if x and y then SendPointerEvent(x, y, 0) end elseif code == 53 then x = value elseif code == 54 then y = value if clickevent == 1 then SendPointerEvent(x, y, 1) end end ![]() P.S. one of the things I found hard to perform were doubleclicking. I suppose it requires 2 subsequent clicks on the same coordinates. Last edited by Cykotitan; 10-28-2013 at 10:29 AM. |
![]() |
![]() |
![]() |
#398 | |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8
Karma: 26290
Join Date: Apr 2013
Device: Kindle PW
|
Quote:
To make it work in landscape mode I had to swap Y and X, and invert Y: Code:
clickevent = 0 x, y = 0, 0 -- this handler will be called upon key presses (input events, actually) function handleInput(channel, itype, code, value) if itype == 3 then if code == 57 then clickevent = value + 1 if x and y then SendPointerEvent(y, x, 0) end elseif code == 53 then x = value elseif code == 54 then y = math.abs(value - 1024) if clickevent == 1 then SendPointerEvent(y, x, 1) end end end Now, if only there was a way to rotate the screen without having to SSH into it while reading a book in landscape... Last edited by inedible; 06-23-2013 at 06:06 PM. |
|
![]() |
![]() |
![]() |
#399 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 6550
Join Date: May 2013
Location: Bosnia & Herzegovina
Device: Kindle Paperwhite 1 WiFi
|
I was not missing an end, I've only pasted the partial function because it also had handling for keys (altough those are unused on KT/Paperwhite)
This was my implementation for autodetection of screen orientation, however produces wrong results if you leave the book mode in Landscape even while the dispay is not set to Landscape orientation: Code:
f = io.popen('/usr/bin/lipc-get-prop com.lab126.winmgr orientationLock', 'r') orient = f:read('*l') f:close() function handleInput(channel, itype, code, value) if itype == 3 and channel == 0 then if code == 57 then clickevent = value + 1 SendPointerEvent(orient == 'U' and x or math.min(client_width, 1023)-y, orient == 'U' and y or x, 0) elseif code == 53 then x = value elseif code == 54 then y = value if clickevent == 1 then SendPointerEvent(orient == 'U' and x or math.min(client_width, 1023)-y, orient == 'U' and y or x, 1) end end Last edited by Cykotitan; 06-24-2013 at 10:44 PM. |
![]() |
![]() |
![]() |
#400 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Great additions! I hope I find time soon and will integrate them into the ZIP - if you are fine with that?
|
![]() |
![]() |
![]() |
#401 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 15586
Join Date: Dec 2012
Device: kindle 4nt
|
Just a quick question, is there a way to fix the kindle refresh rate with a good accuracy (say 1Hz) when using the vncviewer?
|
![]() |
![]() |
![]() |
#402 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 15586
Join Date: Dec 2012
Device: kindle 4nt
|
|
![]() |
![]() |
![]() |
#403 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#404 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Aug 2013
Location: Edinburgh
Device: Kindle DXG
|
Quote:
login as: pi pi@172.22.1.102's password: Linux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Aug 2 12:01:16 2013 from pharlap.home pi@raspberrypi ~ $ telnet 192.168.2.2 Trying 192.168.2.2... Connected to 192.168.2.2. Escape character is '^]'. Welcome to Kindle! ################################################# # N O T I C E * N O T I C E * N O T I C E # ################################################# Rootfs is mounted read-only. Invoke mntroot rw to switch back to a writable rootfs. ################################################# [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]# [root@kindle root]# /mnt/us/kindlevncviewer/kvncviewer.sh -password kindle 192.168.2.1:1 com.lab126.powerd failed to open lipc for preventScreenSaver event 02/08/2013 13:16:15 VNC server supports protocol version 3.8 (viewer 3.8) 02/08/2013 13:16:15 We have 2 security types to read 02/08/2013 13:16:15 0) Received security type 2 02/08/2013 13:16:15 Selecting security type 2 (0/2 in the list) 02/08/2013 13:16:15 1) Received security type 16 02/08/2013 13:16:15 Selected Security Scheme 2 02/08/2013 13:16:15 VNC authentication succeeded 02/08/2013 13:16:15 Desktop name "pi's X desktop (raspberrypi:1)" 02/08/2013 13:16:15 Connected to VNC server, using protocol version 3.8 02/08/2013 13:16:15 VNC server default format: 02/08/2013 13:16:15 32 bits per pixel. 02/08/2013 13:16:15 Least significant byte first in each pixel. 02/08/2013 13:16:15 TRUE colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 partially updating eink display (0,0)-(822,823) Broadcast message from root (Fri Aug 2 14:00:37 2013): The system is going down for reboot NOW! Broadcast message from root (console) (Fri Aug 2 14:00:39 2013): We're switching back to USB MS, so if you're wondering why your terminal is frozen, go read the docs! |
|
![]() |
![]() |
![]() |
#405 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
That listing shows that powerd was stopped before lipc could process the 'prevent screen saver' event. Try it the other way around, I.E: Doing the 'prevent screen saver' prior to stopping any of the system services. But 40 minutes? That sounds more like something is running out of memory, triggering the OOM Killer, that leads to a forced re-boot. (^ ^ ^ ^ BFG) |
|
![]() |
![]() |
![]() |
Tags |
application, kindle, source, viewer, vnc |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free (GPLv2) Translation Dictionaries | Elleo | Amazon Kindle | 3 | 01-11-2011 10:57 PM |
Calibre native app on iphone for reading news? | bigreat | Calibre | 2 | 07-21-2010 11:50 PM |
Android Android App: VNC | leo315 | enTourage Archive | 4 | 05-13-2010 06:06 PM |
Android VNC viewer (use your PC from the eDGe!) | devseev | enTourage Archive | 2 | 04-11-2010 01:21 AM |
PalmPDF - native PDF Viewer for Palm OS 5.x | Colin Dunstan | Reading and Management | 2 | 11-23-2005 02:09 PM |