Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 02-08-2018, 08:47   #1
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Save toolbar and dashboard position?

Hi!

I am playing with OpenCPN on a Raspberry Pi and slowly getting it the way I want, but one thing irritates me: The position and state of toolbar and dashboard is not saved when I restart. Ie I set it to vertical and to the right and dashboard active, but when I restart, it resets to horizontal and inactive.

What am I doing wrong?

My general Idea is to build a minimal unit with low power consumption to be used on a sailboat, using a Pi and a sunlight viewable 7" touchscreen. Target power consumption below 6W.
__________________

AndersG is offline   Reply With Quote
Old 02-08-2018, 10:35   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,985
Re: Save toolbar and dashboard position?

AndersG...

I did a quick test of OpenCPN v 4.8.4 on rPI-2, Rasbian 9.1 (Stretch).

Saving of toolbar and dashboard config is OK for me on this setup. Orientation and location of toolbar and dashboard are persisted across program start/stop.

Can you give more information?

Thanks
Dave
__________________

bdbcat is offline   Reply With Quote
Old 03-08-2018, 01:10   #3
Registered User

Join Date: Feb 2012
Location: Austria
Posts: 261
Re: Save toolbar and dashboard position?

I trust you are aware of the openplotter project (Home | Sailoog) to get ocpn on the raspy.
All settings etc get remembered - have used on rpi2 and rpi3B.
When installing ocpn on raspi manually you need to set the file properties to allow updating - maybe this is the issue at your installation.
skipperearly is online now   Reply With Quote
Old 03-08-2018, 06:00   #4
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,093
Re: Save toolbar and dashboard position?

Openplotter is not required. OpenCPN saves the position and configuration of the toolbar as well as the dashboard in ~/.opencpn/opencpn.conf. It is possible that this file gets corrupted if you shut down the RPi by just removing power. But in my experience even that does not cause any problems with the configuration file.

When you start OpenCPN do you see any message box pop up on the screen?
transmitterdan is offline   Reply With Quote
Old 03-08-2018, 10:25   #5
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Save toolbar and dashboard position?

This is openplotter and I updated to the latest version and I always shut down from the menu. Is there anything special I need to do to save the settings?
AndersG is offline   Reply With Quote
Old 03-08-2018, 10:28   #6
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,093
Re: Save toolbar and dashboard position?

Quote:
Originally Posted by AndersG View Post
This is openplotter and I updated to the latest version and I always shut down from the menu. Is there anything special I need to do to save the settings?


No, the settings are saved whenever you change something.
transmitterdan is offline   Reply With Quote
Old 03-08-2018, 10:40   #7
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,985
Re: Save toolbar and dashboard position?

Anders....

Are other things being saved correctly, such as boat position, connection parameters, chart groups, etc?

Dave
bdbcat is offline   Reply With Quote
Old 03-08-2018, 12:54   #8
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Save toolbar and dashboard position?

Yes. Port settings and such are saved all right.
AndersG is offline   Reply With Quote
Old 03-08-2018, 14:58   #9
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,093
Re: Save toolbar and dashboard position?

This sounds like it might be an issue with the auto detect screen size.
transmitterdan is offline   Reply With Quote
Old 03-08-2018, 15:28   #10
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,985
Re: Save toolbar and dashboard position?

Anders....

Please try this:
1. Start OCPN. Set the toolbar as you would like it. No dashboard visible yet.
2. Grab a screenshot.
3. Exit OCPN cleanly.
4. Post the config (~/.opencpn/opencpn.conf) file here, as well as the screenshot.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 04-08-2018, 00:32   #11
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Save toolbar and dashboard position?

I think you nailed it! When you say "Exit OCPN cleanly" I assume that I close the opencpn window as there seems to be no other menu item for that. When I do that and restart, the settings seems to be saved. If I shutdown the Pi through the menu, it is not. So apparently is the Pi shutdown not caught by OpenCPN.

This is not a life-and-death issue for me, especially as I now know how it works, but having an OS exit caught, especially if you add hardware to signal power good and a small backup for orderly shutdown, would be nice.



