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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 07-18-2019, 10:54 PM   #211
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: 8,948
Karma: 14300002
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
@desterly: That does indeed sound simpler . @BloodRagg had a PoC that parsed *touch* events in shell over here .

EDIT: Just saw your second post . I linked to evemu/evtest binaries at the end of this post, FWIW .
NiLuJe is online now   Reply With Quote
Old 07-18-2019, 10:58 PM   #212
desterly
Member
desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.
 
Posts: 24
Karma: 123210
Join Date: Dec 2016
Device: KV,Kobo Forma
Quote:
Originally Posted by NiLuJe View Post
EDIT: Just saw your second post . I linked to evemu/evtest binaries at the end of this post, FWIW .
I started with yours but that version doesn't have the query functionality I don't think... either that or the "parameter" options just don't show.. besides, I needed to test my cross compile environment

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
desterly is offline   Reply With Quote
Advert
Old 07-18-2019, 11:51 PM   #213
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: 8,948
Karma: 14300002
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
@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).
NiLuJe is online now   Reply With Quote
Old 07-19-2019, 04:58 AM   #214
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,103
Karma: 4876530
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: H2O, StoryHD, PW4
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.
frostschutz is offline   Reply With Quote
Old 07-19-2019, 09:06 AM   #215
desterly
Member
desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.
 
Posts: 24
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.
desterly is offline   Reply With Quote
Advert
Old 07-19-2019, 09:14 AM   #216
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,103
Karma: 4876530
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: H2O, StoryHD, PW4
Quote:
Originally Posted by desterly View Post
@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.
It's used in the {debug} version I uploaded one or two pages earlier.

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
frostschutz is offline   Reply With Quote
Old 07-19-2019, 09:32 AM   #217
desterly
Member
desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.
 
Posts: 24
Karma: 123210
Join Date: Dec 2016
Device: KV,Kobo Forma
Quote:
Originally Posted by frostschutz View Post
It's used in the {debug} version I uploaded one or two pages earlier.

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
Well that makes me feel better... I know I'm rusty but I was starting to question myself.

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.
desterly is offline   Reply With Quote
Old 07-19-2019, 10:59 AM   #218
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 10,584
Karma: 60968805
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
PeterT is offline   Reply With Quote
Old 07-19-2019, 11:38 AM   #219
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: 8,948
Karma: 14300002
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
@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.
NiLuJe is online now   Reply With Quote
Old 07-19-2019, 11:42 AM   #220
desterly
Member
desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.
 
Posts: 24
Karma: 123210
Join Date: Dec 2016
Device: KV,Kobo Forma
Quote:
Originally Posted by NiLuJe View Post
@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 spamming spawning the CLI tool incurs... ;p.
That's probably where it end up.... I just don't like to set myself up w/ goals for minimal available time..

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"
desterly is offline   Reply With Quote
Old 07-19-2019, 12:21 PM   #221
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,103
Karma: 4876530
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: H2O, StoryHD, PW4
Quote:
Originally Posted by desterly View Post
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"
Not at all... if you do it better then it means less work for me.

Otherwise I'll have customizable / selective event system... uh, maybe Sunday or Monday. If not, remind me.
frostschutz is offline   Reply With Quote
Old 07-21-2019, 03:30 AM   #222
jamalau
Enthusiast
jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.
 
Posts: 45
Karma: 25542
Join Date: Nov 2013
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
jamalau is offline   Reply With Quote
Old 07-22-2019, 06:49 PM   #223
poczynek
Enthusiast
poczynek can name that song in three notespoczynek can name that song in three notespoczynek can name that song in three notespoczynek can name that song in three notespoczynek can name that song in three notespoczynek can name that song in three notespoczynek can name that song in three notespoczynek can name that song in three notespoczynek can name that song in three notespoczynek can name that song in three notespoczynek can name that song in three notes
 
Posts: 45
Karma: 24552
Join Date: Jan 2017
Device: Kobo Forma
Quote:
Originally Posted by desterly View Post

I'll test the battery tonight and report back
Any update on how the battery test went with this test version?

Thanks guys for all your help on looking at this too.
poczynek is offline   Reply With Quote
Old 07-23-2019, 10:07 AM   #224
desterly
Member
desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.desterly is an accomplished Snipe hunter.
 
Posts: 24
Karma: 123210
Join Date: Dec 2016
Device: KV,Kobo Forma
Quote:
Originally Posted by poczynek View Post
Any update on how the battery test went with this test version?

Thanks guys for all your help on looking at this too.
Battery test went good... see https://www.mobileread.com/forums/sh...&postcount=215

I haven't had much time to actually do anything past that though.
desterly is offline   Reply With Quote
Old 07-23-2019, 01:58 PM   #225
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,103
Karma: 4876530
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: H2O, StoryHD, PW4
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
Set debug=1 in the config file and the events will be printed on screen. This is useful to determine new values for the whitelist. (I wasn't sure about Forma page button event as I don't have a Forma... the F23/F24 I found online somewhere, not necessarily correct. I also don't know if all touchscreens use the MT_POSITION_X event or not.).

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...
Attached Files
File Type: zip KoboRoot-MiniClock-20190723.zip (307.8 KB, 18 views)

Last edited by frostschutz; 07-23-2019 at 02:01 PM.
frostschutz is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 11:16 AM.


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