Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 21-06-2016, 08:46   #316
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,116
Re: OpenCPN on Raspberry Pi2

JM,

activated the experimental GL driver with raspi-config. Glxgears in Raspian is then running at 59 FPS.

Then with OpenGL on in OpenCPN 4.4.0 it also works.

Renderer string: Gallium 0.4 on llvmpipe (LLVM 3.7, 128 bits)
Version reported 3.0 Mesa 11.1.0

No VC4.

Also tried the Ubuntu Mate version with the latest updates and kernel.

Then the Glxgears were running at around 170 FPS

Also possible to activate OpenGL in OpenCPN.

No VC4 to be seen.

Only used the driver as stated in the Raspi-config.

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 21-06-2016, 09:16   #317
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,116
Re: OpenCPN on Raspberry Pi2

Also the same outcome of Ubuntu Mate version in OpenCPn log. But it works very well with OpenGL setting in OpenCPN to on and the texture cache to on.

Fast screen movement. No option toset the experimental driver on. Or is it no longer experimental but allready in the video drivers ?

Don't see the difference. Kernel version 4.4.13-v7+ on both versions is the same.

Bram
verkerkbr is offline   Reply With Quote
Old 21-06-2016, 10:12   #318
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,116
Re: OpenCPN on Raspberry Pi2

Just tried the Grip information in OpenCPN 4.4.0 on the Ubuntu Mate with OpenGL on.

The Grip information display comes up and but then the screen turns green. Switching the Grip off, then the OpenCPN chart display returns.
verkerkbr is offline   Reply With Quote
Old 21-06-2016, 12:36   #319
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by verkerkbr View Post
JM,

activated the experimental GL driver with raspi-config. Glxgears in Raspian is then running at 59 FPS.

Then with OpenGL on in OpenCPN 4.4.0 it also works.

Renderer string: Gallium 0.4 on llvmpipe (LLVM 3.7, 128 bits)
Version reported 3.0 Mesa 11.1.0

No VC4.

Also tried the Ubuntu Mate version with the latest updates and kernel.

Then the Glxgears were running at around 170 FPS

Also possible to activate OpenGL in OpenCPN.

No VC4 to be seen.

Only used the driver as stated in the Raspi-config.

Regards,


Bram
Hi Bram,

witch driver you use? How do you get the Driver to work? Iīm trying to get Hardware Video acceletation to work on the pi2 now since a few months but not really sucessful

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 21-06-2016, 13:06   #320
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,116
Re: OpenCPN on Raspberry Pi2

On the Raspberry Pi 3 and 2 with Ubuntu Mate Raspberry PI version I don't see any experimental driver setup. But it does work with OpenGL to "on" in OpenCPN 4.4.0.

With Pi 3 Glxgears is running at 170 Fps

But you have to upgrade this version and add the latest kernel 4.4.13-V7+.

Read the procedure for updating I have mentioned before.

With the Rasbian version, you can activate the experimental driver with:
sudo raspi-config menu > Advanced options AB GL Driver. You also can use A0 Update.

The Pi2 is then running at 60 Fps.

But it is a higher load on the processor. Not yet video hardware acceleration it seems.

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 21-06-2016, 13:44   #321
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry Pi2

Hi,

Bram thank you
I updated my pi with the latest jessie a few days ago. But I didnīt read the News about the grafic driver.
Found it now on the raspi-www-site.
Installed the drivers like described on the web site.
Can run glxgears with 160 fps (small window).
But when running oc with OpenGL on the performance is very low (using rastercharts with a ffew mb filesize) without switching OpenGL on the performance is ok for me. Maybe I got a prob with the rastercharts or with the OpenGL Settings in oc.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 21-06-2016, 13:58   #322
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,116
Re: OpenCPN on Raspberry Pi2

Hi Adreas,

works better on the Raspberry Pi3. But with Ubuntu Mate latest version it is much faster.

Hardware video accelleration is expected with version 4.5.

However, OpenGL seems to work in OpenCPN.

Grusse


Bram
verkerkbr is offline   Reply With Quote
Old 21-06-2016, 14:13   #323
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry Pi2

Hi Bram,

sorry I forgot to say that I use the pi via remote control this seems not to be the same as a normal video output. I donīt use the normal hdmi Video Output. On board I use a tablet via a local wlan with remote control as a video-screen.
Must try via the normal video Output (hdmi socket).

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 21-06-2016, 14:34   #324
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,423
Re: OpenCPN on Raspberry Pi2

glxgears should be 500 fps. At least that's what it was with the closed drivers so I know the hardware is capable. I think something is wrong but your log will tell.
seandepagnier is offline   Reply With Quote
Old 22-06-2016, 01:57   #325
Registered User

Join Date: Jul 2015
Location: Barcelona, Catalonia.
Posts: 311
Re: OpenCPN on Raspberry Pi2

How to update to OpenCPN 4.4.0 development version on OpenPlotter v0.8.0

OpenPlotter will use the OpenCPN development version until OpenPlotter v1.0.0, then we will switch to OpenCPN stable version. In this way we can help the development of OpenCPN. The OpenCPN team has changed sources so you need to follow these steps to update.

Open a terminal an type:

