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 12-31-2023, 10:41 AM   #1
sheep_wizard
Junior Member
sheep_wizard began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2023
Device: kobo clara hd
Kobo Minesweeper

Hi all, I decided to make minesweeper for kobo devices.

Video:
https://www.youtube.com/watch?v=MJ06zaX2aZM

Source:
https://github.com/SheepWizard/kobo-minesweeper

There is a issue where the screen will sometimes randomly freeze and you need to reboot. If anyone who has used FBInk experienced a similar problem please let me know how to fix.
Attached Thumbnails
Click image for larger version

Name:	screenshot_2.png
Views:	125
Size:	89.9 KB
ID:	205504  

Last edited by DNSB; 12-31-2023 at 01:17 PM. Reason: moved oversize image to attachment
sheep_wizard is offline   Reply With Quote
Old 12-31-2023, 02:49 PM   #2
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,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by sheep_wizard View Post
There is a issue where the screen will sometimes randomly freeze and you need to reboot.
On a Clara HD or something else?

The Clara HD issues are mostly limited to rota 0 @ 8bpp, which is neither the default rotation nor the default bitdepth.

For the Libra 2/Clara 2E/Nia, you might want to try throwing a
fbink_wakeup_epdc
(which is only available on master right now) before every refresh attempt (or on every user input, which is what Nickel does with a ~5s debounce).

I'm still debating whether folding that hack inside "implicit" refresh calls via an FBInkConfig field, but testing this is tedious, so I haven't bothered so far.
NiLuJe is offline   Reply With Quote
Old 01-01-2024, 06:25 AM   #3
sheep_wizard
Junior Member
sheep_wizard began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2023
Device: kobo clara hd
Quote:
Originally Posted by NiLuJe View Post
On a Clara HD or something else?

The Clara HD issues are mostly limited to rota 0 @ 8bpp, which is neither the default rotation nor the default bitdepth.

For the Libra 2/Clara 2E/Nia, you might want to try throwing a
fbink_wakeup_epdc
(which is only available on master right now) before every refresh attempt (or on every user input, which is what Nickel does with a ~5s debounce).

I'm still debating whether folding that hack inside "implicit" refresh calls via an FBInkConfig field, but testing this is tedious, so I haven't bothered so far.
Only tested on clara HD so far. Dont really understand what you mean with the Clara HD issues, is there something I can do too prevent the issue?
sheep_wizard is offline   Reply With Quote
Old 01-01-2024, 12:41 PM   #4
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,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I meant just that: all of the Mk. 7 devices are prone to (apparently) random EPDC hangs, but as far as the Clara HD is concerned, I'm mostly aware of them on very non-default fb setups.

The epdc PM poke I mentioned was designed to workaround other, much more severe EPDC hangs on more recent devices, but I have no idea if it helps with the Mk. 7 issues, as I no longer daily drive one, and the one I did (a Forma), only crashed exceedingly rarely, so testing this is a nightmare.
NiLuJe is offline   Reply With Quote
Old 01-02-2024, 12:50 PM   #5
sheep_wizard
Junior Member
sheep_wizard began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2023
Device: kobo clara hd
You may need to dumb it down a bit for me, i'm new to all this

1. What is EPDC and what caused it too hang?

2. Is there any configuration of FBInk I can set to make this less likely to happen, like picking a certain waveform.

3. Is there anything else I can do to prevent this EPDC hang?
sheep_wizard is offline   Reply With Quote
Old 01-02-2024, 02:09 PM   #6
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,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
1. The display driver/controller. No idea, the stock NTX kernels aren't verbose enough. Feels low-level power-management related, as being plugged in or having wi-fi enabled usually prevents almost all of the hangs.

2. Not as of yet, as this is extremely use-case specific, and I feel like taking the Nickel approach of doing this in an input handler sounds slightly more sensible than asking fbink to force it before every refresh. (Which is what we did in KOReader, but, again, that's a specific use-case where we know we never really send ioctl storms, so it's mostly fine for us).

3.
Quote:
Originally Posted by NiLuJe View Post
you might want to try throwing a
fbink_wakeup_epdc
(which is only available on master right now) before every refresh attempt (or on every user input, which is what Nickel does with a ~5s debounce).
Since you're using the Python module, you don't actually have access to that function until I rebuild and update all the things (... soon(TM)).

EDIT: Also, as mentioned above, this isn't exactly aimed at the Mk. 7 issues. In fact, the Clara HD kernel might not even *provide* the sysfs knob this is poking!

EDIT²: Depending on what exactly you're doing, you might also want to batch some draw and/or refresh calls together, too (c.f., the no_refresh config & fbink_refresh), to avoid sending ioctl storms.

TL;DR: So, yeah, check if you can repro while plugged in and monitoring over SSH via USBNet and/or over Wi-Fi, because if you can, that's not what I've been talking about, and might simply be PEBCAK .

Last edited by NiLuJe; 01-02-2024 at 02:56 PM.
NiLuJe is offline   Reply With Quote
Old 01-03-2024, 06:50 AM   #7
sheep_wizard
Junior Member
sheep_wizard began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2023
Device: kobo clara hd
Thanks for dumbing it down for me

I batched together the draws into 1 refresh and that seems to have fixed the issue. For context I was drawing at worst about 90 images all at once, so I guess that was to much for my device to handle
sheep_wizard is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gtkMines for kindle touch (minesweeper) chris_c Kindle Developer's Corner 43 12-09-2023 03:41 PM
KMinesweeper: Minesweeper for kindle encol Kindle Developer's Corner 36 12-26-2016 02:06 PM
Minesweeper No Jailbreak K3 Only nathansuchy Amazon Kindle 7 09-12-2012 02:16 PM
Free nookColor game - Minesweeper koland Deals and Resources (No Self-Promotion or Affiliate Links) 0 08-18-2011 04:26 PM
Kindle DX New Minesweeper Levels sirbruce Amazon Kindle 2 06-14-2009 12:11 AM


All times are GMT -4. The time now is 02:20 PM.


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