I have a Raspberry Pi 4 8GB that I'm looking to use for ham radio applications. In particular, I'm currently working with an rtl-sdr dongle for software-defined radio. Right now I'm just working with Raspberry Pi reference 2021-05-07.
I don't have space for a monitor on my shelf, so I'm running this machine headless and connecting via VNC Viewer and standard ssh.
dtparam=audio=on
has been added to /boot/config.txt.
When I run the following command through the ssh session, I hear audio from a speaker I've plugged into the 3.5 mm jack:
speaker-test -c2 -twav -l7
However, when I run the exact same command through a terminal session in the VNC Viewer session, there's no sound. Furthermore, if I right-click the volume control on the desktop, I get "no audio devices found", despite a slider presenting when I left click on that same icon.
Alsamixer seems to see a headphone jack when adjusted through the terminal in a VNC session:
I'm guessing that VNC is not allowing any audio output. Is there any way to make it play out of the 3.5mm jack while connected to VNC? Not much point to a ham radio application box that doesn't have audio :P