Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-17-2015, 09:39 AM   #496
norbusan
Zealot
norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.
 
Posts: 140
Karma: 82382
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo, Kobo GloHD
Hi Tshering,

Quote:
Originally Posted by tshering View Post
The problem was that there were some scripts of KSM (and on some devices also of vlasovsoft) still running from the user partition while nickel was running.
Does that mean the same can happen again when one runs coolreader or koreader or pbchess from /mnt/onboard/.adds/koreader/ and similar?

Quote:
Originally Posted by tshering View Post
You could try to reindex the database. You will certainly lose some information, but maybe it works somehow.
What I did is copy the database to my computer, run a .dump of it into a sql file, and loaded that into a new database. Now the consistency check works without errors and I don't see any strange behaviour in nickel.

Quote:
Originally Posted by tshering View Post
The rotated information screen is the problem. I am glad we discovered this before publishing the release version.
Tested now with KSM08prep02c.zip and the rotation is gone. All fine.

Quote:
Originally Posted by tshering View Post
"set runmenu settings.msh" > "always"
My failure, I forgot to do this in the very beginning ;-) Sorry for the noise.

Anyway, for me now with the 02c variant I don't see any strange behaviour for now.

Thanks a lot

Norbert
norbusan is offline   Reply With Quote
Old 08-17-2015, 10:11 AM   #497
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 norbusan View Post
Does that mean the same can happen again when one runs coolreader or koreader or pbchess from /mnt/onboard/.adds/koreader/ and similar?
Koreader is no problem, since it has not any process running at the time nickel is running (I think). Coolreader and pbchess (and also Kobo Launcher) by themselves are also no problem, but if you install the pbchess package as recommended by the author, at least one instance of fmon is started from /mnt/onboard/.kobo/fmon, each time you start nickel. You can avoid this, if you only copy the vlasovsoft folder to .kobo (or even better to .adds), and make sure that /etc/init.d/on-animator.sh is clean. The KSM 08 test version, replaces this file by a clean one.



Quote:
Originally Posted by norbusan View Post
What I did is copy the database to my computer, run a .dump of it into a sql file, and loaded that into a new database. Now the consistency check works without errors and I don't see any strange behaviour in nickel.
Good!



Quote:
Originally Posted by norbusan View Post
Tested now with KSM08prep02c.zip and the rotation is gone. All fine.
Thank you for testing it again. I am glad it works. It is funny, I was thinking of having this tested to make sure that it works, ... and forgot to include the two or three necessary lines to make it work.



Quote:
Originally Posted by norbusan View Post
Anyway, for me now with the 02c variant I don't see any strange behaviour for now.
Thank you again for testing and reporting.

Last edited by tshering; 08-17-2015 at 10:16 AM.
tshering is offline   Reply With Quote
Old 08-17-2015, 02:14 PM   #498
boriar
Evangelist
boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.
 
boriar's Avatar
 
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
Installed the last KSM08prep02c. Clean installation like my last post.
At the begining all seems to go well. Check update1 and 2 and several options in KSM including run and switchs with nickel, koreader and CoolReader/Vlasovsoft. Only two issues:

1. All screen flips disappear (i had problems in KSM07 and first KSM08) except when db_chk_integrity.sh is used. The next touch in a option the screen flip (not the tap zones, only the text).
2. Compared with KSM06 and KSM07 the displacement of the windows when a option is selected almost disappear but from time to time still occur. I can't reproduce it the situations. BW that's a very minor issue.

Why to split KSM and put the big part out of mnt/onboard directory?
boriar is offline   Reply With Quote
Old 08-17-2015, 03:20 PM   #499
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 boriar View Post
Installed the last KSM08prep02c. Clean installation like my last post.
At the begining all seems to go well. Check update1 and 2 and several options in KSM including run and switchs with nickel, koreader and CoolReader/Vlasovsoft.
Thank you for testing again.


Quote:
Originally Posted by boriar View Post
1. All screen flips disappear (i had problems in KSM07 and first KSM08) except when db_chk_integrity.sh is used. The next touch in a option the screen flip (not the tap zones, only the text).
Could you please also try "tools" > "back up and restore" > "back up" > "back up db.sh". Depending on the size of your database, this might take some time. In that script, I did the rotation handling a little different from db_chk_integrity.sh. If this way works better, I will apply it to db_chk_integrity.sh. If however, there is also the rotation problem, I will consider giving up using pickel for animation.


Quote:
Originally Posted by boriar View Post
2. Compared with KSM06 and KSM07 the displacement of the windows when a option is selected almost disappear but from time to time still occur. I can't reproduce it the situations. BW that's a very minor issue.
I have no idea what to do about this issue.

Quote:
Originally Posted by boriar View Post
Why to split KSM and put the big part out of mnt/onboard directory?
I did this so that /mnt/onboard can be propetly unmounted when connecting to pc.

Last edited by tshering; 08-17-2015 at 03:23 PM.
tshering is offline   Reply With Quote
Old 08-17-2015, 05:25 PM   #500
boriar
Evangelist
boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.
 
