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 03-20-2014, 02:32 PM   #106
trekk
Terraner
trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.
 
trekk's Avatar
 
Posts: 522
Karma: 4207769
Join Date: Aug 2011
Device: Kobo Libra, Aura One, Kindle Oasis 1 & 2 ...
Hm, I installed the Kobo Patcher in both variants. This is one difference, but I don't know how this could be related to the problems. I will start some testing at the weekend with a reset device.
trekk is offline   Reply With Quote
Old 03-20-2014, 02:57 PM   #107
enotar
Connoisseur
enotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of light
 
Posts: 55
Karma: 12050
Join Date: Oct 2012
Device: kobo touch
I use this on Kobo touch old version and use post 78 to install.
Sometimes kobo boot in menu sometimes in Nickel, no pattern on when which one.
Any idea?
Thank you
enotar is offline   Reply With Quote
Advert
Old 03-20-2014, 03:49 PM   #108
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 trekk View Post
Hm, I installed the Kobo Patcher in both variants. This is one difference, but I don't know how this could be related to the problems. I will start some testing at the weekend with a reset device.
I don't think the modifications done by the patcher matter. They concern only nickel. KoboLauncher/VlasovsoftLauncher and KOReader should also have no influence, since they are not yet active at the point when the menu has already its problems. I only asked for all installed hacks, because I thought this is the easiest way to see a common pattern in those devices that have the problem. On guess was that Giorgio's multi touch hack might be the culprit. but according to your report, this is not the case.
Another difference in the setup could be that some people installed the full 3.2.0 update package, and some only the KoboRoot.tgz.

Last edited by tshering; 03-20-2014 at 03:54 PM.
tshering is offline   Reply With Quote
Old 03-20-2014, 03:53 PM   #109
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 enotar View Post
I use this on Kobo touch old version and use post 78 to install.
Sometimes kobo boot in menu sometimes in Nickel, no pattern on when which one.
Any idea?
Thank you
Did you make the change in runsittings.txt as described in post 78? Select in the main menu "scripts," then "activate," then "set run menu settings.msh," the "always." After that the menu should be started with every power on.
tshering is offline   Reply With Quote
Old 03-20-2014, 04:22 PM   #110
enotar
Connoisseur
enotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of lightenotar is a glorious beacon of light
 
Posts: 55
Karma: 12050
Join Date: Oct 2012
Device: kobo touch
Quote:
Originally Posted by tshering View Post
Did you make the change in runsittings.txt as described in post 78? Select in the main menu "scripts," then "activate," then "set run menu settings.msh," the "always." After that the menu should be started with every power on.
My bad.
It works
Thank you
enotar is offline   Reply With Quote
Advert
Old 03-20-2014, 04:31 PM   #111
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,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Quote:
Originally Posted by tshering View Post
I don't think the modifications done by the patcher matter. They concern only nickel. KoboLauncher/VlasovsoftLauncher and KOReader should also have no influence, since they are not yet active at the point when the menu has already its problems. I only asked for all installed hacks, because I thought this is the easiest way to see a common pattern in those devices that have the problem. On guess was that Giorgio's multi touch hack might be the culprit. but according to your report, this is not the case.
Another difference in the setup could be that some people installed the full 3.2.0 update package, and some only the KoboRoot.tgz.
For the record I installed the whole package, for the upgrade of my AuraHD to FW 3.2.0.

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 03-20-2014, 04:35 PM   #112
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 Ken Maltby View Post
For the record I installed the whole package, for the upgrade of my AuraHD to FW 3.2.0.
Thank you! I think this falsifies another suspicion of mine.
tshering is offline   Reply With Quote
Old 03-21-2014, 02:29 PM   #113
trekk
Terraner
trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.trekk ought to be getting tired of karma fortunes by now.
 
trekk's Avatar
 
Posts: 522
Karma: 4207769
Join Date: Aug 2011
Device: Kobo Libra, Aura One, Kindle Oasis 1 & 2 ...
Quote:
Originally Posted by tshering View Post
On guess was that Giorgio's multi touch hack might be the culprit. but according to your report, this is not the case.
I installed Sergey's pbchess on a clean 3.2.0 install on my Aura HD. Launcher and CoolReader worked like a charm, no problems with a non responsive touchscreen, no problems with a wrong orientation.

I installed KBStartMenu_03check then. This also worked like a charm! The screen responded to touches, no more flipping.

Next I installed KoboMultiTouch320. After a reboot your start menu showed up. I was able to select any menu entry, but apart from getting highlighted nothing else happened. Your guess seems to be right!

Uninstalling KoboMultiTouch didn't fixed this. I started nickel and Sergey's launcher, but the screen stayed unresponsive.
trekk is offline   Reply With Quote
Old 03-21-2014, 03:10 PM   #114
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 trekk View Post
I installed Sergey's pbchess on a clean 3.2.0 install on my Aura HD. Launcher and CoolReader worked like a charm, no problems with a non responsive touchscreen, no problems with a wrong orientation.

