Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 25-01-2018, 13:29   #1
Goj
Registered User

Join Date: Jan 2018
Posts: 8
[Raspberry] BUG - touchscreen drag back

Hi gents,

I am facing an issue with my touchscreens, ONLY with OpenCPN, when I try to drag and drop to make the map move. A 10s movie is pretty clear:

https://wetransfer.com/downloads/80202a6a318e2624527279b857ae939720180123092613/b85253a61e7b02c6a02c96e455c3c17e20180123092613/810a85

It is a Raspberry Pi 2 B, and the issue occurs under the following setups:

- Waveshare 7" Capacitive type, OpenCPN 4.8.0. OpenPLotter v10, 16, 17
- Waveshare 7" Capacitive type, OpenCPN 4.8.0. Jessie Nov 2015
- Waveshare 7" Capacitive type, OpenCPN 4.8.0. Stretch Nov 2017
- Official Pi Display 7" Capacitive type, OpenCPN 4.8.0. Stretch Nov2017.
+ a billion settings within and outside OpenCPN : GPU memory, swap, xinput-calibrator, .....
I am running out of ideas, and I need some help.
Thx
Goj is offline   Reply With Quote
Old 25-01-2018, 18:58   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,532
Images: 2
Re: [Raspberry] BUG - touchscreen drag back

So the problem is that while panning with your finger, the chart will pan and then reset back to the previous location?

Does this change depending on how you pan?
1. Basically try dragging and throwing the chart across.
2. Deliberately drag by placing your finger on the screen and pull it across, pause and remove your finger.

Please report back.
rgleason is offline   Reply With Quote
Old 25-01-2018, 19:30   #3
Goj
Registered User

Join Date: Jan 2018
Posts: 8
Re: [Raspberry] BUG - touchscreen drag back

Hi,
Thank you for your answer.
The way I pan does not change it.
Slow drag / fast drag.
horizontal /vertical.
clean pull up&down / fast throwing movement.
short / long distance drags.

Actually, tonight, I noticed I don't even have to drag to get the problem.
When the problem occurs :
I can pull up my finger, and pull it down anywhere else on the screen. Then the map will move so the position of the cursor will come under my finger. And again, and again and again.

It is France here, I go to bed. Can't wait earing from you.
Goj is offline   Reply With Quote
Old 26-01-2018, 04:28   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,532
Images: 2
Re: [Raspberry] BUG - touchscreen drag back

I am a Windows guy, and not a programmer. This sounds like it might be a driver problem, but you say it only occurs with OpenCPN.

Would you mind renaming your opencpn.ini to opencpn.ini.old (or some alternative) and then reboot and try opencpn?

Is there any rhyme or reason to where it re-centers to?

What chart types are you using?

If you change chart types does it still re-center?

If you make an "Empty" chart group and set that active (right click and pick Chart Group > Empty) does it still do it?

We are trying to narrow the focus and conditions under which this occurs.

Turn off "Center Zoom" and try it.
rgleason is offline   Reply With Quote
Old 26-01-2018, 04:43   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,532
Images: 2
Re: [Raspberry] BUG - touchscreen drag back

While we are at it, please attach your opencpn.ini and opencpn.log files. You may have to zip them and add ".doc" or .pdf" to the end in order to be able to upload then here.

Under Options > Display
General Tab
change each setting and test.

Advanced Tab
Are you using opengl?
Try it with
show skewed on/off
quilting on/off
suppress blur/fog on/off
suppress scaled vector on/off
use accelerated graphics on/off
Also see if setting the screen manually makes a difference.

Hopefully one of the RPI guys will have an idea.

Perhaps it is some mis-configuration in Opencpn installation?
How did you install it? Specifics please.
rgleason is offline   Reply With Quote
Old 26-01-2018, 13:32   #6
Goj
Registered User

Join Date: Jan 2018
Posts: 8
Re: [Raspberry] BUG - touchscreen drag back

Hi Rick,
Thank you very much for all these questions. Please find below my answers.


Would you mind renaming your opencpn.ini to opencpn.ini.old (or some alternative) and then reboot and try opencpn?
i tried to find it in linux during an hour. and failed….