boriar's Avatar
 
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
Quote:
Originally Posted by tshering View Post
Could you please also try "tools" > "back up and restore" > "back up" > "back up db.sh". Depending on the size of your database, this might take some time. In that script, I did the rotation handling a little different from db_chk_integrity.sh. If this way works better, I will apply it to db_chk_integrity.sh. If however, there is also the rotation problem, I will consider giving up using pickel for animation.
Sorry! No luck. With both scripts envolving db back_up_db.sh and db_chk_integrity.sh the screen flip.
I think i have try all other scripts.

Also, the information provided by get_plataform_etc_new.sh isn't show completly.

Is it posible to implement move when a text/image is shown in full screen? You know, when you need touch to show zoom in, close, zoom out. I say because when rcS is shown is not posible read it completly.
boriar is offline   Reply With Quote
Old 08-18-2015, 03:38 AM   #501
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 boriar View Post
Sorry! No luck. With both scripts envolving db back_up_db.sh and db_chk_integrity.sh the screen flip.
I think i have try all other scripts.
Thank you very much for testing again! I think I give up showing animations with the help of pickel.

Quote:
Originally Posted by boriar View Post
Also, the information provided by get_plataform_etc_new.sh isn't show completly.
There is a vertical scroll bar. On devices with higher resolution it might be to small to be touched. My intention was to use this kind of information field only to show short informations, in this one case the information is evidently to long.

Quote:
Originally Posted by boriar View Post
Is it posible to implement move when a text/image is shown in full screen? You know, when you need touch to show zoom in, close, zoom out. I say because when rcS is shown is not posible read it completly.
Touch the middle of the screen to show/hide the bottom bar menu, touch the screen somewhere at the right margin to page down, and on the left margin to page up.

If you detect some further bugs or oddities, please let me know.
tshering is offline   Reply With Quote
Old 08-18-2015, 08:21 AM   #502
boriar
Evangelist
boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.
 
boriar's Avatar
 
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
Quote:
Originally Posted by tshering View Post
There is a vertical scroll bar. On devices with higher resolution it might be to small to be touched. My intention was to use this kind of information field only to show short informations, in this one case the information is evidently to long.
You're right but toooo small in H2O. Why do you use the same tecnique that you used some time ago with the buttons on bottom? Proportional to the size of characters used.

Quote:
Touch the middle of the screen to show/hide the bottom bar menu, touch the screen somewhere at the right margin to page down, and on the left margin to page up.
Oh! First time I now about right and left touch. Is it mentioned anywhere?

BW GOOD JOB!!!
boriar is offline   Reply With Quote
Old 08-18-2015, 09:09 AM   #503
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 boriar View Post
You're right but toooo small in H2O. Why do you use the same tecnique that you used some time ago with the buttons on bottom? Proportional to the size of characters used.
I do not use the same technique, because changing the width of scroll bars is a little complicated in Qt (at least if one compiles it for linux, it is easy if one compiles for windows). I would rather implement left and right touch for paging up and down. Maybe I will do it some day.

Quote:
Originally Posted by boriar View Post
Oh! First time I now about right and left touch. Is it mentioned anywhere?
I guess I mentioned it. If I remember correctly this function was there from the beginning.

By the way, I uploaded a new test version. If you like you can install it via "handle update > install update". After the device has booted, select "tools" > "activate" > "set runmenu settings.msh" > "always" (I happened to forget this myself several times). I hope this version gets finally rid of the rotation problem.
tshering is offline   Reply With Quote
Old 08-18-2015, 12:39 PM   #504
jbaumann
Zealot
jbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with others
 
Posts: 107
Karma: 2724
Join Date: Nov 2011
Device: Multiple Kobos, multiple Kindles
Hi,

I tested KSM version KSM08prep02c. Works without any problems so far on my Kobo Glo. I did all the tests mentioned including the poweroff screen, no problems. Then I added in a first round ca. 250 books, and in a second round ca. 500 books using Nickel without any problems. DB is still ok.

Should I then try the version KS08prep02d?

Btw., no rotation bug whatsoever (what does it do anyway? Rotate the view?).

Thanks a lot for the new version.

Cheers, Joe
jbaumann is offline   Reply With Quote
Old 08-18-2015, 02:10 PM   #505
jbaumann
Zealot
jbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with othersjbaumann plays well with others
 
Posts: 107
Karma: 2724
Join Date: Nov 2011
Device: Multiple Kobos, multiple Kindles
Ok, couldn't wait. I installed the version KSM08prep02d, no problems so far. Everything works, including editing the configuration options in KSMMenu_User (or whatever the exact name was...).

Cheers, Joe
jbaumann is offline   Reply With Quote
Old 08-18-2015, 03:16 PM   #506
boriar
Evangelist
boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.
 
boriar's Avatar
 
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
Bad luck!
I don't know what's happend with the two scripts. I see the new screen with the arrow and next the normal screen but when I touch any option ¡zas! screen inverted

