Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-05-2013, 03:07 PM   #46
yoq
Developer
yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.
 
Posts: 72
Karma: 190138
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
@Mingyar
I was lazy and diverted the standard output into a file for debugging , I assume that was the problem.
If that is the case, this new version should help.
Attached Files
File Type: zip screenInv_build4.zip (20.9 KB, 70 views)
yoq is offline   Reply With Quote
Old 05-05-2013, 03:14 PM   #47
Lucas Malor
Pain in the arse
Lucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbit
 
Lucas Malor's Avatar
 
Posts: 501
Karma: 60174
Join Date: Apr 2013
Device: Kobo Glo, Kindle 4
@yoq: mmmmhhh, good point
About the file, I mean that in the tweak sh script you create a real file with echo, but not a FIFO.

@tshering: so did you have changed the aspect of bars and dictionaries using CSS? How?
Lucas Malor is offline   Reply With Quote
Old 05-05-2013, 03:31 PM   #48
tshering
Guru
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: 940
Karma: 297002
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by yoq View Post
And yes, the uninstaller doesn't remove all files but the hack is disabled afterwards. So far I couldn't think of a safe way to remove them on all models.
Maybe I completely miss the point, but wouldn't

rm /mnt/onboard/.kobo/nightmode.sh
rm /mnt/onboard/.kobo/screenInv.so
rm /tmp/invertScreen
rm /mnt/onboard/.kobo/screenInvertLog
rm /mnt/onboard/.kobo/screenInvertLogFB

in autorun.sh do the job?
tshering is offline   Reply With Quote
Old 05-05-2013, 03:34 PM   #49
tshering
Guru
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: 940
Karma: 297002
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Lucas Malor View Post
@tshering: so did you have changed the aspect of bars and dictionaries using CSS? How?
No, I changed only the colors of the books.
tshering is offline   Reply With Quote
Old 05-05-2013, 03:36 PM   #50
yoq
Developer
yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.
 
Posts: 72
Karma: 190138
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
@Lucas Malor
OK, so you mean I should use a file to save the state when powering the kobo off?
That's a good idea, I'll implement it in the next release when Mingyars problem is fixed.
yoq is offline   Reply With Quote
Old 05-05-2013, 03:39 PM   #51
Lucas Malor
Pain in the arse
Lucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbit
 
Lucas Malor's Avatar
 
Posts: 501
Karma: 60174
Join Date: Apr 2013
Device: Kobo Glo, Kindle 4
Well, it's a good idea, but I mean that it seem you already create a real file, since in the nightmode.sh there's a echo but no mkfifo.

@tshering: what a pity, it would be fantastic if kobo style could be personalized using CSS
Lucas Malor is offline   Reply With Quote
Old 05-05-2013, 03:41 PM   #52
yoq
Developer
yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.
 
Posts: 72
Karma: 190138
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
Quote:
Originally Posted by tshering View Post
Maybe I completely miss the point, but wouldn't

rm /mnt/onboard/.kobo/nightmode.sh
rm /mnt/onboard/.kobo/screenInv.so
rm /tmp/invertScreen
rm /mnt/onboard/.kobo/screenInvertLog
rm /mnt/onboard/.kobo/screenInvertLogFB

in autorun.sh do the job?

The problem is, autorun.sh is execute before the internal sd storage is mounted. If you look into rcS, it starts with "/sbin/udevadm trigger", the mount comes a few lines after that.
Thinking about it, it should be possible to wait for the mount in the script.
yoq is offline   Reply With Quote
Old 05-05-2013, 03:45 PM   #53
yoq
Developer
yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.
 
Posts: 72
Karma: 190138
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
Quote:
Originally Posted by Lucas Malor View Post
Well, it's a good idea, but I mean that it seem you already create a real file, since in the nightmode.sh there's a echo but no mkfifo.

@tshering: what a pity, it would be fantastic if kobo style could be personalized using CSS
No, the hack executes mkfifo on startup, and so echo just writes into the fifo.
But using a real file would be bad for the sd, and make things slower.
yoq is offline   Reply With Quote
Old 05-05-2013, 04:32 PM   #54
tshering
Guru
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: 940
Karma: 297002
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by yoq View Post
The problem is, autorun.sh is execute before the internal sd storage is mounted. If you look into rcS, it starts with "/sbin/udevadm trigger", the mount comes a few lines after that.
Thinking about it, it should be possible to wait for the mount in the script.
Maybe one could prepare the uninstall already at the time of the installation in the rcS file.

Code:
if [ -e /root/unistallscreenInv.sh ]; then
	/root/unistallscreenInv.sh
	/usr/local/Kobo/nickel -qws \&
else
	LD_PRELOAD=/mnt/onboard/.kobo/screenInv.so /usr/local/Kobo/nickel -qws \&
