Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-26-2014, 02:34 PM   #1111
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
Quote:
Originally Posted by Markismus View Post
Could any of you Touch owners enable debugging with the "-d" flag after reader.lua in koreader_kobo.sh, start koreader and press the home button a number of times and post the resulting ev.log file?
Here you go!
Attached Files
File Type: txt ev_home_10times.log.txt (2.0 KB, 224 views)
tshering is offline   Reply With Quote
Old 04-26-2014, 02:48 PM   #1112
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
Quote:
Originally Posted by tshering View Post
Here you go!
Great! Exactly what we need. EV_KEY, code 102 has a value 1 when pressed and 0 when released. Wonder if we can shoot this into straight into /dev/input/event0 in lua or whether we have to use a shell script.
Markismus is offline   Reply With Quote
Old 04-26-2014, 04:16 PM   #1113
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
Quote:
Originally Posted by Markismus View Post
Rather nice would also be a binary file for the home button as generated by pacos' method.
At the Touch the home "button" is a key, therefore
Code:
cat KT_homebutton.bin > /dev/input/event0
I know that you know this, I mention it nevertheless.
Attached Files
File Type: bin KT_homebutton.bin (32 Bytes, 544 views)

Last edited by tshering; 04-26-2014 at 04:26 PM.
tshering is offline   Reply With Quote
Old 04-26-2014, 05:17 PM   #1114
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
Quote:
Originally Posted by tshering View Post
At the Touch the home "button" is a key, therefore
Code:
cat KT_homebutton.bin > /dev/input/event0
I know that you know this, I mention it nevertheless.
Thanks for mentioning nonetheless.
Markismus is offline   Reply With Quote
Old 04-27-2014, 07:30 AM   #1115
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
Quote:
Originally Posted by tshering View Post
At the Touch the home "button" is a key, therefore
Code:
cat KT_homebutton.bin > /dev/input/event0
KT_homebutton.bin doesn't do anything on an Kobo Aura for any /dev/input/eventx. So either (1) the file got corrupted, e.g. it has not come through the forum as a binary, but as a textfile. Or (2) the hack will have to check what kind of firmware and device is running and select the appropriate binary to send to /dev/input/eventx.

@tshering Does the _uploaded_ binary still work for you? Could you send the binary file in a compressed format such as a rar- or zip-file?

@paola or @pazos Could you check whether either of the binary files work on your mini?

@pazos Would upload your binary file for the mini? For route (2) that info would be needed

Would anyone be willing to generate the binary for the Kobo Glo and for the Kobo Aura HD by going through these steps?

Last edited by Markismus; 04-27-2014 at 07:36 AM.
Markismus is offline   Reply With Quote
Old 04-27-2014, 05:41 PM   #1116
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
Quote:
Originally Posted by Markismus View Post
KT_homebutton.bin doesn't do anything on an Kobo Aura for any /dev/input/eventx. So either (1) the file got corrupted, e.g. it has not come through the forum as a binary, but as a textfile. Or (2) the hack will have to check what kind of firmware and device is running and select the appropriate binary to send to /dev/input/eventx.

@tshering Does the _uploaded_ binary still work for you? Could you send the binary file in a compressed format such as a rar- or zip-file?
I did not try to download and test the uploaded file again. In any case I upload it now as zip.

Yesterday, I compared your Aura-binary with my Touch-binary, they were of considerable different size.

Edit: I downloaded the uploaded binary. I can confirm that the content is identical with the original binary file.
Attached Files
File Type: zip KT_homebutton.zip (200 Bytes, 174 views)

Last edited by tshering; 04-28-2014 at 05:01 AM.
tshering is offline   Reply With Quote
Old 04-28-2014, 04:24 AM   #1117
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
Quote:
Originally Posted by Markismus View Post
@paola or @pazos Could you check whether either of the binary files work on your mini?
sorry Marksimus, I am travelling without the Mini, but should be able to have a go at this tomorrow night.
paola is offline   Reply With Quote
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
Old 04-28-2014, 04:10 PM   #1119
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
I can comfirm that writting tshering's binary file to /dev/input/event0 does nothing on mi mini. I attach the bin file for the mini (pixie) in this post. As I said you on github, it is simply a matter of creating a folder (like "kobo") and populate it with bin files (like update-pixie, update-dragon, update-trilogy...) and add those lines to koreader_kobo.sh after "killall -CONT nickel"

Spoiler:


model=`/bin/kobo_config.sh 2>/dev/null`
printf "Refreshing nickel homescreen: "
case $model in
pixie | dragon | kraken )
cat kobo/update-${model} > /dev/input/event1
;;
trilogy )
cat kobo/update-${model} > /dev/input/event0
;;
* )
printf "[Error] model $model not supported\n"
exit 1
;;
esac
if [ $? -eq 0 ]; then
printf "[Done]\n"
fi