For all people who want to aid tshering, please check this scripts and post here what's happened, firmware and device.

From main menu:
tools>nickel_diverse.msh>db_chk_integrity.sh
tools>back_up_and_restore>back_up>back_up_db.sh

For me: Both flip screen, FW 3.12.1, Aura H2O

PS: tshring, I hope you don't blame me for ask for help.
boriar is offline   Reply With Quote
Old 08-18-2015, 03:41 PM   #507
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
For me on KSM7+4, I can check the DB and get OK displayed, but when I return the menu is rotated. From then on it will alternate flipped and not, until I reboot it.

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 08-18-2015, 03:42 PM   #508
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 boriar View Post
Bad luck!
I don't know what's happend with the two scripts. I see the new screen with the arrow and next the normal screen but when I touch any option ¡zas! screen inverted

For all people who want to aid tshering, please check this scripts and post here what's happened, firmware and device.

From main menu:
tools>nickel_diverse.msh>db_chk_integrity.sh
tools>back_up_and_restore>back_up>back_up_db.sh

For me: Both flip screen, FW 3.12.1, Aura H2O

PS: tshring, I hope you don't blame me for ask for help.
No problem! I am always thankful for getting help. To make it easier I post here the code (fragments) that should be of relevance.

pngshow is the executable provided by Frostschutz.

Spoiler:
Code:
### this part from adds/kbmenu/helpers/backup_helper.sh

[ "$showanimation" == "true" ] && $ksmroot/scripts_intern/div/on-animator.sh &
[ ! -e $backupdir ] && mkdir -p $backupdir
[ "$addtimestamp" == "true" ] && targetfilebasename="${targetfilebasename}_$timestamp"
if [ "$gzipmode" == "true" ]; then
  targetfilebasename="${targetfilebasename}.gz"
  cd $sourcedir
  gzip -c "$sourcefilename" > "$backupdir/$targetfilebasename" 2>&1
  exit_status=$?
  if [ $exit_status -ne 0 ]; then
    response=$(echo "gzip error: exit code $exit_status")
  else
    response=$(echo "extracted  $selectedoption to $targetfile" )
  fi
else
  response=$(cp "$sourcedir/$sourcefilename" "$backupdir/$targetfilebasename" 2>&1)
fi

###
if [ "$showanimation" == "true" ]; then
  killall on-animator.sh
fi
Next comes: $ksmroot/scripts_intern/div/on-animator.sh
Code:
#!/bin/sh
ksmroot=${ksmroot:-"/adds/kbmenu"}

busyimagesbasename=${busyimagesbasename:-"arrow"}

[ -e "${ksmroot}/images/${busyimagesbasename}0.png" ] || exit

i=0;
while true; do
  if [ -e "${ksmroot}/images/${busyimagesbasename}${i}.png" ]; then
    $ksmroot/tools/pngshow "${ksmroot}/images/${busyimagesbasename}${i}.png"
    let ++i
    usleep 250000
  else
    i=0
  fi
done

Last edited by tshering; 08-18-2015 at 03:49 PM.
tshering is offline   Reply With Quote
Old 08-18-2015, 04:16 PM   #509
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
pngshow is not supposed to change rotation, regardless what it's currently set to

(it does change it temporarily in the first call to detect rotation inversion behaviour of the device, then saves that state for future calls in /tmp/)

if you experience flips after using pngshow, maybe there's a leftover rotation hack meant to offset pickel's rotation issues somewhere?

pngshow has other issues though, it does not detect pixel offsets (e.g. 10px dead zone at the top for H2O); there doesn't seem to be a way to detect them other than hardcoding them for each device, or calling pickel and see what it does

Last edited by frostschutz; 08-18-2015 at 04:22 PM.
frostschutz is offline   Reply With Quote
Old 08-18-2015, 04:25 PM   #510
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 frostschutz View Post
if you experience flips after using pngshow, maybe there's a leftover rotation hack meant to offset pickel's rotation issues somewhere?
That might be possible. Thank you for the hint! But even then, I do not understand, why the rotation issue does not occur earlier. It seems one can call Qt applications any number of time without problems, but if I write an image to the screen without using a Qt application, the screen starts flipping when using a Qt application.

boriar, could you please check whether it makes a difference if you do the db check directly after reboot, or if you do it after returning from nickel?

Last edited by tshering; 08-18-2015 at 04:31 PM.
tshering is offline   Reply With Quote
Reply

Tags
koreader/nickel, ksm 07


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo-Adding alternative readers using Kobo Start Menu Ken Maltby KOReader 75 01-10-2020 01:35 PM
Kobo Start Menu tshering Kobo Developer's Corner 918 10-12-2017 02:32 PM
QT Browser for Kobo Start Menu? gloriousglib Kobo Developer's Corner 1 05-24-2014 03:59 AM
kobo menu and message tshering Kobo Developer's Corner 26 01-15-2014 09:18 AM
Calibre start menu icon Cy1clown Calibre 1 02-06-2010 02:10 PM


All times are GMT -4. The time now is 02:31 AM.


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