Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 09-10-2017, 22:51   #1
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 209
Raspberry Pi 2 some points to know

Hi,

Iīm using oc with a headless pi2.
With an android tablet I can interact via remote with the pi.

In the moment I use the latest jessie (not stretch yet) and OC 4.8.0 with plugins from the ubuntu ppa.

What to know:

For the remote connection itīs possible to use xrdp or vnc.
Xrdp works great but itīs inpossible to use the hw grafic acceleration cause xrdp uses virtual desctops not the console desctop.
Since a few month jessie Comes with a build in vnc server (realvnc). This works also great and it will use the console desktop. Cause of this itīs possible to use hw grafic acceleration. In the piīs config itīs possible to use two settings, with "full kms" and with "fake kms". When using the "full kms" option the resolution is very bad and not changeble. When using the "fake kms" option the resulution ist very much better (can set in the raspi config).

With hw acceleration on itīs possible to switch OpenGL in oc to on.
With the latest jessie and oc 4.8 there are no problems using raster or vector charts. Since yet I didnīt get a problem when zooming or panning the (big) charts.

There are different ways to get charts. A longer time I use "self-made" raster charts (made from my paper charts). This works well but making the charts needs time.

Now I use the oesenc Vektor charts. Itīs very easy to get and install theese charts in oc and there are really good and very cheap. The piīs grafic can manage theese charts and in daily use itīs ok for such a low cost (and low e-consumption!) system.
Thereīs one Point to know when using Vektor charts: The chart information strongly depends from the zoom step. So it can be that e.g. informations for vhf channels are only visible in one special zoom step. This is also the same when trying to get the informations about the doubble clic or right clic and object Information menue.

The last point is that after updating jessie and oc to the latest version I canīt reactivate the tidal or current Informations. When clicking on the Tide or current point oc stops and shut down (normally a window with the tide graph will open). I tried to use it with or without the hw acceleration or trying the original harmonic file. I reinstalled oc. Since yet I didnīt find a way to reactivate this. The currents or the Tide bar will be shown but right click->bang - out. The log file didnīt show anything, just stops.

Regards

Andreas
__________________

Andreas29 is offline   Reply With Quote
Old 20-10-2017, 09:02   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,511
Re: Raspberry Pi 2 some points to know

Andreas29
I found this report very interesting. Thank you. Would you support software opengl that Did_g suggests?
__________________

rgleason is online now   Reply With Quote
Old 20-10-2017, 09:20   #3
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 4,675
Re: Raspberry Pi 2 some points to know

Quick note for anyone who fancies giving a Raspberry Pi a go -
Fast enough even without the experimental hardware video acceleration enabled.


The openplotter image has everything you need plus much more, ready to go-

OpenPlotter RPI | Sailoog

https://sailoog.gitbooks.io/openplot...on/content/en/
conachair is offline   Reply With Quote
Old 20-10-2017, 09:43   #4
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 588
Re: Raspberry Pi 2 some points to know

Quote:
Originally Posted by conachair View Post
Quick note for anyone who fancies giving a Raspberry Pi a go -
Fast enough even without the experimental hardware video acceleration enabled.


The openplotter image has everything you need plus much more, ready to go-

OpenPlotter RPI | Sailoog

https://sailoog.gitbooks.io/openplot...on/content/en/
I'am using Linux Stretch and OpenPlotter and the latest kernel version. Works great.

Screen movements are fast if you don't switch OpenGL to on ! Switching OpenGL to on then the screen movement slows down.

Linux stretch is certainly an improvement and very stable.

Only the update function on OpenPlotter does not work.

But you do the update in Jessie and then switch to Stretch.

Bram
verkerkbr is offline   Reply With Quote
Old 20-10-2017, 17:40   #5
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: charleston
Boat: bristol 27
Posts: 3,499
Re: Raspberry Pi 2 some points to know

Quote:
Originally Posted by verkerkbr View Post
Screen movements are fast if you don't switch OpenGL to on ! Switching OpenGL to on then the screen movement slows down.

Bram
Did you actually enable the vc4 driver??
boat_alexandra is offline   Reply With Quote
Old 21-10-2017, 01:59   #6
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 588
Re: Raspberry Pi 2 some points to know

Quote:
Originally Posted by boat_alexandra View Post
Did you actually enable the vc4 driver??
Using the latest kernel 4.9.57 and switching the VC4 driver and OpenGL in OpenCPN to on. Then O is not working well and stalls.

Switching off the VC4 and OpenGL in OpenCpn 4.8. Then I get fast screen movements.

Linux version is Stretch with OpenPlotter.

