Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 12-12-2019, 01:53   #1
LJK
Registered User

Join Date: Jul 2018
Posts: 7
MultiTouch Touchscreen for OpenCPN

Hello,
Any recommendations for a (cheap) 7inch touchscreen, with multi touch support (picnch to zoom, long press to right click), for use with a Raspberry Pi and OpenPlotter?

Installation in wheelhouse so no waterproofing or daylight display requirements, but if it is possible at this stage of Raspbian / OpenPlotter development I would very much like to have multi touch support.

The obvious candidate is the Official RaspberryPi touchscreen, but is the screen’s multitouch supported in OpenCPN?

Thanks,
LJK is offline   Reply With Quote
Old 12-12-2019, 02:33   #2
Registered User

Join Date: Aug 2016
Location: ABC's
Boat: Prout Snowgoose 35
Posts: 1,747
Re: MultiTouch Touchscreen for OpenCPN

Its the operating system that needs to support multi-touch, openCPN will work with whatever inputs it picks up from the OS.
mikedefieslife is offline   Reply With Quote
Old 17-12-2019, 00:39   #3
LJK
Registered User

Join Date: Jul 2018
Posts: 7
Re: MultiTouch Touchscreen for OpenCPN

Have purchased the "Official Rapberry Pi Touchscreen".
Fresh install of Raspbian Buster.
OpenCPN v5.
$lsmod shows that the hid-multitouch kernel module is installed.
OpenCPN/options/UI/enable touchscreen is checked.
Touch screen works as a single click device, but multi touch (and so pinch and zoom) do not.
Does anyone have this working!?
thanks,
LJK is offline   Reply With Quote
Old 17-12-2019, 02:30   #4
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 2,961
Re: MultiTouch Touchscreen for OpenCPN

LJK..
I've the "official" Raspberry 7" screen on a RPi3B+ and O v 5.0.
I can confirm your observations. Single click and drag is working. Double or long click is not working. Two finger zoom in/out is not working in OCPN, with or without "[]Enable touchscreen", although I can two finger zoom in for example Chromium browser.
I haven't tested this before so I've no advises to share.
Hakan is offline   Reply With Quote
Old 17-12-2019, 02:57   #5
LJK
Registered User

Join Date: Jul 2018
Posts: 7
Re: MultiTouch Touchscreen for OpenCPN

thanks Hakan - so I wonder, has anyone else made it work?
LJK is offline   Reply With Quote
Old 17-12-2019, 05:39   #6
Registered User

Join Date: Jul 2012
Location: Chania, Crete, Greece
Boat: comfortina 32
Posts: 22
Re: MultiTouch Touchscreen for OpenCPN

I use the daemon "twofing". It uses two fingers touch for right click and includes pinch-expand gestures.


Look at https://www.raspberrypi.org/forums/v...c.php?t=138575 for some details on how to install


Alexandros
Alexandros is offline   Reply With Quote
Old 17-12-2019, 10:16   #7
LJK
Registered User

Join Date: Jul 2018
Posts: 7
Re: MultiTouch Touchscreen for OpenCPN

Much appreciation for the info. I followed the above link and have it working.
Superb help. Thankyou.
LJK is offline   Reply With Quote
Old 23-12-2019, 11:22   #8
Registered User

Join Date: Jun 2017
Posts: 46
Re: MultiTouch Touchscreen for OpenCPN

Quote:
Originally Posted by mikedefieslife View Post
Its the operating system that needs to support multi-touch, openCPN will work with whatever inputs it picks up from the OS.

It doesn't seem the case. Multitouch works for me in Chromium on latest Raspbian, but it doesn't work in OpenCPN. Seems something is not complete

in OpenCPN. In Chromium I can zoom in/out with two fingers with no issues.


Has anyone from OpenCPN dev team looked at how its done in Chromium?


Thanks,
--MG
mgrouch is offline   Reply With Quote
Old 23-12-2019, 11:45   #9
LJK
Registered User

Join Date: Jul 2018
Posts: 7
Re: MultiTouch Touchscreen for OpenCPN

I concur.
OpenCPN does not seem to support multi touch, unless the twofing daemon workaround is applied to it.
LJK is offline   Reply With Quote
Old 25-12-2019, 00:45   #10
Registered User
 
CatNewBee's Avatar

Join Date: Aug 2017
Boat: Lagoon 400S2
Posts: 2,998
Images: 3
Re: MultiTouch Touchscreen for OpenCPN

It seems to not respond to the multi-touch zoom events as the raspbean OS does. Implementation of doubleclick and context menu are difficult too with touch.
__________________
Lagoon 400S2 refit for cruising: LiFeYPO4, solar and electric galley...
CatNewBee is offline   Reply With Quote
Old 10-02-2020, 00:19   #11
Registered User

Join Date: Mar 2018
Posts: 5
Re: MultiTouch Touchscreen for OpenCPN

I was pulling my hair out the last couple days trying to get OpenCPN to work with a USB Touchscreen on a RPI4 Raspbian Buster. The touchscreen I'm using is a Uperfect 12.3" 1600x1200 10 finger touch. $100 on ebay. Works beautifully with the Chrome browser. Great website to test multi-touch is https://patrickhlauke.github.io/touch/

However, no luck getting pinch to zoom and right mouse click emulation to work in OpenCPN. I did finally get right click working by switching the X11 driver from libinput to evdev but evdev had calibration issues I never totally figured out.

I was able to get the twofing workaround up and running. The Uperfect reports as a "TSTP MTouch". Pretty much followed the instructions for Buster substituting "TSTP MTouch" for "FT5406 memory based driver". And creating a rule file /etc/udev/rules.d/libinput.rules instead of /etc/udev/rules.d/70-touchscreen-egalax.rules

The twofing workaround kind of breaks some of the touchscreen stuff for the Chrome browser. I'm planning on using this primarily for OpenCPN so the loss of touch functions in other apps is not a real problem for me right now. The twofing workaround for OpenCPN seems a bit sluggish compared to the stock multi-touch in the Chrome browser.

There are also some tricks for hiding the mouse cursor to make things look more tablet like. I've edited /etc/lightdm/lightdm.conf adding the line xserver-command = X -nocursor". I may switch to the utility unclutter as you can set up rules to get the cursor back when you plug in a real mouse.

In general OpenCPN works just OK with a touchscreen. Deleting waypoints, tracks and such with touch is a bit tricky. Hitting the right tabs, buttons and such is a little tricky too with fat fingers.
flatman is offline   Reply With Quote
Reply

Tags
enc, opencpn, screen

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN on Raspberry Pi w/touchscreen not working drewc228 OpenCPN 7 28-03-2017 16:39
opencpn kiosk touchscreen skkeith OpenCPN 5 26-08-2015 13:46
Garmin 5208 Touchscreen vs 6208 SV Demeter Marine Electronics 14 09-02-2013 15:55
OpenCPN on a 8" Touchscreen Dave9111 OpenCPN 3 05-09-2012 01:01
Northstar 8000i 15" touchscreen tpen Navigation 1 22-11-2009 15:09

Advertise Here


All times are GMT -7. The time now is 13:11.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.