07-18-2019, 10:54 PM | #211 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
|
07-18-2019, 10:58 PM | #212 | |
Enthusiast
Posts: 36
Karma: 123210
Join Date: Dec 2016
Device: KV,Kobo Forma
|
Quote:
I haven't worked with scripts in a LOOOOONG time so I'm sure there is a more efficient way of doing all this but it works as a POC |
|
Advert | |
|
07-18-2019, 11:51 PM | #213 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@desterly: That's definitely a good reason in my book ;D.
(It does, though ;p) Code:
./evtest: unrecognized option '--help' USAGE: Capture mode: evtest [--grab] /dev/input/eventX --grab grab the device for exclusive access Query mode: (check exit code) evtest --query /dev/input/eventX <type> <value> <type> is one of: EV_KEY, EV_SW, EV_LED, EV_SND <value> can either be a numerical value, or the textual name of the key/switch/LED/sound being queried (e.g. SW_DOCK). |
07-19-2019, 04:58 AM | #214 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
OK, so... I have two H2O's. The touch loop issue yesterday? I can only reproduce it on one of them.
That's with switching their internal SD cards out so there is no difference in software. The H2O with the issue is the one I bought with broken display off ebay and performed a display replacement on. So, uh... stray electrons or something. Infested with nargles. And fbink makes them wander. I really haven't got the foggiest idea. Weirdest issue ever. I'll see what I can do for ... working around this freak issue anyway, and handling keycodes as it seems unavoidable. Sorry for the inconvenience & thanks everyone for your patience. |
07-19-2019, 09:06 AM | #215 |
Enthusiast
Posts: 36
Karma: 123210
Join Date: Dec 2016
Device: KV,Kobo Forma
|
As ugly as it is, the test update/hack I have on my device seems to work. After about 8hrs of "sleeping", my Forma went from 67% battery to 66% battery.
@frostschultz - I might be missing it somewhere too but in the calls, I can't see where the timeout call's return value is actually used. No matter what it returned, the fbInk update was still called. Wrapping it in an check resolved that though. |
Advert | |
|
07-19-2019, 09:14 AM | #216 | |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Quote:
But yeah, that function originated from my FlashCard mod. For MiniClock, whether it timed out after 60 seconds (update interval), or really touched the display, that didn't matter... not before adding button support anyway. I probably won't have time to work on this anymore today but I'll try to get an updated version out soonish |
|
07-19-2019, 09:32 AM | #217 | |
Enthusiast
Posts: 36
Karma: 123210
Join Date: Dec 2016
Device: KV,Kobo Forma
|
Quote:
What I was somewhat thinking of doing here was creating a new bin based off evtest that excepts an input device and a list of KEY_CODES, waits for an event input then returns true/false if it was one that it should have been listening for... That would do a few things I could see: 1) KEY_CODES could be set as a config option (in case they are different by device and/or someone only wants to refresh when they page forward, not back) 2) allow for a single call replacing the read / evtest call with just one. 3) give me something to do to make it till 5:00 on a Friday when I can go home This is somewhat what the query mode does currently but w/ that, it makes the call and returns (no wait) which is why in my test I had to leave in the read to actually wait for an event. |
|
07-19-2019, 10:59 AM | #218 |
Grand Sorcerer
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
I wonder if this discussion belongs in the Developer subforum?
Sent from my moto g(7) power using Tapatalk |
07-19-2019, 11:38 AM | #219 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@frostschutz: Gremlins! .
@desterly: I'd then be very tempted to just daemonize and do most of this in C (or, hell, Lua) to go through the FBInk API and avoid the overhead of spamming ioctls & I/O to read fonts over and over again that spam spawning the CLI tool incurs... ;p. Last edited by NiLuJe; 07-19-2019 at 11:42 AM. |
07-19-2019, 11:42 AM | #220 | |
Enthusiast
Posts: 36
Karma: 123210
Join Date: Dec 2016
Device: KV,Kobo Forma
|
Quote:
Better to set a low goal and overachieve and feel accomplished at the end That and it seems kind of rude to say "Hey I found a solution to the next step by completely rewriting what you did and taking another approach" |
|
07-19-2019, 12:21 PM | #221 | |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Quote:
Otherwise I'll have customizable / selective event system... uh, maybe Sunday or Monday. If not, remind me. |
|
07-21-2019, 03:30 AM | #222 |
Connoisseur
Posts: 78
Karma: 25542
Join Date: Nov 2013
Location: NRW Germany
Device: Kobo Forma
|
Hello, I have the same issue, on my Forma, without Sleepcover, i will waiting for the fix!
@frostschutz great Job, Thank you! Gesendet von meinem SM-T835 mit Tapatalk |
07-22-2019, 06:49 PM | #223 |
Zealot
Posts: 114
Karma: 26552
Join Date: Jan 2017
Device: Kobo Forma
|
|
07-23-2019, 10:07 AM | #224 | |
Enthusiast
Posts: 36
Karma: 123210
Join Date: Dec 2016
Device: KV,Kobo Forma
|
Quote:
I haven't had much time to actually do anything past that though. |
|
07-23-2019, 01:58 PM | #225 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
This is an experimental version.
miniclock.cfg changes: Code:
# # To debug, set to 1 (will print event parser) # debug=0 # # whitelist of accepted events that should update miniclock # ABS:MT_POSITION_X/Y: touchscreen coordinates # KEY:F23/F24: forma forward backward buttons (to be confirmed) # KEY:POWER: going into standby manually # whitelist=ABS:MT_POSITION_X ABS:MT_POSITION_Y KEY:F23 KEY:F24 KEY:POWER # # cooldown num time # # after receiving num unrecognized events in a row, # stop listening to all input for <time> seconds. # (helps avoid power consumption during standby) # cooldown=3 30 If non-whitelisted events keep coming in, MiniClock will stop listening to the input devices for a time (cooldown). This is in hopes of avoiding drain when something keeps sending odd events. Not sure if this works. Add "{debug}" to the date format string and cooldown itself will update the clock, so you see it happens at all. Otherwise {debug} will show which event caused the update. Please let me know if it works for you... Last edited by frostschutz; 07-23-2019 at 02:01 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
I (almost) spend more time reading about e-readers than e-reading | Antoinekamel | General Discussions | 15 | 02-25-2013 10:48 AM |
360 PB360 display gets "stripes" from time to time | klaetsch | PocketBook | 1 | 01-05-2011 04:49 AM |
How to get the time to display | synic | Sony Reader | 9 | 06-10-2009 06:05 PM |
Time Display | Jenny123 | Sony Reader | 2 | 04-23-2009 02:06 PM |
Time Display? | MickeyC | Sony Reader | 3 | 02-10-2008 11:57 PM |