I installed KBStartMenu_03check then. This also worked like a charm! The screen responded to touches, no more flipping.

Next I installed KoboMultiTouch320. After a reboot your start menu showed up. I was able to select any menu entry, but apart from getting highlighted nothing else happened. Your guess seems to be right!

Uninstalling KoboMultiTouch didn't fixed this. I started nickel and Sergey's launcher, but the screen stayed unresponsive.
Thank you, Trekk! I think the KoboMultiTouch uninstall does not work on FW 3.2.0, because the name of the sub directory has changed. Instead of the update folder provided by Giorgio, one should use the update folder provided in kobo-update-3.2.0.zip (mark 4).
tshering is offline   Reply With Quote
Old 03-30-2014, 04:51 AM   #115
Lucas Malor
Pain in the arse
Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.
 
Lucas Malor's Avatar
 
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
This is a very good tool. I'll try it very soon, it's a good and safer alternative to Kobo File Monitor. Some random suggestions:
  1. please do not overwrite directly rcS, it's not safe. Use yoq's trick instead (look at Night Mode under etc/udev) and move what you can in a separate script.
  2. You also overwrite also /usr/local/Kobo/udev/usb. Can't you rename your "usb" exec?

Thank you and good Kobo !

Last edited by Lucas Malor; 03-30-2014 at 05:16 AM.
Lucas Malor is offline   Reply With Quote
Old 03-30-2014, 03:56 PM   #116
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
Thank you Lucas for your nice words and suggestions.
Quote:
Originally Posted by Lucas Malor View Post
it's a good and safer alternative to Kobo File Monitor. Some random suggestions:
I cannot see why the Kobo File Monitor is not save, provided it is correctly configured. Besides that it has a functionality that the Kobo Start Menu cannot offer. But yes, for same tasks the Kobo Start Menu is the better choice.

I will keep your suggestinos in mind for possibly future versions, but would like to say already now some words in response.
Quote:
Originally Posted by Lucas Malor View Post
please do not overwrite directly rcS, it's not safe.Use yoq's trick instead (look at Night Mode under etc/udev)
I cannot see why overwriting the rcS file with a version that I have tested should be less safe than modifying it on the fly by a script (especially since I cannot know exactly what changes a user might already have done to her rcS file). On top of that, it is not very practical to modify a file by a script if the changes are numerous.
As I understand it, the advantage of Yoq's "trick" is that he can install his night mode and preserve at the same time all modifications a user might have done to the rcS, and also not to have to deal with changes that Kobo might introduce in future rcS files (apart from the one line he is concerned with). I cannot see that this has much to do with safety.

Quote:
Originally Posted by Lucas Malor View Post
and move what you can in a separate script.
As to your suggestion of moving as much of my code to an external file, that was my original plan. I gave it up because finally I had not only to insert code at different points of the script, but also to modify the already existing code at several points. I therefore see not much point in splitting the code up.
Quote:
Originally Posted by Lucas Malor View Post
You also overwrite also /usr/local/Kobo/udev/usb. Can't you rename your "usb" exec?
What would be the point in doing so?

Thank you for suggesting to include the start menu into the List of Tweaks / Hacks / Mods.

Last edited by tshering; 03-30-2014 at 04:19 PM.
tshering is offline   Reply With Quote
Old 03-30-2014, 05:42 PM   #117
Lucas Malor
Pain in the arse
Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.
 
Lucas Malor's Avatar
 
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
Quote:
Originally Posted by tshering View Post
I cannot see why the Kobo File Monitor is not save
File Monitor is safe, but not if used for launching GUI programs. You have to sleep nickel process, and this is problematic if the program you've launched crashes or hangs. It happened to me, I had to wait the battery end-of-life and database gets corrupted.

Quote:
Originally Posted by tshering View Post
As I understand it, the advantage of Yoq's "trick" is that he can install his night mode and preserve at the same time all modifications a user might have done to the rcS, and also not to have to deal with changes that Kobo might introduce in future rcS files (apart from the one line he is concerned with). I cannot see that this has much to do with safety.
You can't know whow rcS will be modified in a future. For example it could export a variable that it's crucial for another system script. Indeed if you compare your rcS with the last one you can see much lines of codes you missed, most notably the code that adds a factory reset check.

The good news is that if you'll do such an installer, you don't need all the modifications you're doing, because you don't need to modify the update process. You have only to modify the yoq's installer so it does not remove itself and it doesn't apply if it's already applied. So even if the system will be upgraded, Start Menu will be automatically reapplied on the new rcS.

About PRODUCT, PLATFORM and this lines of code, I think you can move them in your external script without problem:
PHP Code:
echo > /sys/devices/platform/mxc_dvfs_core.0/enable 
PHP Code:
if [ -/usr/local/Kobo/plugins/gfxdrivers/libimxepd.so ]; then
  export QWS_DISPLAY
=imxepd
else
  
export QWS_DISPLAY=Transformed:imx508:Rot90
  export QWS_MOUSE_PROTO
