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 04-25-2015, 07:47 AM   #196
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
Apparently KSM overwrites the koreader.sh script to adapt it to the new path with one slight oversight on line 12:
Code:
cd /mnt/onboard/.kobo && tar xf $NEWUPDATE && mv $NEWUPDATE $INSTALLED
should be changed to:
Code:
    cd $(dirname $KOREADER_DIR) && tar xf $NEWUPDATE && mv $NEWUPDATE $INSTALLED
Thank you! This was an oversight of mine. Evidently, I do not give enough attention to those parts that I do not use myself.
Quote:
Originally Posted by Markismus View Post
Since the latest nightly (v187) those lines have been changed in the koreader distribution. So your update would only have to be done for the older (stable) revisions of koreader.
Ok, I will do this.


Quote:
Originally Posted by Markismus View Post
Still don't get what triggered the change of the new koreader.sh. Your grep command shouldn't have found that string anymore, right?
Right, the grep command does not find that string. And there is nothing that can get changed by those two sed commands, even if they were executed. Or what change did you see?

Since we are already talking about the koreader.sh, could you consider changing
Code:
if [ -n "$PLATFORM" ]; then
to
Code:
if [ ! -n "${PLATFORM}" ]; then
or similar. Currently the whole block after that line is useless, since it is only execute, if PLATFORM is already defined.


And maybe you could replace
Code:
    # if we were called from advboot then we must reboot to go to the menu
    if [ -d /mnt/onboard/.kobo/advboot ]; then
        reboot
    fi
by something like
Code:
    if [ "$(pidof ksmhome.sh | wc -w)" -lt "1" ]; then
        reboot
    fi
The old script reboots the device if /mnt/onboard/.kobo/advboot exists, even if advboot is not active.
tshering is offline   Reply With Quote
Old 04-25-2015, 09:21 AM   #197
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
I've send a PR with your suggestion to the hub. Thanks!

See PR.

Last edited by Markismus; 04-25-2015 at 12:35 PM.
Markismus is offline   Reply With Quote
Advert
Old 04-27-2015, 12:14 PM   #198
gtv4
Junior Member
gtv4 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2015
Device: kobo hd
I'm afraid I need some help. This is with a factory reset AuraHD, latest firmware with KSM7 and updates 1 and 2. I'm also running KoReader 20150427. My first issue is that when exiting KoReader (via the home icon) to get back to KSM, the machine reboots. This would normally not be a problem except for the second issue which is that the microSD card does not mount on boot and the only way I know to mount it is by running the usb enable/disable.sh scripts. A quick and dirty fix would be to autorun a mount script on KSM boot but I don't know how to do this. Thank in advance for any advice on this.
gtv4 is offline   Reply With Quote
Old 04-27-2015, 12:20 PM   #199
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@gtv4: Yay. The reboot on exit *might* be my fault.

I quite possibly got the logic wrong here, and since I don't use KSM, nor advboot, nor fmon, that was a bit of a shot in the dark. (cf. the discussion in the PR @Markismus just linked to).

@tshering: What was the original intent here, and is there a KSM or advboot process we can look for to handle this properly?

Last edited by NiLuJe; 04-27-2015 at 12:24 PM.
NiLuJe is offline   Reply With Quote
Old 04-27-2015, 02:20 PM   #200
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
gtv4, please replace koreader.sh in the folder koreader by an earlier version of it.

NiLuJe, the problem is that
Code:
 ! pkill -0 ksmhome.sh
is always true whether ksmhome.sh is running or not. (The busybox pkill might work a little different as other versions)

Last edited by tshering; 04-27-2015 at 03:09 PM.
tshering is offline   Reply With Quote
Advert
Old 04-27-2015, 02:52 PM   #201
Ebri
Groupie
Ebri began at the beginning.
 
Posts: 150
Karma: 48
Join Date: Apr 2014
Device: Kindle Paperwhite 2, Kobo Aura HD
Quote:
Originally Posted by gtv4 View Post
This would normally not be a problem except for the second issue which is that the microSD card does not mount on boot and the only way I know to mount it is by running the usb enable/disable.sh scripts. A quick and dirty fix would be to autorun a mount script on KSM boot but I don't know how to do this. Thank in advance for any advice on this.
When I switched from a slow 4 GB card to a 16 GB Sandisk, which is much quicker (during copy, etc), the same symptom occurred, and it is there since. The actual mounting of the SD card takes several seconds. (I usually forget it after a reboot, so I start koreader, but it does not open my earlier book, I close it, wait some seconds, and then it usually opens the file, meaning SD is mounted properly.) And it is also the case for the native system, it takes some time after reboot, when my library is shown again in the main screen.
Ebri is offline   Reply With Quote
Old 04-27-2015, 04:30 PM   #202
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@tshering: Huh. That works well enough for detecting nickel, though.