Code:
[Settings]
ConfigVersionString=Version 4.8.4 Build 2018-04-21
NavMessageShown=1
InlandEcdis=0
UIexpert=1
SpaceDropMark=0
UIStyle=Journeyman Flat
ChartNotRenderScaleFactor=2
ShowStatusBar=1
ShowMenuBar=0
DefaultFontSize=0
Fullscreen=0
ShowCompassWindow=1
SetSystemTime=0
ShowGrid=0
PlayShipsBells=0
SoundDeviceIndex=-1
FullscreenToolbar=1
TransparentToolbar=1
PermanentMOBIcon=0
ShowLayers=1
AutoAnchorDrop=0
ShowChartOutlines=1
ShowActiveRouteTotal=0
ShowActiveRouteHighway=1
SDMMFormat=0
MostRecentGPSUploadConnection=
ShowChartBar=1
GUIScaleFactor=0
ChartObjectScaleFactor=0
ShipScaleFactor=0
FilterNMEA_Avg=0
FilterNMEA_Sec=1
ShowTrue=1
ShowMag=0
UserMagVariation=0.00
CM93DetailFactor=0
CM93DetailZoomPosX=200
CM93DetailZoomPosY=200
ShowCM93DetailSlider=0
SkewToNorthUp=0
OpenGL=0
SoftwareGL=0
ShowFPS=0
ZoomDetailFactor=0
ZoomDetailFactorVector=0
FogOnOverzoom=1
OverzoomVectorScale=1
OverzoomEmphasisBase=10
UseAcceleratedPanning=1
GPUTextureCompression=0
GPUTextureCompressionCaching=0
GPUTextureDimension=512
GPUTextureMemSize=128
PolygonSmoothing=1
LineSmoothing=1
SmoothPanZoom=0
UseRasterCharts=1
UseVectorCharts=0
UseCM93Charts=0
CourseUpMode=0
LookAheadMode=0
COGUPAvgSeconds=15
UseMagAPB=0
OwnshipCOGPredictorMinutes=5
OwnshipCOGPredictorWidth=3
OwnshipHDTPredictorMiles=1
OwnShipIconType=0
OwnShipLength=0
OwnShipWidth=0
OwnShipGPSOffsetX=0
OwnShipGPSOffsetY=0
OwnShipMinSize=1
OwnShipSogCogCalc=0
OwnShipSogCogCalcDampSec=1
RouteArrivalCircleRadius=0.05
ChartQuilting=1
FullScreenQuilt=1
ChartQuiltingInitial=1
ShowTide=0
ShowCurrent=0
NMEALogWindowSizeX=600
NMEALogWindowSizeY=400
NMEALogWindowPosX=40
NMEALogWindowPosY=40
PreserveScaleOnX=1
StartWithTrackActive=0
AutomaticDailyTracks=0
TrackRotateAt=0
TrackRotateTimeType=3
HighlightTracks=1
InitialStackIndex=0
InitialdBIndex=7
ActiveChartGroup=0
NMEAAPBPrecision=3
TalkerIdText=EC
AnchorWatch1GUID=
AnchorWatch2GUID=
ToolbarX=1033
ToolbarY=0
ToolbarOrient=8
iENCToolbarX=-1
iENCToolbarY=-1
ToolbarConfig=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
DistanceFormat=0
SpeedFormat=0
ShowDepthUnits=1
GPSIdent=Generic
UseGarminHostUpload=0
MobileTouch=0
ResponsiveGraphics=0
AutoHideToolbar=0
AutoHideToolbarSecs=2
DisplaySizeMM=423
DisplaySizeManual=0
PlanSpeed=6
VisibleLayers=
InvisibleLayers=
Locale=en_US
LocaleOverride=en_US
KeepNavobjBackups=5
LegacyInputCOMPortFilterBehaviour=0
AdvanceRouteWaypointOnArrivalOnly=0
LiveETA=0
DefaultBoatSpeed=6
[Settings/GlobalState]
bShowS57Text=1
bShowS57ImportantTextOnly=0
nDisplayCategory=83
nSymbolStyle=82
nBoundaryStyle=78
bShowSoundg=0
bShowMeta=0
bUseSCAMIN=1
bShowAtonText=0
bShowLightDescription=0
bExtendLightSectors=1
bDeClutterText=1
bShowNationalText=1
S52_MAR_SAFETY_CONTOUR=3
S52_MAR_SHALLOW_CONTOUR=2
S52_MAR_DEEP_CONTOUR=6
S52_MAR_TWO_SHADES=0
S52_DEPTH_UNIT_SHOW=1
ZoomDetailFactorVector=3
VPLatLon="   60.1368,   20.1402"
VPScale=0.0292888
VPRotation=0
OwnShipLatLon="   60.0762,    19.9602"
bFollow=0
nColorScheme=0
FrameWinX=1120
FrameWinY=814
FrameWinPosX=76
FrameWinPosY=94
FrameMax=0
ClientPosX=0
ClientPosY=36
ClientSzX=1600
ClientSzY=1164
[Settings/WMM]
ShowIcon=1
ShowLiveIcon=1
ViewType=1
ShowPlotOptions=1
ShowAtCursor=1
Opacity=255
DialogPosX=20
DialogPosY=20
[Settings/WMM/Plot]
Declination=1
DeclinationSpacing=10
Inclination=0
InclinationSpacing=10
FieldStrength=0
FieldStrengthSpacing=10000
StepSize=6
PoleAccuracy=2
[Settings/AIS]
bNoCPAMax=0
NoCPAMaxNMi=20
bCPAWarn=0
CPAWarnNMi=2
bTCPAMax=0
TCPAMaxMinutes=30
bMarkLostTargets=1
MarkLost_Minutes=8
bRemoveLostTargets=1
RemoveLost_Minutes=10
bShowCOGArrows=1
CogArrowMinutes=6
bShowTargetTracks=0
TargetTracksMinutes=20
bHideMooredTargets=0
MooredTargetMaxSpeedKnots=0.2
bAISAlertDialog=0
bAISAlertAudio=0
AISAlertAudioFile=/usr/share/opencpn/sounds/2bells.wav
bAISAlertSuppressMoored=0
bShowAreaNotices=0
bDrawAISSize=0
bShowAISName=0
ShowAISTargetNameScale=250000
bWplIsAprsPositionReport=1
AISCOGPredictorWidth=3
bShowScaledTargets=0
AISScaledNumber=10
AISScaledNumberWeightSOG=50
AISScaledNumberWeightCPA=60
AISScaledNumberWeightTCPA=25
AISScaledNumberWeightRange=75
AISScaledNumberWeightSizeOfTarget=25
AISScaledSizeMinimal=50
AISShowScaled=0
AlertDialogSizeX=200
AlertDialogSizeY=200
AlertDialogPosX=200
AlertDialogPosY=200
QueryDialogPosX=200
QueryDialogPosY=200
AISTargetListPerspective=
AISTargetListRange=40
AISTargetListSortColumn=2
bAISTargetListSortReverse=0
AISTargetListColumnSpec=
S57QueryDialogSizeX=400
S57QueryDialogSizeY=400
bAISRolloverShowClass=0
bAISRolloverShowCOG=0
bAISRolloverShowCPA=0
bAISAlertAckTimeout=0
AlertAckTimeoutMinutes=0
[Settings/NMEADataSource]
DataConnections=1;0;localhost;10110;0;;4800;1;0;0;;0;;1;0;1;0;0|0;0;0.0.0.0;10110;0;/dev/ttyUSB0;9600;1;0;0;;0;;1;0;0;0;1
[Settings/Others]
ShowRadarRings=0
RadarRingsNumberVisible=0
RadarRingsStep=1
RadarRingsStepUnits=0
RadarRingsColour=#FF0000
WaypointRangeRingsNumber=0
WaypointRangeRingsStep=1
WaypointRangeRingsStepUnits=0
WaypointRangeRingsColour=#FF0000
ConfirmObjectDeletion=1
WaypointPreventDragging=0
EnableZoomToCursor=0
TrackIntervalSeconds=60
TrackDeltaDistance=0.1
TrackPrecision=2
RouteLineWidth=2
TrackLineWidth=2
TrackLineColour=#F3E52F
CurrentArrowScale=100
TideRectangleScale=100
TideCurrentWindowScale=100
DefaultWPIcon=triangle
[Settings/ChartDnldr]
ChartSources=
Source=-1
BaseChartDir=/home/pi/Charts
PreselectNew=0
PreselectUpdated=1
AllowBulkUpdate=0
[Settings/GRIB]
WindPlot=1
WindGustPlot=0
PressurePlot=0
WavePlot=0
CurrentPlot=0
PrecipitationPlot=0
CloudPlot=0
AirTemperaturePlot=0
SeaTemperaturePlot=0
CAPEPlot=0
CursorDataShown=1
lastdatatype=0
[Settings/GRIB/FileNames]
Filename0=/home/pi/Gribs/20180526_111423_.grb.bz2
[Settings/GTKFonts]
en_US-09b97775=Menu:PibotoLt 12:rgb(0, 0, 0)
en_US-1d03864b=AISTargetAlert:PibotoLt 12:rgb(0, 0, 0)
en_US-1e238651=AISTargetQuery:PibotoLt 12:rgb(0, 0, 0)
en_US-3582063a=ChartTexts:PibotoLt 12:rgb(0, 0, 0)
en_US-49dc24be=AIS Target Name:PibotoLt 12:rgb(0, 0, 0)
en_US-6052cba4=Console Value:PibotoLt 12:rgb(0, 0, 0)
en_US-6711839b=RouteLegInfoRollover:PibotoLt 12:rgb(0, 0, 0)
en_US-68c1d6c4=Console Legend:PibotoLt 12:rgb(0, 0, 0)
en_US-89851d0f=ObjectQuery:PibotoLt 12:rgb(0, 0, 0)
en_US-9c3b3a0d=Dialog:PibotoLt 12:rgb(0, 0, 0)
en_US-a1a382bd=AISRollover:PibotoLt 12:rgb(0, 0, 0)
en_US-b25a3899=StatusBar:PibotoLt 14:rgb(0, 0, 0)
en_US-cb4437f1=ToolTips:PibotoLt 12:rgb(0, 0, 0)
en_US-dc3cb5f7=Marks:PibotoLt 12:rgb(0, 0, 0)
en_US-df0f7403=CurrentValue:PibotoLt 12:rgb(0, 0, 0)
en_US-e441042a=ExtendedTideIcon:PibotoLt 12:rgb(0, 0, 0)
en_US-fbbaefb3=TideCurrentGraphRollover:PibotoLt 12:rgb(0, 0, 0)
[PlugIns]
PluginOrder=WMM;ChartDownloader;GRIB;Rotation Control;GRadar;VDR;rtlsdr;SAR;Dashboard;SweepPlot;WeatherFax;Watchdog;StatusBar;AIS Radar view;Projections;S63;otcurrent;DR;OCPN Draw;Launcher;Fugawi Charts;ObjSearch;WeatherRouting;pypilot;IACFleet;Polar;Celestial Navigation;Climatology;Squiddio;oeSENC;BR24Radar;OpenCPNDebugger;Logbook;ROUTE
[PlugIns/libchartdldr_pi.so]
bEnabled=1
[PlugIns/libwmm_pi.so]
bEnabled=1
[PlugIns/librotationctrl_pi.so]
bEnabled=0
[PlugIns/libgradar_pi.so]
bEnabled=0
[PlugIns/libvdr_pi.so]
bEnabled=0
[PlugIns/librtlsdr_pi.so]
bEnabled=0
[PlugIns/libsar_pi.so]
bEnabled=0
[PlugIns/libdashboard_pi.so]
bEnabled=1
[PlugIns/libsweepplot_pi.so]
bEnabled=0
[PlugIns/libweatherfax_pi.so]
bEnabled=0
[PlugIns/libwatchdog_pi.so]
bEnabled=0
[PlugIns/libstatusbar_pi.so]
bEnabled=0
[PlugIns/libaisradar_pi.so]
bEnabled=0
[PlugIns/libprojections_pi.so]
bEnabled=0
[PlugIns/libs63_pi.so]
bEnabled=0
[PlugIns/libotcurrent_pi.so]
bEnabled=0
[PlugIns/libDR_pi.so]
bEnabled=0
[PlugIns/libocpn_draw_pi.so]
bEnabled=0
[PlugIns/liblauncher_pi.so]
bEnabled=0
[PlugIns/libofc_pi.so]
bEnabled=0
[PlugIns/libobjsearch_pi.so]
bEnabled=0
[PlugIns/libweather_routing_pi.so]
bEnabled=0
[PlugIns/libpypilot_pi.so]
bEnabled=0
[PlugIns/libiacfleet_pi.so]
bEnabled=0
[PlugIns/libpolar_pi.so]
bEnabled=0
[PlugIns/libcelestial_navigation_pi.so]
bEnabled=0
[PlugIns/libclimatology_pi.so]
bEnabled=0
[PlugIns/libsquiddio_pi.so]
bEnabled=0
[PlugIns/liboesenc_pi.so]
bEnabled=0
[PlugIns/libgrib_pi.so]
bEnabled=1
[PlugIns/libbr24radar_pi.so]
bEnabled=0
[PlugIns/libocpndebugger_pi.so]
bEnabled=0
[PlugIns/liblogbookkonni_pi.so]
bEnabled=0
[PlugIns/libroute_pi.so]
bEnabled=0
[PlugIns/GRIB]
LoadLastOpenFile=0
OpenFileOption=1
ShowGRIBIcon=1
GRIBUseHiDef=0
GRIBUseGradualColors=0
GRIBTimeZone=1
CopyFirstCumulativeRecord=1
CopyMissingWaveRecord=1
DrawBarbedArrowHead=1
GRIBCtrlBarSizeX=732
GRIBCtrlBarSizeY=192
GRIBCtrlBarPosX=20
GRIBCtrlBarPosY=60
GRIBCursorDataPosX=20
GRIBCursorDataPosY=170
[PlugIns/Dashboard]
Version=2
FontTitle=Sans Italic 10
FontData=Sans 14
FontLabel=Sans 8
FontSmall=Sans 8
SpeedometerMax=12
COGDamp=0
SpeedUnit=0
SOGDamp=0
DepthUnit=3
DistanceUnit=0
WindSpeedUnit=0
UTCOffset=0
DashboardCount=1
[PlugIns/Dashboard/Dashboard1]
Name=3200775b-d2a9-4a19-a043-b84477c21639
Caption=Dashboard
Orientation=V
Persistence=1
InstrumentCount=3
Instrument1=0
Instrument2=4
Instrument3=20
[Directories]
S57DataLocation=
InitChartDir=/home/pi
GPXIODir=
TCDataDir=
BasemapDir=/usr/share/opencpn/gshhs/
WMMDataLocation=/usr/share/opencpn/plugins/wmm_pi/data/
GRIBDirectory=/home/pi/Gribs
[ChartDirectories]
ChartDir1=/home/pi/Charts^434036456870761756
[AUI]
AUIPerspective=layout2|name=ChartCanvas;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=1118;besth=757;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=3200775b-d2a9-4a19-a043-b84477c21639;caption=Dashboard;state=2098127;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=162;besth=379;minw=162;minh=379;maxw=-1;maxh=-1;floatx=100;floaty=100;floatw=170;floath=403|dock_size(5,0,0)=336|
[TideCurrentDataSources]
tcds0=/usr/share/opencpn/tcdata/HARMONIC.IDX
AndersG is offline   Reply With Quote
Old 04-08-2018, 05:01   #12
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,093
Re: Save toolbar and dashboard position?

