Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-13-2012, 02:42 PM   #136
Rockets00
Connoisseur
Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.
 
Posts: 60
Karma: 6492
Join Date: Oct 2011
Device: kindle 2
2x Home doesn't work on kindle 2
Rockets00 is offline   Reply With Quote
Old 05-13-2012, 02:48 PM   #137
Rockets00
Connoisseur
Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.
 
Posts: 60
Karma: 6492
Join Date: Oct 2011
Device: kindle 2
This tutorial (http://tinyapps.org/docs/e-ink-monitor.html) says to telnet:
1. /etc/init.d/netwatchd stop
2. /etc/init.d/powerd stop
What does they do and why I don't have to start them later?
If I start with SHIFT+VU, will these 2 be executed?
Rockets00 is offline   Reply With Quote
Advert
Old 05-15-2012, 08:04 AM   #138
Rockets00
Connoisseur
Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.
 
Posts: 60
Karma: 6492
Join Date: Oct 2011
Device: kindle 2
Is it possible to replace

elseif code == KEY_HOME then
Quit()

with

elseif code == KEY_HOME then
!killall kindlevncviewer
Rockets00 is offline   Reply With Quote
Old 05-15-2012, 02:07 PM   #139
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
I'm still unsure why the Quit() would not work. I guess something else is getting in between. Then your suggestion wouldn't work either. When you want to execute programs from Lua, you have to use os.execute("here goes the command"), e.g. os.execute("killall kindlevncviewer"). Well, try to see if that fixes your problem.

I rather guess the K2 has some slightly differing key codes. You can use Lua's "print(...)" function to print some debug output to the standard output - so try if you manage to find out the right key codes. I would be interested :-)
hawhill is offline   Reply With Quote
Old 05-15-2012, 07:27 PM   #140
Rockets00
Connoisseur
Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.
 
Posts: 60
Karma: 6492
Join Date: Oct 2011
Device: kindle 2
I used spacebar instead. Quit() works, os.execute("killall kindlevncviewer") works too. If I use home for both, kindle freezes, but I can still use "killall kindlevncviewer" via telnet.

do you mean
elseif code == KEY_HOME then
print(KEY_HOME)
?
Rockets00 is offline   Reply With Quote
Advert
Old 05-16-2012, 08:39 AM   #141
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
nah, I meant to introduce the print() as e.g. print("code is", code) before the full if sequence or similar.

But I guess when it _freezes_, it will rather be something outside the viewer or some kind of race condition. I guess it won't be so easy to track down. But of course, you can also do something like you wrote to check whether the code gets executed at all. But don't invest too much time when you have a good workaround already.
hawhill is offline   Reply With Quote
Old 05-16-2012, 02:34 PM   #142
Rockets00
Connoisseur
Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.
 
Posts: 60
Karma: 6492
Join Date: Oct 2011
Device: kindle 2
The volume keys are controlled by the Kindle system and not available to applications. Home is reserved for exiting applications and is not available for use by the application.

http://kdk-javadocs.s3.amazonaws.com...eKeyCodes.html
Rockets00 is offline   Reply With Quote
Old 05-16-2012, 02:37 PM   #143
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by Rockets00 View Post
The volume keys are controlled by the Kindle system and not available to applications. Home is reserved for exiting applications and is not available for use by the application.

http://kdk-javadocs.s3.amazonaws.com...eKeyCodes.html
Those limits apply to java kindlets, not to native apps such as this, which can use the volume keys. You can also use the volume buttons in scripts that use the "watiforkey" command to read them.

Last edited by geekmaster; 05-16-2012 at 02:45 PM.
geekmaster is offline   Reply With Quote
Old 05-16-2012, 04:13 PM   #144
Rockets00
Connoisseur
Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.
 
Posts: 60
Karma: 6492
Join Date: Oct 2011
Device: kindle 2
It works! I'm so happy now.

I tried remove Home command completely, i expected default action to return home. Didn't help.

Step to victory:
i noticed "set_k3_keycodes()" in config.lua and removed this line!
It is OK now.

If we check keys.lua, we wil find, that K3 uses different codes:
function set_k3_keycodes()
KEY_AA = 190
KEY_SYM = 126
KEY_HOME = 102
KEY_BACK = 158
KEY_PGFWD = 191
KEY_LPGBCK = 193
KEY_LPGFWD = 104
KEY_VPLUS = 115
KEY_VMINUS = 114
KEY_FW_UP = 103
KEY_FW_DOWN = 108
KEY_FW_PRESS = 194
end

Default Home is set to:
KEY_HOME = 98

I suppose Kindle 2 and DX use default values. What values take Kindle 4?
Rockets00 is offline   Reply With Quote
Old 05-16-2012, 04:24 PM   #145
Rockets00
Connoisseur
Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.
 
Posts: 60
Karma: 6492
Join Date: Oct 2011
Device: kindle 2
My next problem:
autostart
1. /etc/init.d/netwatchd stop
2. /etc/init.d/powerd stop

If I add these lines to config.lua, will it work?

os.execute("/etc/init.d/netwatchd stop")
os.execute("/etc/init.d/powerd stop")

How can I start them after I quit KVV automatically? I want to use config.lua.
If it is not possible, I will try to use launchpad, but it will be not automated.

Last edited by Rockets00; 05-16-2012 at 04:46 PM.
Rockets00 is offline   Reply With Quote
Old 05-16-2012, 04:33 PM   #146
Rockets00
Connoisseur
Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.
 
Posts: 60
Karma: 6492
Join Date: Oct 2011
Device: kindle 2
Does password work for the connection over usbNetwork? I tried
-password mama
and it will not connect
Rockets00 is offline   Reply With Quote
Old 05-16-2012, 04:45 PM   #147
Rockets00
Connoisseur
Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.Rockets00 got an A in P-Chem.
 
Posts: 60
Karma: 6492
Join Date: Oct 2011
Device: kindle 2
KEY_VPLUS = 115
KEY_VMINUS = 114
KEY_MENU = 139
KEY_BACK = 91
are not used at all.
Am I right?
Rockets00 is offline   Reply With Quote
Old 05-16-2012, 10:28 PM   #148
mrevent
Zealot
mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 105
Karma: 87300
Join Date: Feb 2011
Device: kindle 3w, dxg, 5, Kv
Thanks for the tip on large mouse pointer in Windows. I discovered thereafter that "Universal Access Preferences" in Mac does the same (much better than the "Highlighter application" in my previous post).

By the way, did someone more experienced than me work on keyboard integration for Mac? Currently, the "alt" key in Kindle is mapped to Command etc and I could not find the way to change key assignment (for normal keys it's easy; I failed in changing the assignments for function keys --shift, command, alt etc.)

I hope that with a good keyboard integration + "Mouse Keys" one can wholly control the computer from within Kindle. (assigning joystick controller moves to mouse moves would be great, for instance)

@ Rockets00: password works for me to connect to "Vine Server" in Mac via telnet. I use this command: /mnt/us/kindlevncviewer/kvncviewer.sh -password mama 192.168.2.1 &

Last edited by mrevent; 05-16-2012 at 10:32 PM.
mrevent is offline   Reply With Quote
Old 07-12-2012, 10:27 AM   #149
sunnydev
Member
sunnydev is on a distinguished road
 
Posts: 15
Karma: 70
Join Date: Jul 2012
Location: Germany
Device: Kindle
FYI:
For those with Raspberry Pi and archlinuarm the usbnet fires straight up with:
#ifconfig usb0 192.168.2.1 up

I just need to figure out the x config start up for the best display on the Kindle.
Any suggestions?
sunnydev is offline   Reply With Quote
Old 07-12-2012, 11:13 AM   #150
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
Errrm, something like the xinit command line mentioned in the OP? :-)

Nice idea to use a Raspi plus the Kindle. Makes a compact but nice interface. However, as a desktop platform I don't find this very useful as the Raspi should not really be much faster than the Kindle is. But as a frontend when building stuff with the Raspi, it's certainly nice.
hawhill is offline   Reply With Quote
Reply

Tags
application, kindle, source, viewer, vnc

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:30 PM.


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