Is there any rhyme or reason to where it re-centers to?
it recenters to my previous finger position. For exemple, i tap on New-York, drag to south and pull out my finger. Now I have Miami in the center of the screen. I want to go south a bit more, so I tap on miami. Then, instantaneously, before I can drag, the map recenter New-York under my finger.

It seems like the more there are object on the screen, the more often it happens.
the more there are objects, the more often it happens. That means :
- when i zoom out, very out, it is 90% smooth. and the very few times it recenters, it recenters only once. Then it goes smooth again for some time.
- when i zoom in a lot, it is also smooth, because 90% of the time you don’t have that many objects concentrated on the map.
- at mid zoom, your screen can get crowed and there are some crazy bermudas places where it recenters fooooorever after i tapped my finger inside. Then I tap quilcky everywhere on the screen until the situation gets solved.


What chart types are you using?
CM93 V2, . I have 3 sets , 2012, 2014, and “2017”, a custom uptodate 2012 library shared by french community.

If you change chart types does it still re-center?
As you requested I tried with pilot charts. Yes it does recenter again.

If you make an "Empty" chart group and set that active (right click and pick Chart Group > Empty) does it still do it?
Yes it does. but a bit smoother than in normal situation. Just like extreme zooms out and in. See movie attached.

We are trying to narrow the focus and conditions under which this occurs.
So far… always lol.

Turn off "Center Zoom" and try it.
done. no changes.

While we are at it, please attach your opencpn.ini and opencpn.log files. You may have to zip them and add ".doc" or .pdf" to the end in order to be able to upload then here.
Done. See attached.

Under Options > Display
General Tab
change each setting and test. done. no changes.

Advanced Tab
Are you using opengl? no. I tried. far too slow. cache activated/deactivated.
Try it with
show skewed on/off. done. no changes.
quilting on/off. done. no changes.
suppress blur/fog on/off. done. no changes.
suppress scaled vector on/off. done. no changes.
use accelerated graphics on/off. done. no changes.
Also see if setting the screen manually makes a difference. done to 150mm. no changes.

Hopefully one of the RPI guys will have an idea.

Perhaps it is some mis-configuration in Opencpn installation?
How did you install it? Specifics please.
two methods.
1. Step 5: Install OpenCPN Chartplotting Software – Andersons Abroad
2. https://opencpn.org/wiki/dokuwiki/do...spberrypi_rpi2
both methods tried on SD card and USB SDD hard disk.
Attached Files
Goj is offline   Reply With Quote
Old 26-01-2018, 14:26   #7
Goj
Registered User

Join Date: Jan 2018
Posts: 8
Re: [Raspberry] BUG - touchscreen drag back

ini and log files.

https://wetransfer.com/downloads/0ca1e59a63deda13ac1af33555074fa720180126222912/55242d01c0397acd3f6a747137bfe19320180126222912/c71023
Attached Files
Goj is offline   Reply With Quote
Old 26-01-2018, 15:23   #8
Goj
Registered User

Join Date: Jan 2018
Posts: 8
Re: [Raspberry] BUG - touchscreen drag back

files attached
Attached Files
Goj is offline   Reply With Quote
Old 26-01-2018, 15:49   #9
Registered User

Join Date: Jun 2015
Posts: 379
Re: [Raspberry] BUG - touchscreen drag back

Is it the same behavior if you use a mouse?
did-g is offline   Reply With Quote
Old 26-01-2018, 16:04   #10
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,387
Re: [Raspberry] BUG - touchscreen drag back

Goj...

Sorry I took so long to verify...

This bug has been fixed in the current Beta under test now.
I have just tested on rPI-2, using Official 7" touch screen.

Error reproduced easily with 4.8.0, corrected with 4.8.10125.

You may install 4.8.10125 from the Beta PPA to test for yourself.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 26-01-2018, 18:52   #11
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,532
Images: 2
Re: [Raspberry] BUG - touchscreen drag back

Dear Goj, you're in good hands with Dave.
Sorry about all the questions and work. Hopefully you've learned some more about Opencpn that will be useful in the future.

PS You did an excellent job of documentation. This kind of documentation is always helpful.
rgleason is offline   Reply With Quote
Old 26-01-2018, 21:38   #12
Goj
Registered User

Join Date: Jan 2018
Posts: 8
Re: [Raspberry] BUG - touchscreen drag back

