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-04-2013, 09:09 AM   #31
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: 75
Karma: 197622
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
@Kevin
It would be great if you could update the topic title and the first post with the newest version for all models.

Quote:
Originally Posted by ShellShock View Post
Anyone tried this on the Aura?
Looking at the tiny bit we know about the hardware, the latest version should work. But depending on how much they changed the software, KoboTweaks might not be compatible.
yoq is offline   Reply With Quote
Old 05-04-2013, 10:14 AM   #32
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 340
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by ShellShock View Post
Anyone tried this on the Aura?
I think I read somewhere that the Kobo Tweaks plugin doesn't work on the Aura (which doesn't surprise me, considering they completely remade the homescreen). So right now, no.

Quote:
Originally Posted by yoq View Post
@Kevin
It would be great if you could update the topic title and the first post with the newest version for all models.
Done.
KevinShort is offline   Reply With Quote
 
Enthusiast
Old 05-04-2013, 10:51 AM   #33
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: 1,256
Karma: 332560
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by KevinShort View Post
Quote:
Originally Posted by ShellShock View Post
Anyone tried this on the Aura?
I think I read somewhere that the Kobo Tweaks plugin doesn't work on the Aura (which doesn't surprise me, considering they completely remade the homescreen).
Just would like to mention (the obvious) that one can start the night mode from the "KoboLauncher for standalone Qt apps" too.

Last edited by tshering; 05-04-2013 at 12:00 PM.
tshering is offline   Reply With Quote
Old 05-04-2013, 11:44 AM   #34
Lucas Malor
Pain in the arse
Lucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughing
 
Lucas Malor's Avatar
 
Posts: 597
Karma: 63112
Join Date: Apr 2013
Device: Kobo Glo, Kindle 4
Quote:
Originally Posted by yoq View Post
Yes, patch is available on the Kobo. The main problem with this approach I think is that it isn't possible to use 2 hacks which modify the same file. I think you can only patch a file that is exactly like the one you used to create the diff?
I don't know how patch inside the distro used by Kobo works. In theory patch can apply a diff even if there's a line number mismatch. When I'll upgrade the firmware I'll do some tests ^^

The idea of the init script is good, I don't have to bother ah-
Lucas Malor is offline   Reply With Quote
Old 05-04-2013, 02:28 PM   #35
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: 1,256
Karma: 332560
Join Date: Jun 2012
Device: kobo touch
I am certain, this is a pure coincidence. I installed yesterday the night mode program (build 2), which does a great job, and my battery went down from 97% (yesterday) to 30% (today). I never had a battery problem with my touch before. Did anybody else experience this? Additional information: Estimated reading time three or maybe four hours. Wifi was always off. The device was powered off during night.

Last edited by tshering; 05-04-2013 at 02:38 PM.
tshering is offline   Reply With Quote
Old 05-04-2013, 03:42 PM   #36
akorx
Zealot
akorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of light
 
Posts: 123
Karma: 12158
Join Date: Apr 2013
Device: Kobo Glo
Tshering,

It's very strange because I have noticed no problem with the version 1 that refreshed the screen 2 tenth of a second (it could reduce the autonomy of the battery) and the version 2 doesn't do this, so it should be better.

I will read this evening... tomorrow I will tell you if I notice something wrong.

Last edited by akorx; 05-04-2013 at 04:02 PM.
akorx is offline   Reply With Quote
Old 05-04-2013, 04:43 PM   #37
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: 1,256
Karma: 332560
Join Date: Jun 2012
Device: kobo touch
akorx,
merci beaucoup. I am hoping it is not the night mode, since I like it a lot. On the other hand, I would feel better if I knew what happened.
tshering is offline   Reply With Quote
Old 05-05-2013, 05:16 AM   #38
akorx
Zealot
akorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of lightakorx is a glorious beacon of light
 
Posts: 123
Karma: 12158
Join Date: Apr 2013
Device: Kobo Glo
Oh Tshering ! you speak french?

I've ridden during 1h15 yesterday with the frontlight on and my battery is gone to 100% to 96% of capacity...

Are you sure that yours was at 97% the first time?

Last edited by akorx; 05-05-2013 at 05:22 AM.
akorx is offline   Reply With Quote
Old 05-05-2013, 05:30 AM   #39
Lucas Malor
Pain in the arse
Lucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughing
 
Lucas Malor's Avatar
 
Posts: 597
Karma: 63112
Join Date: Apr 2013
Device: Kobo Glo, Kindle 4
It could be simply that it's more resource consuming to turn the pixel to black. It seems to me that in night mode Kobo is a bit more slow.

Anyway, what does exaclt this piece of code?