You have to use the OpenPlotter updates with the Jessy version and then switch to Stretch (Debian 9.1). Quite a long update process.

Because updating OpenPlotter still does not work. Other updates for Stretch etc work.

The Linux Stretch version is also very stable. Recommended !

Egalax Touchscreen worked in Jessy "out of the box". But in Stretch you have to install the driver from EETI and have to make adjustments in de config file. Then this also works.

Bram
verkerkbr is offline   Reply With Quote
Old 22-10-2017, 01:54   #7
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 209
Re: Raspberry Pi 2 some points to know

Hi,

there where some questions, try to answer them

I use the latest up to date Jessie. I found a description for an update procedure to Stretch but this doesenīt work for me. For setting up the pi with a new out-of-the-box Stretch I didnīt found the time.

The kernelversion in Jessie is 4.9.35-v7+
The grafic-driver ist vc4-fkms-v3d
No overclocking
Graficmemory is set to 128 mb.

OC is 4.8.0 as ready build packages from the ubuntu-ppa. Also the plugins.

Using osenc vector charts (but also tried rastercharts 50mb each)

With this I can switch OpenGL to on and then itīs a little bit faster then without OpenGL. No crashes when zooming or panning.

With the fine world chart fps are 50 to 90, with the vector charts 5 to 12. Without hw accl. and OpenGL the vector charts will run with 1 to 5 fps.

After the latest update of Jessie the problem with the tidal grafic is solved.

The only Problem left is the grafic overlay Problem with the grib plugin. But maybe I try to compile oc with the changes for the pi or I swith back to OC 4.6 wich I can restore from a backup file.

I want OpenGL on cause the radarplugin needs this option and I whant to change my radarinstallation to a 3g radar.
When doing this I want to install a 13" Monitor at the chart table as the main chartplotter and using the Tablet as remote chart plotter.

@rgleason: I only have experience with jessie and OC and the plugins. On the raspberrys web site there are more exambles for OpenGL Software.
After seraching in the web for hours and hours and a lot try and error I found out that the hw grafic acceleration on the pi with jessie will not work with the xrdp remote desktop solution, but with vnc it will. This is my personal conclusion.
Here https://www.segeln-forum.de/board1-r...pi-und-opengl/ is a discussion (in german) about this. Maybe when running ubuntu on the pi you can use xrdp with the hw acceleration and OpenGL but I donīt really know cause I didnīt try this.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 22-10-2017, 04:10   #8
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 588
Re: Raspberry Pi 2 some points to know

Quote:
Originally Posted by boat_alexandra View Post
Did you actually enable the vc4 driver??
Dear B-A,

just did a new try. Now kernel 4.9.57. Linux Stretch. Switched the VC4 driver to on and OpenCPN OpenGL also to on. And it seems to work. The problem was caused by the texture caching that was switched to on. And now with this switch to off, OpenGL works with a low processor load. Not higher then 30 %.

Regards,

Bram
verkerkbr is offline   Reply With Quote
Old 22-10-2017, 17:50   #9
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,511
Re: Raspberry Pi 2 some points to know

Andreas29, thank you for looking into that. I do hope Did_g will see your post.
rgleason is online now   Reply With Quote
Old 25-10-2017, 08:59   #10
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 209
Re: Raspberry Pi 2 some points to know

Hi,

@rgleason: I tested software OpenGL now. Itīs much slower than hardwareaccelerated OpenGL. So I will not support software OpenGL.

When I found the time Iīll try to built oc from source and than Iīll look what the fps will say.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 31-10-2017, 02:15   #11
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 588
Re: Raspberry Pi 2 some points to know

Quote:
Originally Posted by verkerkbr View Post
Dear B-A,

just did a new try. Now kernel 4.9.57. Linux Stretch. Switched the VC4 driver to on and OpenCPN OpenGL also to on. And it seems to work. The problem was caused by the texture caching that was switched to on. And now with this switch to off, OpenGL works with a low processor load. Not higher then 30 %.

Regards,

Bram
Linux stretch with switching on the VC4 driver, works very well with kernel 4.9.59.

Screen movements in OpenCPN works best without switching OpenGL in OpenCPN to on ?!
__________________

verkerkbr is offline   Reply With Quote
Reply

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
Chart Problems on Raspberry Pi Alisdair OpenCPN 143 16-10-2013 11:23
Back to failure with raspberry pi and compiling jimseng OpenCPN 14 10-08-2012 07:28
Can Someone Help Compile on Raspberry Pi ? jimseng OpenCPN 11 06-07-2012 16:24
Raspberry PI compiles OpenCPN monstads OpenCPN 7 15-03-2012 12:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09

Advertise Here


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 17:10.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.