|
|
22-02-2018, 07:28
|
#16
|
Registered User
Join Date: Mar 2016
Posts: 19
|
Re: General Question to Raspberry OpenCPN and OpenGL
Hmm, thats odd.
With KMS my 7" DSI display stays black...
I can ssh to the pi, change to fkms and after a reboot everything is fine.
My current settings are:
CPU Count: 4
Memory Split: 384Mb
OpenCPN GPU Mem: 256Mb (default)
Max simultan open Charts: 10
With those settings I cave ~115Mb RAM free and OpenCPN maxes the CPU of the PI to 99% when I pan s63 charts.
Since my CM93 and BSP are rather old I use s63. On the baltic sea there is almost no other way if you wanna use a open source chart plotter...
Sadly, the encryption of s63 needs so much CPU-power, that panning the map in a zoomed-out state is nearly impossible. So it's better to switch to CM93 or BSP first.
This means: I need to load different chart types, or the s63 plugin needs to get way faster...
|
|
|
22-02-2018, 08:56
|
#17
|
Registered User
Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,160
|
Re: General Question to Raspberry OpenCPN and OpenGL
Quote:
Originally Posted by kutt
Hmm, thats odd.
With KMS my 7" DSI display stays black...
I can ssh to the pi, change to fkms and after a reboot everything is fine.
My current settings are:
CPU Count: 4
Memory Split: 384Mb
OpenCPN GPU Mem: 256Mb (default)
Max simultan open Charts: 10
With those settings I cave ~115Mb RAM free and OpenCPN maxes the CPU of the PI to 99% when I pan s63 charts.
Since my CM93 and BSP are rather old I use s63. On the baltic sea there is almost no other way if you wanna use a open source chart plotter...
Sadly, the encryption of s63 needs so much CPU-power, that panning the map in a zoomed-out state is nearly impossible. So it's better to switch to CM93 or BSP first.
This means: I need to load different chart types, or the s63 plugin needs to get way faster...
|
I'am wondering about your CPU load. When starting OpenCPN it is here around 50% and when in use it is around 30%.
I'am using the OpenPlotter version, with servers running for SignalK, Wifi Acces Point, VNC server at the same time.
These low main processor loads proof that the video is processed in the graphic processor.
I have the VC4 driver on en the OpenGL setting also to on (not the software one!).
Are you using a Raspberry Pi3 ?
Bram
There a CM93 set available updated till 2014 and for Norway and Germany and other countries there are the official ENC charts with the oeSenc system.
|
|
|
22-02-2018, 09:09
|
#18
|
Registered User
Join Date: Mar 2016
Posts: 19
|
Re: General Question to Raspberry OpenCPN and OpenGL
Oh - do you have a Link to the CM93 set?
PS: the 98% CPU is only when using encrypted s63 charts using the o-charts plugin and carts from chartworld.com. If it's idle OpenCPN uses just 5% or something like this. When panning (moving the chart around fastly) it goes up. Maybe I descriped it a bit wrong - the load is not always 95%
either the decryption is so heavy or the plugin (OPNSenc (?)) is just poor coded...
PS: yes, I use a RPi3
PPS: with "official ENC charts with the oeSenc" you mean the charts from chartworld, right?
|
|
|
22-02-2018, 09:29
|
#19
|
Marine Service Provider
Join Date: May 2013
Location: Norway
Posts: 723
|
Re: General Question to Raspberry OpenCPN and OpenGL
oeSENC - o-charts
Quote:
Originally Posted by kutt
Oh - do you have a Link to the CM93 set?
PS: the 98% CPU is only when using encrypted s63 charts using the o-charts plugin and carts from chartworld.com. If it's idle OpenCPN uses just 5% or something like this. When panning (moving the chart around fastly) it goes up. Maybe I descriped it a bit wrong - the load is not always 95%
either the decryption is so heavy or the plugin (OPNSenc (?)) is just poor coded...
PS: yes, I use a RPi3
PPS: with "official ENC charts with the oeSenc" you mean the charts from chartworld, right?
|
|
|
|
22-02-2018, 09:42
|
#20
|
Registered User
Join Date: Mar 2016
Posts: 19
|
Re: General Question to Raspberry OpenCPN and OpenGL
Ahh yes, I am aware of those.
Is it possible to use S63 and oeSENC charts on the same system?
There are a few that may come in handy soon...
|
|
|
22-02-2018, 10:41
|
#21
|
Registered User
Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,930
|
Re: General Question to Raspberry OpenCPN and OpenGL
Sure, all the supported chart format can be used simultaneously.
S-57, S-63, oeSENC, kap/raster, mbTiles....
There are very proven ways how to bring the RasPi down on its knees ;-)
|
|
|
24-02-2018, 02:34
|
#22
|
Registered User
Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,160
|
Re: General Question to Raspberry OpenCPN and OpenGL
Quote:
Originally Posted by kutt
Hmm, thats odd.
With KMS my 7" DSI display stays black...
I can ssh to the pi, change to fkms and after a reboot everything is fine.
My current settings are:
CPU Count: 4
Memory Split: 384Mb
OpenCPN GPU Mem: 256Mb (default)
Max simultan open Charts: 10
With those settings I cave ~115Mb RAM free and OpenCPN maxes the CPU of the PI to 99% when I pan s63 charts.
Since my CM93 and BSP are rather old I use s63. On the baltic sea there is almost no other way if you wanna use a open source chart plotter...
Sadly, the encryption of s63 needs so much CPU-power, that panning the map in a zoomed-out state is nearly impossible. So it's better to switch to CM93 or BSP first.
This means: I need to load different chart types, or the s63 plugin needs to get way faster...
|
Dear K,
if you use OpenPlotter then there is a VNC server build in. And with an ENC client you can use the RPI screen from any other system.
Again a new kernel version 4.14.21-V7+ is available. OpenGL works better again. Here OpenGL in OpenCPN without any problems. (rpi-update)
Regards,
Bram
|
|
|
24-02-2018, 03:58
|
#23
|
Registered User
Join Date: Aug 2016
Posts: 163
|
Re: General Question to Raspberry OpenCPN and OpenGL
Hi Kutt,
i'm using O at RPI3 with plain Raspbian Stretch ( 27-11-2017)
Raspbian boots from USB( not SD)
Code:
~ $ uname -a
Linux o 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
Memory is splitted with 128MB for GPU. Using FKMS
Code:
gpu_mem=128
dtoverlay=vc4-fkms-v3d
Self-Compiled OpenCPN packages ( not for old ubuntu ;-)
Tweaking of OpenCPN
Code:
MemCacheLimit=64
NCacheLimit=8
NCPUCount=4
GPUMemorySize=128
OpenCPN is configured to use HW OpenGL
Code:
OpenGL=1
SoftwareGL=0
ShowFPS=1
OpenCPN is plain ( without plugins). Charts are Raster ( homebrew) for Baltic & IJsselmeer. If you need Baltic, PM me ...
As result...
Code:
o:~ $ free
total used free shared buff/cache available
Mem: 896304 212172 469060 12664 215072 621368
Swap: 102396 0 102396
o:~ $ top
top - 11:56:27 up 32 min, 3 users, load average: 0.39, 0.37, 0.31
Tasks: 154 total, 1 running, 153 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.9 us, 1.7 sy, 0.0 ni, 97.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 896304 total, 468656 free, 212560 used, 215088 buff/cache
KiB Swap: 102396 total, 102396 free, 0 used. 620980 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
86 root 20 0 0 0 0 S 8.9 0.0 2:35.50 kworker/2:2
856 pi 20 0 207576 90812 56160 S 2.0 10.1 0:53.72 opencpn
That's all
Good Luck
Regards
BlackSea
|
|
|
24-02-2018, 07:11
|
#24
|
Registered User
Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
|
Re: General Question to Raspberry OpenCPN and OpenGL
Quote:
Originally Posted by verkerkbr
Dear K,
if you use OpenPlotter then there is a VNC server build in. And with an ENC client you can use the RPI screen from any other system.
Again a new kernel version 4.14.21-V7+ is available. OpenGL works better again. Here OpenGL in OpenCPN without any problems. (rpi-update)
Regards,
Bram
|
Bram,
Do you mind to post your /boot/config.txt settings? I cannot get real OpenGL to work with my VNC setup.
|
|
|
24-02-2018, 07:31
|
#25
|
Registered User
Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,160
|
Re: General Question to Raspberry OpenCPN and OpenGL
Quote:
Originally Posted by transmitterdan
Bram,
Do you mind to post your /boot/config.txt settings? I cannot get real OpenGL to work with my VNC setup.
|
Dear Tr,
I' am using Linux Stretch in OpenPlotter. At first updated OpenPlotter and Jessie Linux and then replaced Jessie with Stretch (Debian 9.2), which is a very reliable Linux version.
Upgraded to the latest kernel 4.14.21-V7+ (rpi-update).
Switching on the advanced VC4 driver in config.txt. raspi-config > advanced >opengl driver.
This also works without OpenGL in OpenCPN.
Then switching on OpenGL in OpenCPN.
There were some video problems before, but with the latest kernel version these are gone.
My RPI is now not available. I will pass a copy later.
It also work with an Egalax touchscreen, but therefore you have to make some changes and installing the Egalax driver.
I'am using the oeSENC charts and CM93 charts and now these "fly" over the screen.
Regards,
Bram
|
|
|
24-02-2018, 11:21
|
#26
|
Registered User
Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,160
|
Re: General Question to Raspberry OpenCPN and OpenGL
Quote:
Originally Posted by verkerkbr
Dear Tr,
I' am using Linux Stretch in OpenPlotter. At first updated OpenPlotter and Jessie Linux and then replaced Jessie with Stretch (Debian 9.2), which is a very reliable Linux version.
Upgraded to the latest kernel 4.14.21-V7+ (rpi-update).
Switching on the advanced VC4 driver in config.txt. raspi-config > advanced >opengl driver.
This also works without OpenGL in OpenCPN.
Then switching on OpenGL in OpenCPN.
There were some video problems before, but with the latest kernel version these are gone.
My RPI is now not available. I will pass a copy later.
It also work with an Egalax touchscreen, but therefore you have to make some changes and installing the Egalax driver.
I'am using the oeSENC charts and CM93 charts and now these "fly" over the screen.
Regards,
Bram
|
Nothing special in my config.txt.Only the next things are not basic ( the others are all switched off #)
p { margin-bottom: 0.25cm; line-height: 115%; }
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
dtoverlay=w1-gpio
# NOOBS Auto-generated Settings:
hdmi_force_hotplug=1
dtoverlay=vc4-kms-v3d
gpu_mem=128
#dtoverlay=vc4-fkms-v3d
Regards,
Bram
|
|
|
26-02-2018, 01:45
|
#27
|
Registered User
Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,160
|
Re: General Question to Raspberry OpenCPN and OpenGL
Quote:
Originally Posted by verkerkbr
Nothing special in my config.txt.Only the next things are not basic ( the others are all switched off #)
p { margin-bottom: 0.25cm; line-height: 115%; }
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
dtoverlay=w1-gpio
# NOOBS Auto-generated Settings:
hdmi_force_hotplug=1
dtoverlay=vc4-kms-v3d
gpu_mem=128
#dtoverlay=vc4-fkms-v3d
Regards,
Bram
|
With Linux Jessy it also works now.
Swiching on the VC4 driver and upgrade to kernel 4.14.41-V7+
Raise the video memory a little to around 128. In OpenCPN set OpenGL on.
And you have fast video on your screen.
Bram
|
|
|
02-03-2018, 10:38
|
#28
|
Registered User
Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
|
Re: General Question to Raspberry OpenCPN and OpenGL
Hi raspberry users,
my setup is a raspberry 2 with Jessy and the latest kernel (must look wich one), updated with rpi-update.
When I try to update to Stretch (not a clean new Version, try to update the Jessie) I got the problem that after the update the cpu load starts to run t0 99% (without opencpn) just in idle mode.
I think this is cause I use an edimax wifi dongle to build up a lokal wifi for using the pi with a tablet via vnc.
I have some "special" settings and setups cause I use a second wifi dongle for connecting to the harbour wifi. I´,m just too lasy to build it up with a new Stretch-System.
So I use Jessie for the future.
I use OpenGL since the first experimental Hardware accelaration Driver in jessie was launched by the raspberry community.
Since that point I have no issues using it, the only point to know is that when you using OpenGL with hw-acc. you can´t use it with xrdp just with vnc.
I found out that depending on the driver (fkms or kms) I got problems with a fixed bad resolution of the (remote) screen (kms), with the fkms I can use a good (high) resolution and get the same pic and desktop on the hdmi screen and on the tablet via wifi and vnc.
When using oc with oesenc charts and with the daisy AIS-hub and with a simrad 3gRadar connected via Ethernet the cpu load is 30 to 40 %.
Chart panning and zooming is ok, not like on my home pc but fast enough and usable.
Regards
Andreas
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|