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 29-01-2022, 08:22   #1
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
OpenCPN 5.6 no sounds RPI

OpenCPN 5.6 works perfect on my RPI systems with Debian Bullseye and Ubuntu Jammy Jellyfish. Also on my amd64 Linux Mint.

However one thing is still missing. Sounds !

No alarm sounds, ships bells, Ais warnings.

Sound gear: Sound source not known.

But the sounds are working in all my systems, but not in OpenCPN.



Bram
verkerkbr is offline   Reply With Quote
Old 05-02-2022, 04:45   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,732
Images: 2
Re: OpenCPN 5.6 no sounds RPI

Bram, are any sounds working in the plugins? Like Watchdog? We need a little more detail here. Do you have the necessary Linux sound libs loaded?
rgleason is offline   Reply With Quote
Old 05-02-2022, 14:01   #3
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: OpenCPN 5.6 no sounds RPI

Hi Rick,


everything works here on my amd64 Linux Mint and my RPI's with the RaspiOS and Ubuntu Jammy jellyfish. OpenCPN in the flatpak versions..


Sound works on these systems, however only not in OpenCPN 5.6



Message Sound



unknown sound:0


I think sound is not implemented in OpenCPN.


Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 05-02-2022, 16:49   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,732
Images: 2
Re: OpenCPN 5.6 no sounds RPI

Bram, so glad to hear "everything works on...." but Opencpn doesn't?

Try
Under User Interface > General check Play Ships Bells.
Under User Interface > Sounds Pick a sound and then test it. There are 5 different uses. Then try turning one on that works and see if the alarm is sounded in use.

What files do you have installed under opencpn/sounds?


Also why not try Installing Watchdog v2.4.39 from OpenCPN Plugin Manager (PIM) then set some simple alarms like speed>1 and run a VDR file to see if you hear any sounds.

Quote:
Originally Posted by verkerkbr View Post
Hi Rick,
everything works here on my amd64 Linux Mint and my RPI's with the RaspiOS and Ubuntu Jammy jellyfish. OpenCPN in the flatpak versions..
Sound works on these systems, however only not in OpenCPN 5.6
Message Sound
unknown sound:0
I think sound is not implemented in OpenCPN.
Regards,
Bram
rgleason is offline   Reply With Quote
Old 05-02-2022, 20:10   #5
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,473
Re: OpenCPN 5.6 no sounds RPI

Bram....


On Rpi4/Buster, please try:
Code:
$ aplay /usr/share/opencpn/sounds/1bells.wav
If it does not play, do this:


Code:
$ alsamixer
Set the soundcard (f6) to BCM2835. Verify slider for volume is up. Try aplay again.


Please confirm these steps, in some detail, on one system (raspiOS/buster) only.
Thanks
Dave
bdbcat is offline   Reply With Quote
Old 06-02-2022, 01:13   #6
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: OpenCPN 5.6 no sounds RPI

Quote:
Originally Posted by bdbcat View Post
Bram....


On Rpi4/Buster, please try:
Code:
$ aplay /usr/share/opencpn/sounds/1bells.wav
If it does not play, do this:


Code:
$ alsamixer
Set the soundcard (f6) to BCM2835. Verify slider for volume is up. Try aplay again.


Please confirm these steps, in some detail, on one system (raspiOS/buster) only.
Thanks
Dave

Hi Dave,

tried the Aply ... first on my Linux Mint AMD64 and on my RaspiOS64 with the latest (and greatest kernel 5.15). On both systems the bells are ringing. Other sounds are allready working.

On the changing the sound card setting, did not seem to work in both Flatpak versions.

I have two OpenCPN 5.6 version on my systems. I changed to the default 5.6 version and then the bells are also ringing in OpenCPN.

The missing link is in the Flatpak versions.

The AMD64 has a Realtek ALC662

In the Sound gear "square" in the user setting of O there is no information about a sound system. Still unknown ..:0

Thanks for your advice and best Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 06-02-2022, 05:28   #7
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: OpenCPN 5.6 no sounds RPI

Did the test also in the Ubuntu beta Jammy Jellyfish 64 bits for RPI. The outcome is the same:


aplay works
flatpak OpenCPN 5.6 no sound
regular OpenCPN 5.6 alarm sounds works.

It needs perhaps a simple correction in the Faltpak version.

Bram
verkerkbr is offline   Reply With Quote
Old 06-02-2022, 06:02   #8
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,732
Images: 2
Re: OpenCPN 5.6 no sounds RPI

Added an Issue https://github.com/OpenCPN/OpenCPN/issues/2551
rgleason is offline   Reply With Quote
Old 06-02-2022, 11:28   #9
Registered User

Join Date: Oct 2018
Posts: 54
Re: OpenCPN 5.6 no sounds RPI

We might as well continue here.



Flatpak run in a sandbox isolated from the host OS. So that aplay works on the command line while sounds from OpenCPN does not work is not that surprising.


The connection between the Flatpak sandbox and the host sound system is Pulseaudio. That is, anything playing on the pulseaudio socket in the plugin should produce sounds.