Attached Files
File Type: zip homebutton-mini.zip (323 Bytes, 173 views)
pazos is offline   Reply With Quote
Old 04-29-2014, 04:21 PM   #1120
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
Return to home screen after exiting koreader.

Quote:
Originally Posted by pazos View Post
.., it is simply a matter of creating a folder.. and add those lines to koreader_kobo.sh ...
Done, see issue #559.

Now let's wait until an owner of Aura HD or Glo gets annoyed enough to generate those device specific binary files.
Markismus is offline   Reply With Quote
Old 04-30-2014, 01:43 AM   #1121
serdar0020
Zealot
serdar0020 can extract oil from cheeseserdar0020 can extract oil from cheeseserdar0020 can extract oil from cheeseserdar0020 can extract oil from cheeseserdar0020 can extract oil from cheeseserdar0020 can extract oil from cheeseserdar0020 can extract oil from cheeseserdar0020 can extract oil from cheeseserdar0020 can extract oil from cheese
 
Posts: 118
Karma: 1110
Join Date: Nov 2013
Location: Germany
Device: Kobo Clara 2E + Kobo Elipsa 2E
another suggestion: pdf, non-reflowed, landscape mode - I'd like to expand the left and right borders into the grey area outside the frame

screenshot http://www.anonimg.com/img/4af22168b...08749fd93f.jpg

new 6" kobo aura, nightly build 2014-04.14
serdar0020 is offline   Reply With Quote
Old 04-30-2014, 04:21 AM   #1122
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
Quote:
Originally Posted by serdar0020 View Post
another suggestion: ..I'd like to expand the left and right borders into the grey area outside the frame...
It would be nice to have better contol of the crop margins, I agree. Maybe something with control buttons or size entry.

But is what your looking for not a free zoom level?

Or couldn't you adjust the zoom level to page width and select large margins? In defaults.lua you are able to set those margins to any size you fancy.
Markismus is offline   Reply With Quote
Old 04-30-2014, 08:36 AM   #1123
cieljonn
Junior Member
cieljonn began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2014
Device: Kobo Glo
Quote:
Originally Posted by Ken Maltby View Post
What works for me is to change the timing settings in uimanager.lua, using Notepad++. The file is located at ./.kobo/koreader/frontend/ui/uimanager.lua.
Around line 300 you should see a "timeout=1" I change it to timeout=0. Then you should find another line like this: self:scheduleIn(0.5, function() Device:Suspend() end) I change it to: self:scheduleIn(2, function() Device:Suspend() end)

This gives me a suspend that is just a frozen screen that makes it so I can clean the screen or put my AuraHD in my pocket. I can check that it is working by poking where I would normally get a menu.

Sometimes, after along period of use I may have to restart Koreader for it to continue to work. Some others have tried this but they reported that it didn't work for them.

Luck;
Ken
Hi, I have the exact same problem on my Glo, but this solution doesn't seem to work for me. Help?

Also, is there any way to prevent the frontlight from automatically turning on whenever I go into Koreader?

Thanks!
cieljonn is offline   Reply With Quote
Old 04-30-2014, 09:56 AM   #1124
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
Quote:
Originally Posted by cieljonn View Post
..
Also, is there any way to prevent the frontlight from automatically turning on whenever I go into Koreader?..
We are looking at that problem here.
Markismus is offline   Reply With Quote
Old 04-30-2014, 02:36 PM   #1125
mr_nobody
Evangelist
mr_nobody is not intimidated by interfenestral monkeys.mr_nobody is not intimidated by interfenestral monkeys.mr_nobody is not intimidated by interfenestral monkeys.mr_nobody is not intimidated by interfenestral monkeys.mr_nobody is not intimidated by interfenestral monkeys.mr_nobody is not intimidated by interfenestral monkeys.mr_nobody is not intimidated by interfenestral monkeys.mr_nobody is not intimidated by interfenestral monkeys.mr_nobody is not intimidated by interfenestral monkeys.mr_nobody is not intimidated by interfenestral monkeys.mr_nobody is not intimidated by interfenestral monkeys.
 
Posts: 440
Karma: 26671
Join Date: Nov 2011
Device: kobo mini, nexus 7 (2012), kobo vox
Quick question...the initial post in this thread says:

"Use koreader_old.zip for 2.5.x or older firmware (not really supported); for 2.6.1 use the nightly builds."

Do the nightlies work on 2.6.2? Thanks.
mr_nobody is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 1289 04-07-2025 10:18 AM
Touch Using two Kobos tkavan Kobo Reader 4 06-23-2017 02:47 AM
2 kobos at once tsarinaerika Kobo Reader 14 06-03-2013 04:13 AM
Syncing between two Kobos fx3000se Kobo Reader 4 01-24-2013 02:10 PM
2 kobos 1 account retired05 Kobo Reader 9 05-05-2012 08:25 AM


All times are GMT -4. The time now is 05:18 AM.


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