="tslib_nocal:/dev/input/event1"
fi 
Ultimately, what you have to substitute in rcS is only
PHP Code:
usleep 400000; /etc/init.d/on-animator.sh ) & 
with
PHP Code:
export PRODUCT
export PLATFORM
/path/to/my/external/script

usleep 400000; /etc/init.d/on-animator.sh ) & 
Quote:
Originally Posted by tshering View Post
What would be the point in doing so [renaming "usb"]?
For the same reason above. The original "usb" file should remain untouched since it's used by nickel and you can't know how it will be modified in a future. On the contrary your program should use a "myusb" file.

Last edited by Lucas Malor; 03-30-2014 at 05:49 PM.
Lucas Malor is offline   Reply With Quote
Old 03-30-2014, 06:15 PM   #118
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
Thank you for sharing you insights. I it is getting late now, so I will not answer each of your points in detail, but only say a few words.

Quote:
Originally Posted by Lucas Malor View Post
You can't know whow rcS will be modified in a future. For example it could export a variable that it's crucial for another system script. Indeed if you compare your rcS with the last one you can see much lines of codes you missed, most notably the code that adds a factory reset check.
Right, I don't know what changes the rcS will undergo in future. And this is true even if I do my modifications via a script. That my rcS will possible fail in a future version, is a risk I take (and expect the users to take if they use the menu).


Quote:
Originally Posted by Lucas Malor View Post
Indeed if you compare your rcS with the last one you can see much lines of codes you missed, most notably the code that adds a factory reset check.
Actually, I did this on purpose. If you reinsert the code and power the device on several times in a row without starting nickel, you will find out why I did so.

Quote:
Originally Posted by Lucas Malor View Post
The good news is that if you'll do such an installer, you don't need all the modifications you're doing, because you don't need to modify the update process. You have only to modify the yoq's installer so it does not remove itself and it doesn't apply if it's already applied. So even if the system will be upgraded, Start Menu will be automatically reapplied on the new rcS.
The main reason for modifying the update process is to have the choice of allowing or refusing FW updates.

Quote:
Originally Posted by Lucas Malor View Post
About PRODUCT, PLATFORM and this lines of code, I think you can move them in your external script without problem:
PHP Code:
echo > /sys/devices/platform/mxc_dvfs_core.0/enable 
PHP Code:
if [ -/usr/local/Kobo/plugins/gfxdrivers/libimxepd.so ]; then
  export QWS_DISPLAY
=imxepd
else
  
export QWS_DISPLAY=Transformed:imx508:Rot90
  export QWS_MOUSE_PROTO
="tslib_nocal:/dev/input/event1"
fi 
Ultimately, what you have to substitute in rcS is only
PHP Code:
usleep 400000; /etc/init.d/on-animator.sh ) & 
with
PHP Code:
export PRODUCT
export PLATFORM
/path/to/my/external/script

usleep 400000; /etc/init.d/on-animator.sh ) & 
I know that I could shift SOME of the code to another file, but not all. And it is a lot more than you think, if I don't want to lose functionality. So why should I do it?

Quote:
Originally Posted by Lucas Malor View Post
For the same reason above. The original "usb" file should remain untouched since it's used by nickel and you can't know how it will be modified in a future. On the contrary your program should use a "myusb" file.
The changes are to prevent forced FW updates in older versions of the FW. The start menu itself does not use the usb file.

Thank you again for your concern.
tshering is offline   Reply With Quote
Old 03-30-2014, 06:29 PM   #119
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
I wonder if there might be a benefit to rather than changing rcS, to alter /etc/inittab to have a "custom" file for the ::sysinit: entry?

Either copy the original rcS to this new file and edit the new file, or, supply a total replacement to rcS with only the portions desired in it.
PeterT is offline   Reply With Quote
Old 03-31-2014, 03:30 AM   #120
Lucas Malor
Pain in the arse
Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.
 
Lucas Malor's Avatar
 
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
@tshering: If you want to prevent updates you can add your script invocation before update check and simply rename KoboRoot.tgz. The firmware will be installed if you restore KoboRoot.tgz and exit Start Menu.

Quote:
Originally Posted by PeterT View Post
I wonder if there might be a benefit to rather than changing rcS, to alter /etc/inittab to have a "custom" file for the ::sysinit: entry?
The problem is that many partitions are mounted in rcS. If you want to access the entire filesystem you have to hack it.
Lucas Malor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kobo menu and message tshering Kobo Developer's Corner 26 01-15-2014 09:18 AM
Kobo WiFi - Battery indicator outside menu? Cyberman tM Kobo Reader 1 03-06-2013 04:42 AM
Kobo constantly crashes back to Reading menu avalanches Kobo Reader 0 04-11-2011 09:35 PM
main menu, section menu, css for calibre mobipocket output naisren Calibre 2 08-23-2010 11:42 PM
Calibre start menu icon Cy1clown Calibre 1 02-06-2010 02:10 PM


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


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