fi
unistallscreenInv.sh would do the cleanup. I don't know how to restore the original crS from the unistallscreenInv.sh. Would be easy if the "if ... fi" block would be a one-liner. Is this possible by using semicolons? (I am not a linux user and just started with bash because of the kobo. So I am just fooling around.)

Last edited by tshering; 05-06-2013 at 03:36 AM. Reason: corrected elif to else
tshering is offline   Reply With Quote
Old 05-05-2013, 08:43 PM   #55
Mingyar
Connoisseur
Mingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to behold
 
Posts: 50
Karma: 11822
Join Date: Feb 2013
Device: Kobo Glo/Mini
Quote:
Originally Posted by yoq View Post
@Mingyar
I was lazy and diverted the standard output into a file for debugging , I assume that was the problem.
If that is the case, this new version should help.
Thanks Yok but problems are still here.

No serial informations transmitted to the Kobo after plugin installed.

After uninstall of the plugin by the uninstaller KoboRoot.tgz, 3 files still remain in .kobo folder (screenInvertLog, nightmode.sh and screenInv.so)

Only thing better, after uninstall completed by deleting manually the 3 files, no need to factory reset.
Mingyar is offline   Reply With Quote
Old 05-06-2013, 03:07 AM   #56
yoq
Developer
yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.yoq can program the VCR without an owner's manual.
 
Posts: 72
Karma: 190138
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
With "serial informations", do you mean the serial port?
http://www.flickr.com/photos/euphy/8522682330/

Please tell me how I can reproduce the problem.

Last edited by yoq; 05-06-2013 at 03:13 AM.
yoq is offline   Reply With Quote
Old 05-06-2013, 03:11 AM   #57
tapioco2000
Member
tapioco2000 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2013
Device: kobo glo
In my opinion battery drain is normal.
tapioco2000 is offline   Reply With Quote
Old 05-06-2013, 03:59 AM   #58
samhy
Wizard
samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.
 
samhy's Avatar
 
Posts: 1,549
Karma: 5656781
Join Date: Dec 2012
Location: France
Device: Sony (J) PRS 650, Kobo Mini and Aura HD
Quote:
Originally Posted by Mingyar View Post
No serial informations transmitted to the Kobo after plugin installed.
Do you mean the series information as in Harry Potter#1, Harry Potter#2... ?
You seem to use the kepub.epub plugin. Do you also use the shelf management settings?
samhy is offline   Reply With Quote
Old 05-06-2013, 05:40 AM   #59
Lucas Malor
Pain in the arse
Lucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbitLucas Malor with a running start, can leap into geosynchronous orbit
 
Lucas Malor's Avatar
 
Posts: 501
Karma: 60174
Join Date: Apr 2013
Device: Kobo Glo, Kindle 4
@Mingyar: can you reinstall and re-uninstall the plugin, add a test.sh entry to the kobotweaks.ini and write such a file with:
Code:
cat /etc/init.d/rcS > /mnt/onboard/.kobo/mydebug.log
restart the kobo and execute the test entry, mount the kobo, search for .kobo/mydebug.log and post here its contents?

@yoq: ok, let me know if I have understood: you are dynamically linking a C library to nickel bin. The library contains a class, which constructor is automatically invoked. The constructor creates the FIFO. Since this is done at startup, any echo will be directed to the FIFO? Right?

Thank you for the C for dummies lesson
Lucas Malor is offline   Reply With Quote
Old 05-06-2013, 10:33 AM   #60
Mingyar
Connoisseur
Mingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to behold
 
Posts: 50
Karma: 11822
Join Date: Feb 2013
Device: Kobo Glo/Mini
Quote:
Originally Posted by yoq View Post
With "serial informations", do you mean the serial port?
http://www.flickr.com/photos/euphy/8522682330/

Please tell me how I can reproduce the problem.
No, not serial port, but, as Samhy says, the line added under the title in the library for collections.

And yes I use the Calibre's plugin to send epub in kepub format (xxx.kepub.epub)
The plugin is described here : http://www.mobileread.com/forums/sho...d.php?t=211135

I'll try to dump the rcS file as soon as possible.

Thanks again to take care

Last edited by Mingyar; 05-06-2013 at 11:38 AM.
Mingyar is offline   Reply With Quote
Reply

Tags
glo, hack, mini, night mode, touch

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo Night mode ? Ethanaul Kobo Reader 1 07-23-2013 10:23 PM
does 'night mode' use more power? pumpkincat Kobo Tablets 10 02-25-2012 01:39 PM
Odyssey Anyone using Night-Mode? DuckieTigger Bookeen 2 01-28-2012 12:13 PM
help with night mode golfgirl Kobo Tablets 5 11-04-2011 10:40 AM
Is there a night mode? zeroh Nook Color & Nook Tablet 5 12-04-2010 10:24 AM


All times are GMT -4. The time now is 09:24 PM.


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