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 12-23-2016, 02:35 PM   #1
Bob Brunius
Connoisseur
Bob Brunius began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Nov 2014
Location: Orcas, WA
Device: Kindle PW & Kobo H2O
Disable H2O touch screen double click???

I have a display application photo running using the built in browser. It works really well but the last issue I can't seem to fix is that when it rains the drops make the reader think it was double clicked and the zoom level changes.

I've tried intercepting the double click using javascript but that experimental doesn't have dblclick() or touchstart() functions.

Is there some way in the config file maybe to shut off the double click zooming?

Last edited by Bob Brunius; 12-23-2016 at 02:58 PM. Reason: changed photo link
Bob Brunius is offline   Reply With Quote
Old 01-13-2017, 02:02 AM   #2
Bob Brunius
Connoisseur
Bob Brunius began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Nov 2014
Location: Orcas, WA
Device: Kindle PW & Kobo H2O
bump..........
Bob Brunius is offline   Reply With Quote
Old 01-13-2017, 03:04 AM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 10,934
Karma: 16481573
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD
Sorry, haven't seen anything, which is probably why you didn't get a response before. I also doubt that it is something that has worried about. But, have you tried turning off the droplet detection in the settings?
davidfor is offline   Reply With Quote
Old 01-13-2017, 07:55 AM   #4
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: 1,723
Karma: 3934349
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: Kobo H2O, iriver StoryHD
In software, I don't think there is any you can do from a webpage html. Unless the browser has a bug that makes it lock up, it's not possible to block the inputs, after all there has to be a way to go back to the main menu?

If you have a way to run a script on the Kobo itself (maybe via my WebPortal mod, using a custom CGI script?), you can disable the touchscreen like such:

Code:
# ls /sys/bus/i2c/drivers/zforce-ir-touch/
0-0050  bind    uevent  unbind
# echo 0-0050 > /sys/bus/i2c/drivers/zforce-ir-touch/unbind
That tells the touchscreen driver to unbind ("unplug") the touchscreen in software so it no longer works. To recover touchscreen functionality, you have to reboot.

You could also do this in hardware. An 8" screen protector that covers the entire bezel might prevent all touches. But if you're using this on a boat, I'm not sure how well that works in wind and weather and whether it would obstruct screen visibility. Or a waterproof bag for the entire device that doesn't come in contact with the screen. You could also use something soft/opaque around the screen borders to blind the IR touch entire.
frostschutz is offline   Reply With Quote
Old 01-20-2017, 02:07 AM   #5
Bob Brunius
Connoisseur
Bob Brunius began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Nov 2014
Location: Orcas, WA
Device: Kindle PW & Kobo H2O
Could a demon be started at boot which if it detects the browser starting up then runs the code you suggest.

The other approach I was thinking of was reading the browser's cookies to trigger scripts. The screen brightness is one other thing I would like to control via javascript in the browser also.
Bob Brunius is offline   Reply With Quote
Old 01-20-2017, 06:30 AM   #6
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: 1,723
Karma: 3934349
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: Kobo H2O, iriver StoryHD
As for the frontlight control, this oldie still works for setting brightness 0-100:

https://www.mobileread.com/forums/sh...d.php?t=200706

As for JavaScript, again have a look at my WebPortal mod, if you can use JavaScript to fire a http request to http://webportal/cgi-bin/... the WebPortal would run a cgi-bin shell script for you that does the things you want. So you could both disable touchscreen, and change light, whenever you want using JavaScript with cgi-bin helper.

Last edited by frostschutz; 01-20-2017 at 06:32 AM.
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
Double Click/Tap to exit full screen mode in viewer mailings Calibre 2 08-27-2015 11:43 PM
Disable touch screen page-turn on tap? roteg Calibre 5 12-25-2014 02:38 AM
how to disable touch screen? FinancialWar Sony Reader 1 05-14-2012 12:14 AM
Disable Kindle touch screen saver? comnread66 Amazon Kindle 1 02-03-2012 09:42 PM


All times are GMT -4. The time now is 09:01 PM.


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