New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screen freezes automatically after a while in Kobo Glo #663
Comments
I had the same issue. |
Actually, I haven't gotten that far yet. Its the same internal SD card that came with the device. Thanks for letting me know, anyway :) |
Hm, nothing in the log indicates an error. It looks a bit as if Koreader simply doesn't get any more input events. I'm not sure how to debug this, unfortunately. |
Found a fix. More of a work around, actually. Have no clue as to why it works, can only speculate :P
when prompted for a root password, just hit return. There's no password.
It was interesting to note the following error message on initiating the ssh connection
Maybe that was the 'root' of the problem. But then again, maybe :) I'll probably leave the issue 'open' till I figure out what was wrong, why the fix worked, and if the trouble was with koreader or kobo :) |
It should not be related - well, it's always a bit mysterious with proprietary software running alongside :-) Does it work even if there is no USB connection anymore? Because a USB connection will keep some things up and running and the device might behave differently. Maybe some other software is triggered after that time and pulls the input events out from under us. |
When I disabled 'usbnet', it started crashing again. PS. I'm talking about the usbnet that comes with 'Sergeys Launcher'. Installing this is detailed here : http://www.mobileread.com/forums/showthread.php?t=226456 It installs usbnet along with Sudoku, Calculator and a host of other distractions.
|
Yesterday we changed the So just copy-paste the linked content to your script or wait for the next nightly release. I am quite interested to hear whether your problem persists! It would mean that the event accumulation can be more widespread than only the |
Again this fits to my problem, when USB connection was there no crashes. Maybe the internal card in your Kobo is like the one I replaced first, too slow/fast/hungry/whatever and should be replaced. |
@Markismus : I did paste the modifications to I haven't tried the option suggested by @WS64. Could you please detail how you replaced the cards? You just copied the folders into the new card? Or used |
Thanks for trying! Do the problems also arise when you open and read an epub? Do they arise when you read a dvju-file? All three file-types use a different backend to read the files. It sounds like your device goes to sleep. Can you wake it up now you have th e new script with a pull of the power switch? Do you have a sleep cover? Does it also stop functioning without the sleep cover. Could you see what the suspend commands do on your device? What response does |
|
For me again no problem with Coolreader, just Koreader and Start Menu itself, did you try this one too? And no, not just copy the partition. You need to remove the card, use a cardreader and copy all partitions (2 linux, one FAT32), write the whole thing 1:1 back to another card. optional you then can increase the size of the FAT32 partition in case you used a bigger card). No idea how to do it in linux, in windows you can use e.g. WinImage for the copying and EaseUs Partition Master to change the size of the FAT32 partition. I use Calibre for my collection, but not anymore to fill books to my Kobo. |
No, I haven't installed start menu. Personally, having to reboot just to switch the reader seems a little uncomfortable to me. Anyway, thanks for the description, @WS64 ! I shall give this a try when possible and get back :) Meanwhile, still stumped about the 'sleep crash' issue. It seems to occur in almost all formats supported by koreader. |
With Start Menu you can very easy switch between Nickel and Koreader or Coolreader, I doubt you are faster in any other way! And Koreader, mine used to crash even when you stay in the menu, no book open, and wait for a minute... |
There is indeed no need to reboot in Start Menu between Nickel and koreader. However, when you exit koreader for the first time to enter Nickel, you will see dancing squares. This is not a reboot, but the first start of Nickel after a shutdown. The second switch will be almost instantaneous, especially with the new koreader-Nickel loop scripts Tshering created for koreader users! Since the new script didn't affect your problem, I don't expect much from Start Menu, since it is the same code. Still Start Menu is very nice for hacking... |
@Markismus : Yes.. Even startmenu's crashing. How about Sergey's launcher code, then? It seems to be pretty stable, and doesn't sleep crash. Maybe we could have a look at what it does to keep it from not doing so? @WS64 : Yes, sleep crashing in the menu confirmed. :( I've ordered a new microSD card, and am waiting for it to arrive, so I can test your solution :) Btw, was yours a class 10 microSD? |
The one I have in now and another one that is also working are both class 4. I read somewhere that someone said his Kobo does not work with class 10, but of course that might just be coincidence. I can check later at home if the bad one was a class 10, I actually think so. It was for sure brand Hama, the working ones are all SanDisk. |
Update.
also, theres a
looks like a pretty bad segfault. I wonder what it means, and if it helps in zeroing on the root of the problem. |
"Oh the humanity errors" are from Kobo (and Nickel). The non-working Start menu...did you perchance install Giorgio's multitouch hack? It is known no to work with Tshering's Start menu. |
No, I haven't installed the multi touch hack. Do the |
It's a Nickel crash...those happen...independently from koreader...I had some, but never bothered with them, because it's Nickel...Googling Since Start Menu fails to work too, you could ask Tshering for some support. |
Yes, I have. For future reference, the post is at http://www.mobileread.com/forums/showpost.php?p=2858195&postcount=259 |
Got a fix for the startmenu 'sleep crash' problem. Apparently the crashes don't occur if the display is kept busy (by displaying the clock, in startmenu's case). Maybe something of the sort could be done for koreader as well? @WS64 : I tried a SanDisk 16GB Class 10 card. The crashes continue to happen :( |
Could you log the output of the koreader script? I am quite surprised that the device restarts. You could change the fmon koreader call to: |
I've just tried out some tests and here are the results on Kobo Glo, firmware version 3.3.0:
|
hm... just adding your wile true write file script should not cause a segfult. In fact, this "keep busy script" can be simulated in koreader. Just for testing purpose, can you try adding following code at the beginning of reader.lua (around line 39)? function loop(s)
local f_out = io.open("/tmp/test", "w")
f_out:write("1")
f_out:close()
UIManager:scheduleIn(1, function() s(s) end)
end
loop(loop) |
I was able to reproduce the crash. Terminal output:
|
That's interesting! |
The reason everything worked was that I still used the old script Those killall messages are due to the fact that i ran |
Clean repeat:
|
@houqp : The device restarted. I put the code right before |
@Markismus : that's the new version of |
@Markismus is this the log for sleep crash? @chandravadans yes. did the device restart when you run koreader or after you exit from koreader? |
@houqp It happened as soon as I clicked on the koreader icon on the device. I haven't tested out the ssh way of launching it though. Should I? |
I don't think it has anything to do with the snippet about writing to a file. It's just the difference between killing nickel vs stopping nickel. The restart of nickel after killing it, to be most specific. It is wrong. Isn't there a proper way to stop and start nickel? The setting of the QWS_* environment variables also looks veeeeeery fishy to me. Would this be the same on all Kobo platforms? Then, however, I can't see how this would cause the freezes. I only see how this would cause a restart. |
Correct. The freezes happen with both the older The fishy code was taken from Tshering's Start Menu. He has derived most of his code from adapting the \etc\init.d\rcS file from Kobo. For example line 22-31 in |
@chandravadans yes, test out in ssh should give us a crash log hopefully. @hwhw , but both ways (kill and stop) freezes the screen without that while loop snippet. I suspect the device goes into freeze state when the system is idle? Then it's strange that there no other process writing files in the backgroud, for instance a logger. |
@Markismus the new script does not restart without @chandravadans 's keep busy script right? |
It does restart. With the old one, it doesn't. |
@houqp With your code snipped build 229 on Kobo Glo Firmware 3.3.0 does not freeze. On 3.1 it didn't freeze at all. Simply reverting back to the old script would mean that the Glo cannot use it's power button and light button. The script works on the Aura. Like most things with Kobo, it sadly seems device depend. |
so yeah, these are two separate issues. for the freeze issue, we need to find out the maximum idle time and use that to replace 1s. also this loop should be disabled on suspend to save power. |
@Markismus : I tried it out on v4 of the start menu, and the sleep crash problem did exist. I reported it on the fourms and tshering had replied here It was his comment that gave me the idea of putting the busy wait. :)
|
It seems the problem is not new as #576 already discusses it. After about 20 minutes the Glo went into standby and rebooted. The koreader.log is clear. Where have all the normal debug messages gone? Only new thing is this reoccurence:
Is this the loop? After 2 hours it quit and rebooted again. So there's a bigger problem with Glo on 3.3.0 than is solved with the loop |
Do you get that key event consistently? I assume you get this with the loop hack? It is not the loop. |
In the small log that I generated it occured at regular intervals throughout the log. |
I don't think it has anything to do with the loop.. Even i got it before.. Its attached in my main post, if you observe.. |
@chandravadans Could you check if you're are able to back to nickel after applying changes on #689 ?? I'm in firmware 3.4.1 on a kobo mini and experiment no hangs in both koreader and nickel (I'm using fmon to trigger koreader.sh) Suspend works as expected |
Seems solved. Close this now. |
Yes, I just tested it and it is confirmed that the present release of koreader solves the problem for kobo glo, running firmware 3.3.0. Suspend and light buttons work, and it doesn't freeze when idle. Ps. Sorry for the delay, been a little busy off late. |
I'm running the koreader version
koreader-nightly-20140618
(latest nightly build as of June 23, 2014) on my Kobo Glo with firmware version 3.3.0koreader automatically freezes after a few seconds of being idle on opening a book, and I have to restart to get everything back. Here's the content of
crash.log
I've tried this on multiple pdfs, and the result is always the same. Would appreciate any help on this, as koreader is probably the best reader I've tried for pdf's on the kobo and I intend to use it for all my pdf needs :)
Steps to reproduce the problem :
Result : Screen freezes and only thing that can be done is a reset.
Here is the detailed log. I opened a pdf, turned a page quickly, enabled reflow and waited for a while before attempting to turn the page again.
The text was updated successfully, but these errors were encountered: