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, 01:35 PM   #1
Bob Brunius
Connoisseur
Bob Brunius began at the beginning.
 
Posts: 68
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 01:58 PM. Reason: changed photo link
Bob Brunius is offline   Reply With Quote
Old 01-13-2017, 01:02 AM   #2
Bob Brunius
Connoisseur
Bob Brunius began at the beginning.
 
Posts: 68
Karma: 10
Join Date: Nov 2014
Location: Orcas, WA
Device: Kindle PW & Kobo H2O
bump..........
Bob Brunius is offline   Reply With Quote
Advert
Old 01-13-2017, 02: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: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
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, 06: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: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
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, 01:07 AM   #5
Bob Brunius
Connoisseur
Bob Brunius began at the beginning.
 
Posts: 68
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
Advert
Old 01-20-2017, 05: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: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
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 05:32 AM.
frostschutz is offline   Reply With Quote
Old 01-23-2017, 11:57 AM   #7
Bob Brunius
Connoisseur
Bob Brunius began at the beginning.
 
Posts: 68
Karma: 10
Join Date: Nov 2014
Location: Orcas, WA
Device: Kindle PW & Kobo H2O
I tested the command to disable the touchpad and it works. Thanks for that. Might there be a way to reattach the driver later without a restart?

I thought that using browser cookies would be a possible route to staring bash scripts to controlling stuff. Apparently though the browser doesn't write cookies to the files system. Close the browser and the cookies are gone.

I'm warming up to your webportal concept. My application html file is already a local file that loads by entry in config. The data is brought in from the remote server using cross domain jsonp call which works on the minimally featured browser.
Bob Brunius is offline   Reply With Quote
Old 01-23-2017, 12:12 PM   #8
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,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by Bob Brunius View Post
I tested the command to disable the touchpad and it works. Thanks for that. Might there be a way to reattach the driver later without a restart?
I haven't looked into it. But my guess is - no. Even if you managed to tell the driver to re-bind that device, the handle nickel has on the touchscreen would probably no longer be valid and nickel won't know to re-open it. Just guessing. And if you have to kill and restart nickel you might just as well reboot.

Quote:
Originally Posted by Bob Brunius View Post
I thought that using browser cookies would be a possible route to staring bash scripts to controlling stuff.
There are some log messages and I've done such things before but that's not a very stable solution (like log messages change in between firmware versions).

Quote:
Originally Posted by Bob Brunius View Post
I'm warming up to your webportal concept.
It should work, esp. since you're already in this browser environment.

The CGI scripts included with webportal are all apps that produce html for a user interface, in your case you'd just have to fire some event or other so yours should be simpler. It's based on busybox httpd so you should also be able to find other cgi examples for that online.
frostschutz is offline   Reply With Quote
Old 03-09-2017, 08:35 PM   #9
pasquale8120
Junior Member
pasquale8120 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2017
Device: Kobo gloHD
Question about your sailing app.
How did you prevent the browser from doing the fancy refresh with all the flickering?
I tried pointing the browser at a JS "gauge" on the web and every few updates
the whole screen flashes.
pasquale8120 is offline   Reply With Quote
Old 03-10-2017, 04:41 AM   #10
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,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Using only pure black&white imagery might help a bit, "color" (16 level grayscale) requires more effort for refreshing
frostschutz is offline   Reply With Quote
Old 03-17-2017, 06:18 PM   #11
Bob Brunius
Connoisseur
Bob Brunius began at the beginning.
 
Posts: 68
Karma: 10
Join Date: Nov 2014
Location: Orcas, WA
Device: Kindle PW & Kobo H2O
Quote:
Originally Posted by pasquale8120 View Post
Question about your sailing app.
How did you prevent the browser from doing the fancy refresh with all the flickering?
I tried pointing the browser at a JS "gauge" on the web and every few updates
the whole screen flashes.
I'm using javascript in the browser to replace the html contents of certain <div> elements when they need updating. I'm not getting the whole screen flashes that you mention. The browser only replaces part of the screen. It does not do a full screen refresh.
Bob Brunius is offline   Reply With Quote
Old 03-19-2017, 07:52 AM   #12
kido.resuri
Groupie
kido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura aboutkido.resuri has a spectacular aura about
 
Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
Would you release the display application you have?
kido.resuri 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 10:43 PM
Disable touch screen page-turn on tap? roteg Calibre 5 12-25-2014 01:38 AM
how to disable touch screen? FinancialWar Sony Reader 1 05-13-2012 11:14 PM
Disable Kindle touch screen saver? comnread66 Amazon Kindle 1 02-03-2012 08:42 PM


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


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