Code:
    while(1)
    {
        int err = epoll_wait(epollFD, &readEvent, 1, -1);
        if(err > 0)
        {
            int bytesRead = read(fd, &input, sizeof(input));
            
            if(bytesRead == 0) //writing application left the pipe -> reopen
            {
                close(fd);
                fd = open(ctlPipe, O_NONBLOCK);
                readEvent.data.fd = fd;
                epoll_ctl(epollFD, EPOLL_CTL_ADD, fd, &readEvent);
                continue;
            }
Lucas Malor is offline   Reply With Quote
Old 05-05-2013, 09:50 AM   #40
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: 75
Karma: 197622
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
About the slowness and batterylife: None of this has happened on my Glo, maybe there is something specific about the Touch that I missed? Please try to pinpoint when the battery drains so quickly, is it during reading, sleeping (or (!) power off)? There's also an uninstaller if you want to compare easily, see the first post.

Quote:
Originally Posted by Lucas Malor View Post
Anyway, what does exaclt this piece of code?
I create a named pipe (/tmp/screenInvert) to be able to control the state. For this I launch a new thread which opens the pipe and waits for data to arrive. It waits using epoll_wait(), so the thread is only awakened by the kernel when someone writes to the pipe (i.e. you press toggle). After the read is completed, I need to reopen the pipe.
yoq is offline   Reply With Quote
Old 05-05-2013, 01:26 PM   #41
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: 1,256
Karma: 332560
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by yoq View Post
Please try to pinpoint when the battery drains so quickly, is it during reading, sleeping (or (!) power off)?
Today, here was much less power consumption than yesterday. Still it seems to me higher than what I am used to.
I fully charged my Touch yesterday night, and powered it off. In the morning it was still at 100%.
1) I read an English epub in day mode for approximately one and a half hours without using a dictionary. The battery went from 100% to 95%.
2) I read a Japanese kepub.epub in night mode for approximately another one and a half hours with intensive dictionary use. The battery dropped from 95% to 80%.
Unfortunately, I cannot compare these values with previous values since I never logged the power consumption. I will try to make a similar reading session without the night mode program next weekend, or during this week if I find the time.
Quote:
Originally Posted by Lucas Malor View Post
It could be simply that it's more resource consuming to turn the pixel to black. It seems to me that in night mode Kobo is a bit more slow.
I used to change my Japanese books from black on white to white on black by css, and did not notice any difference in power consumption or responsiveness. Of course, only the text pages were white on black; the status bar on the top and at the bottom remained black on white, as did the dictionary screen.
Quote:
Originally Posted by akorx View Post
I've ridden during 1h15 yesterday with the frontlight on and my battery is gone to 100% to 96% of capacity...
Are you sure that yours was at 97% the first time?
This is very similar to my first one and a half hours. I am pretty sure about the 97%.
tshering is offline   Reply With Quote
Old 05-05-2013, 01:30 PM   #42
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
Hello,

After some tests it seems bugs appeared.

I'm on Glo, firmware 2.5.1, KoboTweaks plugin installed and Calibre plugin to send books in kepub format.

Since I installed the last NightMode plugin, serial information are no more transmitted.

After uninstalling the NightMode plugin (with the uninstaller provided with the plugin), some files have to be removed manually in the .kobo directory. (nightmode.sh and screenInv.so)

Serial informations are again transmitted to the Kobo.
But, on my current book, chapter informations are not good, no more chapter name but names of the html files in the epub (.kepub.epub)

The only way to solve this is to factory reset the Kobo.

Sorry for my English, I'm from France.
Mingyar is offline   Reply With Quote
Old 05-05-2013, 02:16 PM   #43
Lucas Malor
Pain in the arse
Lucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughing
 
Lucas Malor's Avatar
 
Posts: 597
Karma: 63112
Join Date: Apr 2013
Device: Kobo Glo, Kindle 4
Quote:
Originally Posted by tshering View Post
Of course, only the text pages were white on black; the status bar on the top and at the bottom remained black on white, as did the dictionary screen.
This is strange, on my Glo 2.4 all is white on black: header, dictionary, homepage, even the book when you sleep or power off.

@yoq: ok. Granted that I don't know much about programming :-P, can't you create a fifo AND a file in nightmode.sh, reading the file only the first time? Furthermore you check if returned value of epoll_wait is > 0, but this is not superfluous since timeout is infinite?
Lucas Malor is offline   Reply With Quote
Old 05-05-2013, 02:39 PM   #44
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: 75
Karma: 197622
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
Quote:
Originally Posted by Lucas Malor View Post
This is strange, on my Glo 2.4 all is white on black: header, dictionary, homepage, even the book when you sleep or power off.

@yoq: ok. Granted that I don't know much about programming :-P, can't you create a fifo AND a file in nightmode.sh, reading the file only the first time? Furthermore you check if returned value of epoll_wait is > 0, but this is not superfluous since timeout is infinite?
He changed the ebook itself to be white on black to test if there is a difference in consumption.

about epoll, i'm think an EINTR error is possible: http://linux.die.net/man/2/epoll_wait
it suspect it could happen when shutting down

I'm not sure what you mean about the file, but I have to create the fifo on startup, as a channel of communication.

@Mingyar
I'm sorry to hear you had to do a factory reset. But I have an idea why there could be a problem, I'll upload a new version soon.
I'm not entirely sure what you mean by serial information.

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.

Last edited by yoq; 05-05-2013 at 02:44 PM.
yoq is offline   Reply With Quote
Old 05-05-2013, 02:44 PM   #45
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: 1,256
Karma: 332560
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Lucas Malor View Post
This is strange, on my Glo 2.4 all is white on black: header, dictionary, homepage, even the book when you sleep or power off.
Of course, it is the same on my Touch. My intention was to contrast the w/b effect that I produced previously by this code
Code:
body {
    color:white;
    background-color:black;
    text-align: justify;}
with the w/b effect produced now by the screenInv plugin. In the first case only the text area was reversed, in the second case everything is reversed. If your idea that turning "the pixel to black" is "more resource consuming" is correct, then it might explain, why I now notice higher power consumption: my intensive use of the dictionary (which is now also white on black).
tshering 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 06:01 AM.


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