Closed VE2ZAZ closed 2 years ago
There's likely an issue with your linux sound setup, I've never heared of such an issue. I'd recommend to make sure pulseaudio is configured properly and maybe install RtAudio from source using the fix described here: https://github.com/AlexandreRouma/SDRPlusPlus/discussions/112
I am having the same issue with a x86_64 system running sdrpp-1.0.4-4 and an up to date Fedora-35 installation. I get the waterfall for the signal but no audio for sdr++ or for any other audio program until sdrpp is stopped.
$ sdrpp [2022-01-04 19:44:03.528] [info] SDR++ v1.0.4 [2022-01-04 19:44:03.529] [info] Loading config [2022-01-04 19:44:03.909] [info] Using OpenGL 3.0 [2022-01-04 19:44:04.127] [info] Loading icons [2022-01-04 19:44:04.141] [info] Loading band plans [2022-01-04 19:44:04.144] [info] Loading band plans color table [2022-01-04 19:44:04.154] [info] Loading modules [2022-01-04 19:44:04.154] [info] Loading /usr/lib64/sdrpp/plugins/new_portaudio_sink.so [2022-01-04 19:44:04.168] [info] Loading /usr/lib64/sdrpp/plugins/weather_sat_decoder.so [2022-01-04 19:44:04.180] [info] Loading /usr/lib64/sdrpp/plugins/m17_decoder.so [2022-01-04 19:44:04.198] [info] Loading /usr/lib64/sdrpp/plugins/meteor_demodulator.so [2022-01-04 19:44:04.214] [info] Loading /usr/lib64/sdrpp/plugins/rigctl_server.so [2022-01-04 19:44:04.230] [info] Loading /usr/lib64/sdrpp/plugins/hackrf_source.so [2022-01-04 19:44:04.247] [info] Loading /usr/lib64/sdrpp/plugins/soapy_source.so [2022-01-04 19:44:04.264] [info] Loading /usr/lib64/sdrpp/plugins/audio_sink.so [2022-01-04 19:44:04.289] [info] Loading /usr/lib64/sdrpp/plugins/spyserver_source.so [2022-01-04 19:44:04.298] [info] Loading /usr/lib64/sdrpp/plugins/radio.so [2022-01-04 19:44:04.313] [info] Loading /usr/lib64/sdrpp/plugins/discord_integration.so [2022-01-04 19:44:04.330] [info] Loading /usr/lib64/sdrpp/plugins/recorder.so [2022-01-04 19:44:04.346] [info] Loading /usr/lib64/sdrpp/plugins/frequency_manager.so [2022-01-04 19:44:04.363] [info] Loading /usr/lib64/sdrpp/plugins/network_sink.so [2022-01-04 19:44:04.380] [info] Loading /usr/lib64/sdrpp/plugins/rtl_sdr_source.so [2022-01-04 19:44:04.397] [info] Loading /usr/lib64/sdrpp/plugins/file_source.so [2022-01-04 19:44:04.414] [info] Loading /usr/lib64/sdrpp/plugins/rtl_tcp_source.so [2022-01-04 19:44:04.430] [info] Initializing Audio Sink (audio_sink) [2022-01-04 19:44:04.446] [info] Initializing File Source (file_source) [2022-01-04 19:44:04.463] [info] Initializing Frequency Manager (frequency_manager) [2022-01-04 19:44:04.480] [info] Initializing HackRF Source (hackrf_source) [2022-01-04 19:44:04.532] [info] Initializing Network Sink (network_sink) [2022-01-04 19:44:04.533] [info] Initializing RTL-SDR Source (rtl_sdr_source) Detached kernel driver Found Rafael Micro R820T tuner Reattached kernel driver [2022-01-04 19:44:05.202] [info] Initializing RTL-TCP Source (rtl_tcp_source) [2022-01-04 19:44:05.204] [info] Initializing Radio (radio) [2022-01-04 19:44:06.034] [info] RtAudio stream open [2022-01-04 19:44:06.034] [info] Initializing Recorder (recorder) [2022-01-04 19:44:06.046] [info] Initializing Rigctl Server (rigctl_server) [2022-01-04 19:44:06.052] [info] Initializing SpyServer Source (spyserver_source) [2022-01-04 19:44:06.069] [info] Loading color maps [2022-01-04 19:44:06.074] [info] Loading /usr/share/sdrpp/colormaps/viridis.json [2022-01-04 19:44:06.079] [info] Loading /usr/share/sdrpp/colormaps/gqrx.json [2022-01-04 19:44:06.096] [info] Loading /usr/share/sdrpp/colormaps/classic_green.json [2022-01-04 19:44:06.112] [info] Loading /usr/share/sdrpp/colormaps/electric.json [2022-01-04 19:44:06.129] [info] Loading /usr/share/sdrpp/colormaps/plasma.json [2022-01-04 19:44:06.146] [info] Loading /usr/share/sdrpp/colormaps/inferno.json [2022-01-04 19:44:06.163] [info] Loading /usr/share/sdrpp/colormaps/classic.json [2022-01-04 19:44:06.179] [info] Loading /usr/share/sdrpp/colormaps/greyscale.json [2022-01-04 19:44:06.195] [info] Loading /usr/share/sdrpp/colormaps/turbo.json [2022-01-04 19:44:06.213] [info] Loading /usr/share/sdrpp/colormaps/magma.json [2022-01-04 19:44:06.229] [info] Loading /usr/share/sdrpp/colormaps/websdr.json [2022-01-04 19:44:06.254] [info] New DSP samplerate: 2400000 (source samplerate is 2400000) [2022-01-04 19:44:06.254] [info] Updating FFT DSP settings: Keep: 65536, Skip: 54464 [2022-01-04 19:44:06.255] [info] RTLSDRSourceModule 'RTL-SDR Source': Menu Select! [2022-01-04 19:44:06.255] [info] New DSP samplerate: 2400000 (source samplerate is 2400000) [2022-01-04 19:44:06.255] [info] Updating FFT DSP settings: Keep: 65536, Skip: 54464
RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy.
RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy.
[2022-01-04 19:44:06.531] [warning] ConfigManager locked, waiting... [2022-01-04 19:44:06.591] [info] RtAudio stream open [2022-01-04 19:44:06.615] [info] Updating FFT DSP settings: Keep: 65536, Skip: 54464 [2022-01-04 19:44:06.615] [info] Updating FFT DSP settings: Keep: 65536, Skip: 54464 [2022-01-04 19:44:06.620] [info] Updating FFT DSP settings: Keep: 65536, Skip: 54464 [2022-01-04 19:44:06.621] [info] RTLSDRSourceModule 'RTL-SDR Source': Tune: 96048170.77911164! [2022-01-04 19:44:06.621] [info] Running post-init for Audio Sink [2022-01-04 19:44:06.621] [info] Running post-init for File Source [2022-01-04 19:44:06.621] [info] Running post-init for Frequency Manager [2022-01-04 19:44:06.621] [info] Running post-init for HackRF Source [2022-01-04 19:44:06.621] [info] Running post-init for Network Sink [2022-01-04 19:44:06.621] [info] Running post-init for RTL-SDR Source [2022-01-04 19:44:06.621] [info] Running post-init for RTL-TCP Source [2022-01-04 19:44:06.621] [info] Running post-init for Radio [2022-01-04 19:44:06.621] [info] Running post-init for Recorder [2022-01-04 19:44:06.621] [info] Running post-init for Rigctl Server [2022-01-04 19:44:06.621] [info] Running post-init for SpyServer Source [2022-01-04 19:44:06.621] [info] Ready.
I don't know how the fedora maintainers configured the build, so I can't say much. (I'm not the maintainer for that package and I know they changed some stuff in the code so I can't support it).
I'd suggest checking that you have pulseaudio installed, that your audio permissions are correct and if everything fails, build SDR++ from source.
Greetings,
I have installed SDR++ v1.0.3 on a Xubuntu 20.04LTS desktop, been using it with a SDRPlay RSP1A, and wish to adopt the software. However I have been experiencing a series of sound card issues with SDR++, mostly it being unable to access the proper sound card on my system.
In the Sinks area, "Audio" does not even show up unless I run the software as root. All I get is "None". Here is what I get when I launch SDR++ as the default user in a console: _[2021-10-16 12:13:26.388] [info] SDR++ v1.0.3 [2021-10-16 12:13:26.388] [info] Loading config [2021-10-16 12:13:27.004] [info] Loading icons [2021-10-16 12:13:27.018] [info] Loading band plans [2021-10-16 12:13:27.035] [info] Loading band plans color table [2021-10-16 12:13:27.055] [info] Loading modules [2021-10-16 12:13:27.055] [info] Loading /usr/lib/sdrpp/plugins/limesdr_source.so [2021-10-16 12:13:27.069] [info] Loading /usr/lib/sdrpp/plugins/weather_sat_decoder.so [2021-10-16 12:13:27.086] [info] Loading /usr/lib/sdrpp/plugins/new_portaudio_sink.so [2021-10-16 12:13:27.103] [info] Loading /usr/lib/sdrpp/plugins/plutosdr_source.so [2021-10-16 12:13:27.120] [info] Loading /usr/lib/sdrpp/plugins/rtl_tcp_source.so [2021-10-16 12:13:27.136] [info] Loading /usr/lib/sdrpp/plugins/sdrplay_source.so [2021-10-16 12:13:27.153] [info] Loading /usr/lib/sdrpp/plugins/rigctl_server.so [2021-10-16 12:13:27.169] [info] Loading /usr/lib/sdrpp/plugins/network_sink.so [2021-10-16 12:13:27.187] [info] Loading /usr/lib/sdrpp/plugins/frequency_manager.so [2021-10-16 12:13:27.203] [info] Loading /usr/lib/sdrpp/plugins/recorder.so [2021-10-16 12:13:27.219] [info] Loading /usr/lib/sdrpp/plugins/file_source.so [2021-10-16 12:13:27.236] [info] Loading /usr/lib/sdrpp/plugins/hackrf_source.so [2021-10-16 12:13:27.253] [info] Loading /usr/lib/sdrpp/plugins/rtl_sdr_source.so [2021-10-16 12:13:27.269] [info] Loading /usr/lib/sdrpp/plugins/airspy_source.so [2021-10-16 12:13:27.286] [info] Loading /usr/lib/sdrpp/plugins/airspyhf_source.so [2021-10-16 12:13:27.303] [info] Loading /usr/lib/sdrpp/plugins/discord_integration.so [2021-10-16 12:13:27.319] [info] Loading /usr/lib/sdrpp/plugins/bladerf_source.so [2021-10-16 12:13:27.336] [info] Loading /usr/lib/sdrpp/plugins/radio.so [2021-10-16 12:13:27.353] [info] Loading /usr/lib/sdrpp/plugins/meteor_demodulator.so [2021-10-16 12:13:27.370] [info] Loading /usr/lib/sdrpp/plugins/audio_sink.so [2021-10-16 12:13:27.390] [info] Loading /usr/lib/sdrpp/plugins/soapy_source.so [2021-10-16 12:13:27.403] [info] Loading /usr/lib/sdrpp/plugins/spyserver_source.so [2021-10-16 12:13:27.420] [info] Initializing Airspy Source (airspy_source) [2021-10-16 12:13:27.441] [info] Initializing AirspyHF+ Source (airspyhf_source) [2021-10-16 12:13:27.458] [info] Initializing BladeRF Source (bladerf_source) [2021-10-16 12:13:27.472] [error] Could not list devices [2021-10-16 12:13:27.472] [info] Initializing File Source (file_source) [2021-10-16 12:13:27.486] [info] Initializing Frequency Manager (frequency_manager) [2021-10-16 12:13:27.503] [info] Initializing HackRF Source (hackrf_source) [2021-10-16 12:13:27.525] [info] Initializing LimeSDR Source (limesdr_source) [2021-10-16 12:13:27.546] [info] Initializing PlutoSDR Source (plutosdr_source) [2021-10-16 12:13:27.553] [info] Initializing RTL-SDR Source (rtl_sdr_source) [2021-10-16 12:13:27.575] [info] Initializing RTL-TCP Source (rtl_tcp_source) [2021-10-16 12:13:27.586] [info] Initializing Radio (radio) [2021-10-16 12:13:27.631] [info] Initializing Recorder (recorder) [2021-10-16 12:13:27.631] [info] Initializing Rigctl Server (rigctl_server) [2021-10-16 12:13:27.636] [info] Initializing SoapySDR Source (soapy_source) [INFO] [UHD] linux; GNU C++ version 9.2.1 20200304; Boost_107100; UHD_3.15.0.0-2build5 RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy. RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy. RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:2,0), Device or resource busy. RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy. RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy. RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:2,0), Device or resource busy. [2021-10-16 12:13:28.174] [info] Setting sample rate to 48000.0 [2021-10-16 12:13:28.174] [info] New DSP samplerate: 48000.0 (source samplerate is 48000.0) [2021-10-16 12:13:28.174] [info] Updating FFT DSP settings: Keep: 2400, Skip: 0 [2021-10-16 12:13:28.174] [info] Initializing SpyServer Source (spyserver_source) [2021-10-16 12:13:28.174] [info] Initializing rsp1a (sdrplaysource) [2021-10-16 12:13:28.639] [info] New DSP samplerate: 2000000.0 (source samplerate is 2000000.0) [2021-10-16 12:13:28.639] [info] Updating FFT DSP settings: Keep: 65536, Skip: 34464 [2021-10-16 12:13:29.812] [info] Loading color maps [2021-10-16 12:13:29.824] [info] Loading /usr/share/sdrpp/colormaps/classic.json [2021-10-16 12:13:29.840] [info] Loading /usr/share/sdrpp/colormaps/turbo.json [2021-10-16 12:13:29.857] [info] Loading /usr/share/sdrpp/colormaps/viridis.json [2021-10-16 12:13:29.874] [info] Loading /usr/share/sdrpp/colormaps/websdr.json [2021-10-16 12:13:29.891] [info] Loading /usr/share/sdrpp/colormaps/inferno.json [2021-10-16 12:13:29.907] [info] Loading /usr/share/sdrpp/colormaps/greyscale.json [2021-10-16 12:13:29.924] [info] Loading /usr/share/sdrpp/colormaps/electric.json [2021-10-16 12:13:29.941] [info] Loading /usr/share/sdrpp/colormaps/magma.json [2021-10-16 12:13:29.957] [info] Loading /usr/share/sdrpp/colormaps/gqrx.json [2021-10-16 12:13:29.974] [info] Loading /usr/share/sdrpp/colormaps/plasma.json [2021-10-16 12:13:29.988] [info] New DSP samplerate: 2000000.0 (source samplerate is 2000000.0) [2021-10-16 12:13:29.988] [info] Updating FFT DSP settings: Keep: 65536, Skip: 34464 [2021-10-16 12:13:29.988] [info] SDRPlaySourceModule 'rsp1a': Menu Select! [2021-10-16 12:13:29.988] [info] New DSP samplerate: 1000000.0 (source samplerate is 2000000.0) [2021-10-16 12:13:29.988] [info] Updating FFT DSP settings: Keep: 50000, Skip: 0 [2021-10-16 12:13:29.999] [info] Updating FFT DSP settings: Keep: 50000, Skip: 0 [2021-10-16 12:13:29.999] [info] Updating FFT DSP settings: Keep: 50000, Skip: 0 [2021-10-16 12:13:30.001] [info] Updating FFT DSP settings: Keep: 50000, Skip: 0 [2021-10-16 12:13:30.001] [info] SDRPlaySourceModule 'rsp1a': Tune: 7215110.045146727! [2021-10-16 12:13:30.001] [info] Running post-init for Airspy Source [2021-10-16 12:13:30.001] [info] Running post-init for AirspyHF+ Source [2021-10-16 12:13:30.001] [info] Running post-init for BladeRF Source [2021-10-16 12:13:30.001] [info] Running post-init for File Source [2021-10-16 12:13:30.001] [info] Running post-init for Frequency Manager [2021-10-16 12:13:30.001] [info] Running post-init for HackRF Source [2021-10-16 12:13:30.001] [info] Running post-init for LimeSDR Source [2021-10-16 12:13:30.001] [info] Running post-init for PlutoSDR Source [2021-10-16 12:13:30.001] [info] Running post-init for RTL-SDR Source [2021-10-16 12:13:30.001] [info] Running post-init for RTL-TCP Source [2021-10-16 12:13:30.001] [info] Running post-init for Radio [2021-10-16 12:13:30.001] [info] Running post-init for Recorder [2021-10-16 12:13:30.001] [info] Running post-init for Rigctl Server [2021-10-16 12:13:30.001] [info] Running post-init for SoapySDR Source [2021-10-16 12:13:30.001] [info] Running post-init for SpyServer Source [2021-10-16 12:13:30.001] [info] Running post-init for rsp1a [2021-10-16 12:13:30.001] [info] Ready. So it looks like the software sees the devices as being busy...and they are not, obviously. I can run all other sound-using software normally. Both Alsa and PulseAudio are installed on the system.
The only way I can make SDR++ run on the desired sound card is:
Now, if I try to run any other sound-using software while SDR++ is running, the other software will not play the sounds; it just stalls. As soon as I stop SDR++ and select another sound device (or if I quit SDR++), the other software will start to play sounds. From that point on, I will not be able to get any audio from SDR++, even if I relaunch it, and even if I quit all other software. I will only see the HDA Nvidia devices, not the right sound card. These are the errors I get: _RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy. ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (default), Device or resource busy. [2021-10-16 13:34:32.622] [info] RtAudio stream open RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy. ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave RtApiAlsa::getDeviceInfo: snd_pcmopen error for device (default), Device or resource busy. [2021-10-16 13:34:38.259] [error] Could not open audio device It will stay like this until I reboot the PC.
Obviously, if I reboot the PC and then run any other sound-using software first, SDR++ will never list the right sound card.
Note that no other software (Audacity, Firefox, DaVinci Resolve, VLC...) behaves like that on my system. There are no other sound card usage conflicts on my PC. Since this only affecs SDR++, I reckon there is an issue with DSR++.
I am sure more information will be required, so please advise of what info to supply.
Thanks in advance for your support,
Bert, VE2ZAZ http://ve2zaz.net