View Single Post
Old 04-28-2014, 06:08 AM   #1118
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
I would like to confirm that this script (spoiler) works on my Touch, that means after exiting KOReader, you see the home screen of nickel.
Spoiler:
Code:
#!/bin/sh
export LC_ALL="en_US.UTF-8"

# we're always starting from our working directory
cd /mnt/onboard/.kobo/koreader/

# export trained OCR data directory
export TESSDATA_PREFIX="data"

# export dict directory
export STARDICT_DATA_DIR="data/dict"

# stop Nickel
killall -STOP nickel

# store the content of the framebuffer
#dd if=/dev/fb0 of=.last_screen_content

# finally call reader
./reader.lua /mnt/onboard 2> crash.log

# continue with nickel
#cat .last_screen_content | /usr/local/Kobo/pickel showpic
#rm .last_screen_content
killall -CONT nickel
cat /mnt/onboard/KT_homebutton.bin > /dev/input/event0

Note: It is just per chance, that I have KT_homebutton.bin in the root instead of .kobo/koreader.

Last edited by tshering; 04-28-2014 at 12:07 PM.
tshering is offline   Reply With Quote