Code:
sudo nano /etc/apt/sources.list
then you have to change:

Code:
deb http://ppa.launchpad.net/nohal/opencpn/ubuntu/ trusty main
by:

Code:
deb http://ppa.launchpad.net/bdbcat/opencpn/ubuntu/ trusty main
Press Crl+X to save.

Now type:

Code:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7425C74D
Having the sources updated, just upgrade typing:

Code:
sudo apt-get update
sudo apt-get upgrade
Due to some updates, some items will change into the main menu. OpenCPN will be now under "Education" category. You have to edit your menu either with the "Main Menu Editor" or manually.
__________________
OpenPlotter Project
https://openmarine.net/openplotter
Sailoog is offline   Reply With Quote
Old 23-06-2016, 04:28   #326
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,116
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by boat_alexandra View Post
glxgears should be 500 fps. At least that's what it was with the closed drivers so I know the hardware is capable. I think something is wrong but your log will tell.
Latest Raspian version 27-05

Latest updates.

Latest kernel version

Activated the experimental driver in raspi-config

Switch OpenGL in OpenCPN to on.

Don't switch OpenGL software to on !!

Then in logfile:

12:46:39 CEST: OpenGL-> Renderer String: Gallium 0.4 on VC4
12:46:39 CEST: OpenGL-> Version reported: 2.1 Mesa 11.1.0
12:46:39 CEST: OpenGL-> Texture rectangle format: de1
12:46:39 CEST: OpenGL-> Using Vertexbuffer Objects
12:46:39 CEST: OpenGL-> Using Framebuffer Objects
12:46:39 CEST: OpenGL-> Using FBO Stencil buffer
12:46:39 CEST: OpenGL-> Using Stencil buffer clipping
12:46:39 CEST: OpenGL-> Using Scissor Clipping
12:46:39 CEST: OpenGL-> Not Using compression
12:46:39 CEST: OpenGL-> Minimum cartographic line width: 1.0
12:46:39 CEST: OpenGL-> Minimum symbol line width: 1.0
12:46:43 CEST: PlugInManager: Deactivating PlugIn: /usr/lib/opencpn/libchartdldr_pi.so

Processor loads stays arount 30%. Fast screen movement.

Perhaps not all is perfect. But it works.

Bram
verkerkbr is offline   Reply With Quote
Old 23-06-2016, 08:27   #327
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,423
Re: OpenCPN on Raspberry Pi2

Where is says "Not using Compression" is a hint that it's going to use a lot more memory and run slower for raster charts. Maybe it's still "good enough" so that is really up to you to decide, but for me, I want it working the best possible way, not just adequate.

I think you are using opengl not opengles. The experimental driver supports opengles correct? If so, it should support etc1 texture compression, so you would just need to edit the cmakelists to ensure it detects and uses gles
seandepagnier is offline   Reply With Quote
Old 23-06-2016, 09:08   #328
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,116
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by boat_alexandra View Post
Where is says "Not using Compression" is a hint that it's going to use a lot more memory and run slower for raster charts. Maybe it's still "good enough" so that is really up to you to decide, but for me, I want it working the best possible way, not just adequate.

I think you are using opengl not opengles. The experimental driver supports opengles correct? If so, it should support etc1 texture compression, so you would just need to edit the cmakelists to ensure it detects and uses gles
Well, I had not caching activated. It seem that texture chaching does not work. Is a software thing and not running the graphics processor ?

But anyhow it is really a big improvement. OpenCPN is now "flying" over the screen on my Pi2.

Not yet tried it on the Pi3. Nor with rastermaps.

It is certainly not yet perfect at this stage, but it works.

Bram
verkerkbr is offline   Reply With Quote
Old 23-06-2016, 11:44   #329
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,116
Re: OpenCPN on Raspberry Pi2

Works with the PI2. However problems with zoomen in.

Gribfile on, then screen coloured green. And after Gribfile plugin off, screen is back again.

Tried on the Pi3 with the same image. It works, but with zooming in, screen corruption and locked-up.

Bram
verkerkbr is offline   Reply With Quote
Old 23-06-2016, 13:58   #330
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry Pi2

Hi,

want to give a little feed-back.

I made a new SD-Card with brand-new OS (Rasbian Jessie) updatet and upgrded. Than installed the experimental Driver, then opencpn 4.4
When switching OpenGL on I can see great Performance but only for a few secends, then the System will Crash when moving or zooming.
Tested with rasterchards, filesize round about 50 mb.
Split hte Memory, 256 mb for grafic.

Are there some Special Settings in the config files for the pi2?
Loosing the overview

Thanks

Andreas
Andreas29 is offline   Reply With Quote
Reply

Tags
enc, opencpn


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 PI2 starnakel OpenCPN 284 16-03-2017 13:58
Has anyone gotten any Plugins working on Raspberry Pi2 Uncle Augie OpenCPN 5 27-06-2015 06:19
Has anyone managed to get hardware supported OpenGL on Rasperry Pi2 to work? Gunnar1 OpenCPN 53 16-06-2015 02:10
Raspberry Pi2 ratsea OpenCPN 5 26-02-2015 08:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09

Advertise Here


All times are GMT -7. The time now is 16:22.


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.