However, as configured OpenCPN tries to use aplay inside the sandbox to play sound. This is just not available, and playback fails on any attempt.



The configuration of the sound system is quite flexible. However, we will at least have to add some dependency library which can be used for playback to the packaging. It might even be required to create a new backend, but that is not the first attempt.


Please file an issue against the Flatpak packaging at https://github.com/flathub/org.opencpn.OpenCPN/issues, this is the place where Flatpak packaging issues lives.
leamas is offline   Reply With Quote
Old 06-02-2022, 11:45   #10
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: OpenCPN 5.6 no sounds RPI

Quote:
Originally Posted by rgleason View Post

Hi Rick,

just read the reply from Leonidas. The answer is clear. OpenCPN in the Flatpak sanbox has no sound available.

It must be added.

Can you pse, transfer this question to the developers team of Flatpak ?

Regards,

Bram
verkerkbr is offline   Reply With Quote
Old 06-02-2022, 12:37   #11
Registered User

Join Date: Oct 2018
Posts: 54
Re: OpenCPN 5.6 no sounds RPI

I have an test version available using

HTML Code:
flatpak install --user  https://dl.flathub.org/build-repo/75367/org.opencpn.OpenCPN.flatpakref
You might need to uninstall OpenCPN first using something like flatpak uninstall --user org.opencpn.OpenCPN.

EDIT: this forum makes me, well, "somewhat irritated". The correct command not mangled by the fourm ui, to install the test version can be found at https://flathub.org/builds/#/builders/32/builds/77498

EDIT2: Finally found a way to present the real command without being mangled by the vBUlletin UI. Sigh.

Using this version I happily play sounds. However, we need more testing... please report back!
leamas is offline   Reply With Quote
Old 06-02-2022, 12:46   #12
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,732
Images: 2
Re: OpenCPN 5.6 no sounds RPI

Alec that's good news. Since I am just being glue here, and no testing, and since you've got it working now, and hopefully Bram can also test, ...I will not file an issue against
https://github.com/flathub/org.opencpn.OpenCPN/issues



...and I think it would be best if Bram filed it, if found to be needed. Thanks to all for the help.
rgleason is offline   Reply With Quote
Old 06-02-2022, 13:06   #13
Registered User

Join Date: Oct 2018
Posts: 54
Re: OpenCPN 5.6 no sounds RPI

The packaging issue is at https://github.com/flathub/org.opencpn.OpenCPN/issues/3. Please report back there or in this thread.
leamas is offline   Reply With Quote
Old 06-02-2022, 13:56   #14
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: OpenCPN 5.6 no sounds RPI

Quote:
Originally Posted by leamas View Post
I have an test version available using

HTML Code:
flatpak install --user  https://dl.flathub.org/build-repo/75367/org.opencpn.OpenCPN.flatpakref
You might need to uninstall OpenCPN first using something like flatpak uninstall --user org.opencpn.OpenCPN.

EDIT: this forum makes me, well, "somewhat irritated". The correct command not mangled by the fourm ui, to install the test version can be found at https://flathub.org/builds/#/builders/32/builds/77498

EDIT2: Finally found a way to present the real command without being mangled by the vBUlletin UI. Sigh.

Using this version I happily play sounds. However, we need more testing... please report back!

Hi Alec,

just tried this version on my Linux Mint AMD64 system with the Flatpak OpenCPN version and I can report that sound in this version works. Toot - Toot etc.

Old version is removed with remove command instead of uninstall.

Tomorrow I will do the some more tests on my RPI systems and let you know the outcome. It is too late now

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 07-02-2022, 00:58   #15
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: OpenCPN 5.6 no sounds RPI

Hi Leamas,

tested your very quick update version yesterday on my Linux Mint AMD64. sounds works !


Today I tested the same setup on my:

RPI4 2 GB with RaspiOS 64 based on Debian Bullseye and on this system the sounds also works in the Flatpak edition.

Then a second try with my beta setup of the Ubuntu Jammy Jellyfish , now with the very nice, Gnome 4 version. Also on a RPI4 2 GB.

Et voila the DSC phone is ringing ! Toot toot ETC. etc. !

What a very quick patch.

Do you need more time to fine tune this version or can I inform others to change
the version ?

Or do you an upgrade of the O Flatpak version.

Thanks and regards,


Bram
verkerkbr 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 Rpi cpu usage and temperature CapnRon47 OpenCPN 25 18-04-2018 06:55
u-blox 7 GPS on Rpi 3 with OpenCPN geoffr OpenCPN 2 23-03-2018 07:22
OpenCPN problem on RPi with Raspbian 9.1 janth OpenCPN 16 15-10-2017 08:30
World Chart missing/opencpn/rPi dugsmith98 OpenCPN 1 01-03-2017 17:05
Rpi OpenCPN System - recommendations geoffr OpenCPN 17 01-02-2017 10:45

Advertise Here


All times are GMT -7. The time now is 05:37.


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.