Autostart "Start DSP"

230 views
Skip to first unread message

Ionogram Juliusruh

unread,
Oct 3, 2021, 9:48:50 AM10/3/21
to Gqrx SDR
Hi all,

I am new to Gqrx. Is there a way to autostart "Start DSP" (Ctrl+D) when Gqrx starts?

Thanks
Roland

Roger David Powers

unread,
Oct 3, 2021, 10:18:44 AM10/3/21
to gq...@googlegroups.com
Apparently 'xdotool' can be used for this, but perhaps not from some startup environments:



Regards,
RDP
--
You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gqrx+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gqrx/b7d8c5e4-0a33-460f-a343-937505b31b08n%40googlegroups.com.

Ionogram Juliusruh

unread,
Oct 3, 2021, 2:43:16 PM10/3/21
to Gqrx SDR
It would be nice if this could be implemented in Gqrx as an Option

Cary Honeywell

unread,
Oct 4, 2021, 12:00:54 AM10/4/21
to gq...@googlegroups.com
The xdotool worked for me. I asked the question about autostarting dsp (several times) and this is the only time I found an answer. Thanks for asking the question.

_ Cary _


Ionogram Juliusruh

unread,
Oct 4, 2021, 2:26:00 AM10/4/21
to Gqrx SDR
I am using a headless system. GQRX and WSJTX being started by  /etc/xdg/lxsession/LXDE-pi/autostart. Unfortunately xdotool did not work with autostart.
Is Gqrx still actively developed? Last release from Dec-2020

Ionogram Juliusruh

unread,
Oct 4, 2021, 2:36:31 AM10/4/21
to Gqrx SDR
Ok just noticed Gqrx 2.14.5 was released a couple of hours ago. So yes it is still actively developed, thanks for that! I hope the autostart DSP feature will be implemented in a future release.

Ionogram Juliusruh

unread,
Oct 4, 2021, 3:56:37 AM10/4/21
to Gqrx SDR
It is working for me

- Starting GQRX from autostart
- using xdotool to start DSP

cat /etc/xdg/lxsession/LXDE-pi/autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@gqrx
@wsjtx
@lxterminal -e "/home/pi/start_gqrx.sh"
@xscreensaver -no-splash

cat /home/pi/start_gqrx.sh
#!/bin/bash
sleep 10
gqrxWindow=$(xdotool search --name "Gqrx( )")
xdotool windowactivate  --sync $gqrxWindow key ctrl+d


Dirk Lison

unread,
Oct 9, 2021, 3:09:38 PM10/9/21
to Gqrx SDR
or use netcat and send a command to start DSP:
echo "U DSP 1" | nc -i1 -N localhost 7356
Message has been deleted
Message has been deleted
Message has been deleted

btjust...@gmail.com

unread,
Jun 18, 2022, 10:11:12 PM6/18/22
to Gqrx SDR
Thanks for the netcat suggestion.  "-i1" is not needed, and "N" is invalid now.  This works on Linux using Wayland.  Wayland apparently doesn't support xdotools.

With gqrx-scan extracted to the /home/$USER folder and working along with Gqrx bookmarks tagged, the bash script code at the bottom will:
  1. Open Gqrx.
  2. Start the SDR.
  3. Scan frequencies with gqrx-scan.
I have multiple versions of this bash script saved as Aircraft.sh, EMS.sh, Marine.sh, and so on.  Change "Aircraft" in Line 10 with the tag of the frequencies you want to scan.  Make sure to make each .sh bash script file you create executable (I use Step 2 here).  The following is "Aircraft.sh":

#!/bin/bash
# Open Gqrx.
gqrx &
sleep 5
# Start SDR.
echo "U DSP 1" | nc localhost 7356
sleep 5
# Start scanning frequencies with gqrx-scan (https://gitlab.com/khaytsus/gqrx-scan).
cd /home/$USER/gqrx-scan-master/
./gqrx-scan --delaylevel=-50 --delaytime 10 --pause 0.25 --tags "Aircraft" --type gqrxfile --wait
Reply all
Reply to author
Forward
0 new messages