Are there multiple ksmhome.sh processes running?
Is the actual name correct, or is it eaten by a shell name or something?

pkill probably only checks the name of the actual binary, while pidof/pgrep can match the full command line. I'll fix the test .

Last edited by NiLuJe; 04-27-2015 at 04:35 PM.
NiLuJe is offline   Reply With Quote
Old 04-27-2015, 05:20 PM   #203
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
NiLuJe,

Code:
[root@(none) ~]# ps | grep ksmhome
  519 root       0:00 {ksmhome.sh} /bin/sh /mnt/onboard/.adds/kbmenu/onstart/ksmhome.sh
  872 root       0:00 grep ksmhome
[root@(none) ~]# if ! pkill -0 ksmhome.sh ; then echo "yes"; fi
yes
[root@(none) ~]# if ! pkill -0 ksmhomexxx.sh ; then echo "yes"; fi
yes
tshering is offline   Reply With Quote
Old 04-27-2015, 07:55 PM   #204
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@tshering: Ha, thanks .

Yep, pkill will only catch sh there, which explains everything .

switched to pidof .
NiLuJe is offline   Reply With Quote
Old 04-27-2015, 11:44 PM   #205
gtv4
Junior Member
gtv4 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2015
Device: kobo hd
Thanks for the help guys, koreader.sh from the 20150424 version fixed the reboot on exit issue and patience fixed the microSD mount issue. Keep up the good work guys.
gtv4 is offline   Reply With Quote
Old 04-29-2015, 07:00 PM   #206
JFeole
Connoisseur
JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.
 
Posts: 93
Karma: 28862
Join Date: Jul 2010
Device: Kobo_Aura_H2O, Kobo_Aura_One, Kobo Sage
A quick question? I have just updated my Kobo Aura H20 to 3.15.0. When I rebooted after update, it boots into Nickel by default instead of KSM07. Do i need to edit or modify anything to get i to boot into KSM again?

Or does a firmware update for me to reload KSM? Please advise.

Thank You,
JFeole
JFeole is offline   Reply With Quote
Old 04-29-2015, 10:55 PM   #207
JFeole
Connoisseur
JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.
 
Posts: 93
Karma: 28862
Join Date: Jul 2010
Device: Kobo_Aura_H2O, Kobo_Aura_One, Kobo Sage
Post firmware update, It is booting directly into Nickel, ignorinf KSM. When I enter Library, Books, and then choose Switch to KOReader, I only get the icon displayed on screen..?

Thanks,
JFeole
JFeole is offline   Reply With Quote
Old 04-30-2015, 03:33 AM   #208
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 nook_nerd View Post
Post firmware update, It is booting directly into Nickel, ignorinf KSM. When I enter Library, Books, and then choose Switch to KOReader, I only get the icon displayed on screen..?

Thanks,
JFeole
I guess you updated the firmware by selecting "install update", which disables KSM, instead of selecting "install partial update". If this is the case, copy KoboRoot.tgz from the archive uploaded here to .kobo and restart the reader. This should enable KSM again.

Edit: If you are using KSM 8 do NOT apply the package downloaded to this post. Re-install instead the latest patch for KSM 8. This will reanable KSM 8.
Attached Files
File Type: zip KSM07_restore.zip (3.6 KB, 752 views)

Last edited by tshering; 10-06-2017 at 02:35 PM.
tshering is offline   Reply With Quote
Old 04-30-2015, 08:40 AM   #209
JFeole
Connoisseur
JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.JFeole solves Fermat’s last theorem while doing the crossword.
 
Posts: 93
Karma: 28862
Join Date: Jul 2010
Device: Kobo_Aura_H2O, Kobo_Aura_One, Kobo Sage
Yea, I did do it that way..thank you. That worked fine.

Do I have to re-apply the KSM updates too? or no..

JFeole
JFeole is offline   Reply With Quote
Old 04-30-2015, 11:58 AM   #210
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 nook_nerd View Post
Yea, I did do it that way..thank you. That worked fine.

Do I have to re-apply the KSM updates too? or no..

JFeole
No, everything is now as it was before you updated the FW.
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 07:20 PM.


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