OH... Guys you are rock stars!
it is compiling. It took me ages to understand how to DL a beta and work with github. Finally it is written "4.8.10125" in the VERSION.cmake file, I can go to bed in peace ^^
Goj is offline   Reply With Quote
Old 27-01-2018, 08:06   #13
Goj
Registered User

Join Date: Jan 2018
Posts: 8
Re: [Raspberry] BUG - touchscreen drag back

Hi Gents,

here is my feedback of v4.8.10125:

test 1
- Touchscreen interface = Deactivated
> Recenter bug still happens as often as before.

test 2
- Touchscreen interface = Activated
- Display Category = Mariner's standart
- Object list = ALL selected
- CM93 Detail level = +5
> It almost never happens anymore, and when it does, it is only one occurence. it does not loop forever like it used to do, getting me stuck at one place.
> It is definitely usable for my nav in 10 days. Therefore it is not a major but a minor issue to me now.

(remarks:
config = Pi 2 B on Jessie and Official 7" touchscreen.
@did-g : no, the "real mouse" response is perfect since the beginning. it NEVER recentered. It is an easy info I could have given earlier sorry.)
Goj is offline   Reply With Quote
Old 28-01-2018, 22:43   #14
Registered User
 
pinguino's Avatar

Join Date: May 2009
Location: SE Spain
Boat: Jeanneau SO 32I
Posts: 125
Re: [Raspberry] BUG - touchscreen drag back

This problem you're talking about is well known to me. In fact it is related to this other one that I have already commented on without positive results for quite some time.

http://www.cruisersforum.com/forums/...ar-178465.html

It is related to touchscreens in Debian and derivatives (not specifically only in Rpi). I suffer it especially in Ubuntu.

Until Ubuntu version 14.04 the drag and pan worked correctly, but some libraries changed to a higher version and since then, since OCpn doesn't seem to have done it at the same pace, the drag and pan started not to work properly on touch screens. The toolbar also stopped responding.

To top it all off, if instead of Xorg you use wayland (not easily available for Rpi) the drag and pan works perfectly well as the toolbar, but instead the Maximize and Minimize buttons do not. This is more related to the lack of implementation of wayland support for OCpn... like most applications written for Xorg.

I've been waiting two years to see some OCpn improvement on touchscreens under Debian and so far there hasn't been one. I must point out that I tried under fedora and in that case the drag and pan worked correctly and so the toolbar. So it's some problem related to some library in the system, but I haven't been able to figure out which one.

The result is that if I want to use OCpn on my tablet I can only turn to Windows and it's a shame because my tablet under Ubuntu flies while Windows is less fluid. To top it off, Ubuntu gives me a battery autonomy of about 12-13 hours while windows does not reach 8-9 hours.

Touch screen users are very much neglected under Linux. We don't even have a decent right mouse click apart from the applications written for Gnome-shell. Pity.
pinguino is offline   Reply With Quote
Old 29-01-2018, 03:59   #15
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,964
Re: [Raspberry] BUG - touchscreen drag back

Hello Pinguino,
Quote:
Originally Posted by pinguino View Post
This problem you're talking about is well known to me. In fact it is related to this other one that I have already commented on without positive results for quite some time.
....
The result is that if I want to use OCpn on my tablet I can only turn to Windows and it's a shame because my tablet under Ubuntu flies while Windows is less fluid. To top it off, Ubuntu gives me a battery autonomy of about 12-13 hours while windows does not reach 8-9 hours.
...
You said that you habe a tablet under Ubuntu ?

What kind of tablet is it ?

Thank by advance. Gilletarom
Gilletarom is offline   Reply With Quote
Reply

Tags
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 18 30-08-2022 04:56
Possible Bug: Mouse vs Touchscreen dave777 OpenCPN 0 06-08-2016 11:19
Garmin 5208 Touchscreen vs 6208 SV Demeter Marine Electronics 14 09-02-2013 14:55
Back to failure with raspberry pi and compiling jimseng OpenCPN 14 10-08-2012 07:28
Northstar 8000i 15" touchscreen tpen Navigation 1 22-11-2009 14:09

Advertise Here


All times are GMT -7. The time now is 00:04.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.