I don't use OpenPlotter so can you explain better what menu item you use to shut down? Is this an OpenPlotter menu or is it something in the operating system itself?

It sounds as if the shutdown you have been using is sending the wrong kind of kill signal to OpenCPN.
transmitterdan is offline   Reply With Quote
Old 04-08-2018, 05:25   #13
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Save toolbar and dashboard position?

Hit the raspberry top left corner, select shutdown. I just assumed that raspbian would send a signal to all running apps when I did that.
AndersG is offline   Reply With Quote
Old 04-08-2018, 05:39   #14
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,008
Re: Save toolbar and dashboard position?

Quote:
Originally Posted by AndersG View Post
Hit the raspberry top left corner, select shutdown. I just assumed that raspbian would send a signal to all running apps when I did that.
Pretty sure as far as the running programs are concerned it's like pulling the power plug, I use a little node-red to close down opencpn then shut down the Pi.
conachair is offline   Reply With Quote
Old 04-08-2018, 06:16   #15
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Save toolbar and dashboard position?

OK. FWIW, Raspbian should send a SIGTERM to all running processes when you select poweroff.

Can you elaborate on your node-red?
__________________

AndersG 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
Configure visibility AND order of all icons in UI toolbar skipperearly OpenCPN 0 25-09-2017 01:51
Settings for InlandECDIS and the effect on Toolbar Icons Roel Smidt OpenCPN 2 12-04-2017 10:10
What Toolbar style should be default in 3.2? JesperWe OpenCPN 10 18-06-2012 17:41
how to change the size of the Toolbar Button? manuprenlair OpenCPN 2 16-12-2011 03:13
Lock Toolbar jackdale OpenCPN 2 17-07-2011 21:53

Advertise Here


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


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.