View Single Post
Old 02-03-2013, 02:38 PM   #324
Gianni
Member
Gianni began at the beginning.
 
Posts: 22
Karma: 14
Join Date: May 2011
Device: Kindle Touch jb
running this script on my raspberry, I am able to update - only - the first rows of the kt5 touch (the space where the menu is), but when I click the home button on the kindle, the script crashes...

#!/bin/sh -xe
/usr/bin/Xvnc -geometry 1200x824 -depth 16 -dpi 160 -alwaysshared :1 &
sleep 1
DISPLAY=:1 xterm &
DISPLAY=:1 dwm &
vncviewer :1 &
x2vnc -east localhost:1 &
ssh root@192.168.15.244 /mnt/us/kindlevncviewer/kvncviewer.sh 192.168.15.201:1

this is kvncviewer.sh on the kindle, I commented the last two rows because on the kt5 they don't work
#!/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
Gianni is offline   Reply With Quote