Loading ...
Sorry, an error occurred while loading the content.
 

Re: [softrock40] Re: Updates to sdr-shell-v2-rxtx - Ubuntu 10.04 install guide (was 09.10)

Expand Messages
  • Glenn VE9GJ
    If you start jackd with a -r you won t need a real time kernel if you want to try it out. ie: pasuspender -- /usr/bin/jackd -r -s -dalsa -Phw:0 -Chw:0
    Message 1 of 15 , Jun 1, 2010
      If you start jackd with a -r you won't need a real time kernel if you
      want to try it out.

      ie:
      pasuspender -- /usr/bin/jackd -r -s -dalsa -Phw:0 -Chw:0 -r48000 -p2048 -n3

      What does aplay -l list?

      73
      Glenn VE9GJ

      On 10-05-31 09:05 AM, Sid Boyce wrote:
      > If you start jackd with realtime and you are not running a realtime
      > kernel, it will fail.
      > Have you tried jackmp? There could be a problem if you have different
      > versions of jack installed also. I originally had to remove the distro's
      > jack-0.116 and install jackmp.Then I asked openSUSE to upgrade to jackmp
      > and that's what I use. On Kubuntu I built and installed jackmp.
      > 73 ... Sid.
      >
      > On 31/05/10 04:51, Michael Heim, KD0AR wrote:
      >>
      >>
      >> Never could get jack to work. Doesn't see the sound cards for some
      >> reason.
      >>
      >> ------------------------------------------------------------------------
      >> Michael Heim
      >>
      >> ARS KD0AR
      >> ------------------------------------------------------------------------
      >>
      >>
      >> ------------------------------------------------------------------------
      >> *From:* Sid Boyce<sboyce@...>
      >> *To:* softrock40@yahoogroups.com
      >> *Sent:* Sun, May 30, 2010 10:55:34 PM
      >> *Subject:* Re: [softrock40] Re: Updates to sdr-shell-v2-rxtx - Ubuntu
      >> 10.04 install guide (was 09.10)
      >>
      >>
      >>
      >> Could you post the output of "jack_lsp -c" when it's running.
      >> 73 ... Sid.
      >>
      >> On 31/05/10 00:15, Glenn VE9GJ wrote:
      >>>
      >>>
      >>> Hello
      >>>
      >>> I used Alex's fine guide here today to install SDR-Shell on Ubuntu Lucid
      >>> 10.04 on my Acer Aspire One Netbook. So far I have only used it for RX
      >>> with a USB Xtall V9.0. I also used a more basic start_rx script.
      >>> Alex's instructions were written for Karmic 09.10 so I thought I would
      >>> add the changes I had to make to get it working on Lucid 10.04.
      >>>
      >>> The two changes I made were with the liblo0ldbl library and the linux-rt
      >>> kernel. Look for ***** Start of VE9GJ changes ***** below.
      >>>
      >>> 73
      >>> Glenn VE9GJ
      >>>
      >>> ******Alex's fine guide below **************************
      >>>
      >>> From: Alex<lee188@...<mailto:lee188%40singnet.com.sg>
      >> <mailto:lee188%40singnet.com.sg>>
      >>> Date: Sun, 28 Mar 2010 11:15:56 -0000
      >>> Subject: [softrock40] Re: Updates to sdr-shell-v2-rxtx - Ubuntu 9.10
      >>> install guide
      >>>
      >>> Hi all,
      >>>
      >>> The following is a guide to install all the pieces (there are many)
      >>> needed to get sdr-shell-v2-rxtx working, starting with a fresh Ubuntu
      >>> 9.10 distribution. It may not be 100% complete/correct but I have just
      >>> installed all the pieces from a fairly recent fresh Ubuntu 9.10 setup.
      >>>
      >>> After installing all the software pieces, you will need to follow the
      >>> README file instructions in the sdr-shell-v2-rxtx directory.
      >>>
      >>> I have created a script, start_tx, to start the sdr-shell in my system.
      >>> However, you will have to customize the soundcard(s) setup in your own
      >>> environment to get it working. It is not trivial as there are many
      >>> parameters to tweak.
      >>>
      >>> The installation includes getting a linux-rt kernel installed. You
      >>> should reboot to run from the linux-rt (real-time) kernel for better
      >>> sound performance.
      >>>
      >>> Alex
      >>>
      >>> ==================================================================
      >>> Installing sdr-shell-v2-rxtx from fresh Ubuntu 9.10 distribution
      >>>
      >>> (1) Get needed packages
      >>>
      >>> cd ~
      >>> sudo apt-get install build-essential
      >>> sudo apt-get install subversion
      >>> sudo apt-get install hamlib-dev
      >>> sudo apt-get install qt3-dev-tools
      >>> sudo apt-get install libsamplerate0-dev
      >>> sudo apt-get install libasound2-dev
      >>> sudo apt-get install libfreebob0-dev
      >>> sudo apt-get install libffado-dev
      >>> sudo apt-get install libsndfile-dev
      >>> sudo apt-get install libcelt-dev
      >>> sudo apt-get install libreadline-dev
      >>> sudo apt-get install autoconf automake
      >>> sudo apt-get install manpages-dev
      >>> sudo apt-get install fftw3 fftw3-dev libgsl0-dev
      >>>
      >>> ***** Start of VE9GJ changes *****
      >>>
      >>> 09.10: sudo apt-get install liblo0ldbl liblo0-dev
      >>> 10.04: sudo apt-get install liblo7 liblo-dev
      >>>
      >>> RT kernels on Lucid
      >>>
      >>> Because there is no RT patch for the 2.6.32 kernel version that was
      >>> chosen for the 10.04 Release if you install linux-rt from the official
      >>> 10.04 repositories you will actually get a 2.6.31 kernel from Karmic.
      >>> This may work fine for you and it may not. I couldn't use it with my
      >>> netbook as the kernel option mmc_core.removable=0 option is missing in
      >>> the 2.6.31 kernel. There is however an easy fix for this. The PPA:
      >>> https://launchpad.net/~bojo42/+archive/rt
      >> <https://launchpad.net/~bojo42/+archive/rt>
      >>> <https://launchpad.net/~bojo42/+archive/rt
      >> <https://launchpad.net/~bojo42/+archive/rt>> contains new rt kernels for
      >>> 10.04 use. To go this route just add this ppa to your sources.list or
      >>> use the add-apt-repository.
      >>>
      >>> 10.04: sudo add-apt-repository ppa:bojo42/rt
      >>>
      >>> Now for 09.10 or 10.04:
      >>> sudo apt-get install linux-rt
      >>>
      >>> ***** End of VE9GJ changes *****
      >>>
      >>> (2) Install usbsoftrock
      >>>
      >>> Go to softrock40 Yahoo group Files> VK6JBL> usbsoftrock-1.0.1.tar.gz
      >>> and download
      >>>
      >>> Double click on downloaded file to extract usbsoftrock-1.0.1 folder to
      >>> your home directory.
      >>>
      >>> cd ~
      >>> cd usbsoftrock-1.0.1
      >>> ./configure
      >>> make
      >>> sudo make install
      >>>
      >>> (3) Install sdr-shell-v2-rxtx
      >>>
      >>> cd ~
      >>> svn checkout
      >> http://sdr-shell.googlecode.com/svn/branches/sdr-shell-v2-rxtx/
      >> <http://sdr-shell.googlecode.com/svn/branches/sdr-shell-v2-rxtx/>
      >>> cd sdr-shell-v2-rxtx
      >>> qmake
      >>> make
      >>>
      >>> (4) Install jack2
      >>>
      >>> cd ~
      >>> svn co http://subversion.jackaudio.org/jack/jack2/trunk/jackmp
      >> <http://subversion.jackaudio.org/jack/jack2/trunk/jackmp>
      >>> cd jackmp
      >>> ./waf configure --alsa --firewire --freebob
      >>> ./waf build
      >>> sudo ./waf install
      >>>
      >>> The following steps are needed to use jack with the real-time kernel
      >>> scheduler:
      >>>
      >>> sudo su -c 'echo @audio - rtprio 99>> /etc/security/limits.conf'
      >>> sudo su -c 'echo @audio - memlock 250000>> /etc/security/limits.conf'
      >>> sudo su -c 'echo @audio - nice -10>> /etc/security/limits.conf'
      >>>
      >>> sudo usermod -G audio -a<user>
      >>>
      >>> Replace<user> by your login_id. The system needs to be rebooted for the
      >>> changes to take effect.
      >>>
      >>> (5) Install dttsp
      >>>
      >>> svn co
      >>>
      >> https://www.cgran.org/cgran/projects/dttsp/branches/ab2kt/sdr-core/base
      >> <https://www.cgran.org/cgran/projects/dttsp/branches/ab2kt/sdr-core/base>
      >>> dttsp-cgran
      >>> cd dttsp-cgran/src
      >>> ./bootstrap
      >>> ./configure
      >>> make
      >>> sudo make install
      >>>
      >>> ================================================================
      >>>
      >>> The following is a copy of my start_tx script
      >>>
      >>> ===============================================================
      >>>
      >>> #!/bin/bash
      >>>
      >>> # define name used in the RMI registry
      >>> NAME=SDR-SHELL
      >>> export SDR_DEFRATE=96000
      >>> export JACK_BUFFER=2048
      >>> export LD_LIBRARY_PATH=/usr/local/lib
      >>>
      >>> # start usbsoftrock daemon
      >>> echo "starting usbsoftrock..."
      >>>
      >>> usbsoftrock -a -d&
      >>>
      >>> # start jackd
      >>> echo "starting jackd ..."
      >>>
      >>> #pasuspender -- jackd -s -dalsa -Phw:1 -Chw:1 -r$SDR_DEFRATE
      >>> -p${JACK_BUFFER} -n3&
      >>> # problem: cannot start jackd with both capture and playback of my
      >>> external USB soundcard
      >>> # so just do capture of the I/Q signal first until this is sorted out
      >>>
      >>> pasuspender -- /usr/local/bin/jackd -s -dalsa -Chw:1 -r$SDR_DEFRATE
      >>> -p${JACK_BUFFER} -n3&
      >>> sleep 1
      >>>
      >>> echo "starting audioadater to add onboard soundcard"
      >>> /usr/local/bin/jack_load onboard audioadapter
      >>>
      >>> sleep 3
      >>> # start RX DttSP
      >>> echo "starting DttSP ${NAME}_RX ..."
      >>> /usr/local/bin/sdr-core --spectrum --metering --client-name=${NAME}_RX
      >>> --buffsize=${JACK_BUFFER} --ringmult=4 --command-port=19001
      >>> --spectrum-port=19002 --meter-port=19003&
      >>>
      >>> sleep 3
      >>> # connect receiver
      >>> echo "connecting receiver ..."
      >>> /usr/local/bin/jack_connect system:capture_1 ${NAME}_RX:il
      >>> sleep 2
      >>> /usr/local/bin/jack_connect system:capture_2 ${NAME}_RX:ir
      >>> sleep 2
      >>> /usr/local/bin/jack_connect ${NAME}_RX:ol onboard:playback_1
      >>> sleep 2
      >>> /usr/local/bin/jack_connect ${NAME}_RX:or onboard:playback_2
      >>> sleep 2
      >>>
      >>> # start the tx dttsp
      >>> /usr/local/bin/sdr-core -s -m -v --client-name=${NAME}_TX
      >>> --spectrum-port=19006 --meter-port=19007 --command-port=19005&
      >>>
      >>> # connect transmitter
      >>> echo "connecting transmitter"
      >>> sleep 1
      >>>
      >>> # external USB sound card don't have playback configured yet with jackd.
      >>> So don't connect for now.
      >>> #jack_lsp
      >>> #/usr/local/bin/jack_connect ${NAME}_TX:ol system:playback_1
      >>> #/usr/local/bin/jack_connect ${NAME}_TX:or system:playback_2
      >>> /usr/local/bin/jack_connect onboard:capture_1 ${NAME}_TX:il
      >>> /usr/local/bin/jack_connect onboard:capture_2 ${NAME}_TX:ir
      >>>
      >>> # start sdr-shell
      >>> ./sdr-shell
      >>>
      >>> # exited sdr-shell. So kill all daemons
      >>>
      >>> sleep 2
      >>> sdrpid=`ps -ef|grep sdr-core|head -n1|awk -vORS='' '{print $2}'`
      >>> echo "Killing sdr-core pid $sdrpid"
      >>> kill $sdrpid>/dev/null
      >>>
      >>> sleep 2
      >>> sdrpid=`ps -ef|grep sdr-core|head -n1|awk -vORS='' '{print $2}'`
      >>> echo "Killing sdr-core pid $sdrpid"
      >>> kill $sdrpid>/dev/null
      >>>
      >>> sleep 2
      >>> jackpid=`ps -ef|grep jackd|head -n1|awk -vORS='' '{print $2}'`
      >>> echo "Killing jackd pid $sdrpid"
      >>> kill $jackpid>/dev/null
      >>>
      >>> sleep 2
      >>> usbsoftrockpid=`ps -ef|grep usbsoftrock|head -n1|awk -vORS='' '{print
      >> $2}'`
      >>> echo "Killing usbsoftrock pid $usbsoftrockpid"
      >>> kill $usbsoftrockpid>/dev/null
      >>>
      >>> ------------------------------------
      >>>
      >>
      >
    • Glenn VE9GJ
      Hi Sid I got it working now. The magic line was: /usr/local/bin/jack_load onboard audioadapter -i -d hw:0 Since I don t have a finished RXTX all I can do is
      Message 2 of 15 , Jun 1, 2010
        Hi Sid

        I got it working now. The magic line was:

        /usr/local/bin/jack_load onboard audioadapter -i"-d hw:0"

        Since I don't have a finished RXTX all I can do is a rough test. The TX
        out is the netbook's speakers which make VERY High pitched tones when
        in TX. When in RX I just here background noise plus 20M from the
        external USB.

        73
        Glenn VE9GJ

        The Details *****

        aplay -l
        **** List of PLAYBACK Hardware Devices ****
        card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
        Subdevices: 0/1
        Subdevice #0: subdevice #0
        card 1: S51 [SB X-Fi Surround 5.1], device 0: USB Audio [USB Audio]
        Subdevices: 1/1
        Subdevice #0: subdevice #0
        card 1: S51 [SB X-Fi Surround 5.1], device 1: USB Audio [USB Audio #1]
        Subdevices: 0/1
        Subdevice #0: subdevice #0

        Jack_lsp -c
        system:capture_1
        SDR-SHELL_RX:il
        system:capture_2
        SDR-SHELL_RX:ir
        system:playback_1
        SDR-SHELL_RX:ol
        system:playback_2
        SDR-SHELL_RX:or
        onboard:capture_1
        SDR-SHELL_TX:il
        onboard:capture_2
        SDR-SHELL_TX:ir
        onboard:playback_1
        SDR-SHELL_TX:ol
        onboard:playback_2
        SDR-SHELL_TX:or
        SDR-SHELL_RX:il
        system:capture_1
        SDR-SHELL_RX:ir
        system:capture_2
        SDR-SHELL_RX:ol
        system:playback_1
        SDR-SHELL_RX:or
        system:playback_2
        SDR-SHELL_TX:il
        onboard:capture_1
        SDR-SHELL_TX:ir
        onboard:capture_2
        SDR-SHELL_TX:ol
        onboard:playback_1
        SDR-SHELL_TX:or
        onboard:playback_2

        My Start_RXTX.sh

        #########################################################
        #!/bin/bash

        # Modified RX_TX Script for Aspire One Netbook running Ubuntu 10.04
        # Uses External USB SB X-Fi for RX and onboard Intel for TX
        # Assumes jack2 or jackmp is installed to /usr/local
        # June 1 2010 VE9GJ

        # define name used in the RMI registry
        NAME=SDR-SHELL
        export SDR_DEFRATE=48000
        export JACK_BUFFER=2048
        export LD_LIBRARY_PATH=/usr/local/lib

        # start usbsoftrock daemon
        echo "starting usbsoftrock..."
        usbsoftrock -a -d &

        # start jackd
        echo "starting jackd ..."
        pasuspender -- jackd -s -dalsa -Phw:1,1 -Chw:1 -r$SDR_DEFRATE
        -p${JACK_BUFFER} -n3&
        sleep 1

        echo "starting audioadater to add onboard soundcard"
        /usr/local/bin/jack_load onboard audioadapter -i"-d hw:0"

        # start RX DttSP
        echo "starting DttSP ${NAME}_RX ..."
        /usr/local/bin/sdr-core --spectrum --metering --client-name=${NAME}_RX
        --buffsize=${JACK_BUFFER} --ringmult=4 --command-port=19001
        --spectrum-port=19002 --meter-port=19003&
        sleep 3

        # connect receiver
        # external USB sound card SB X-Fi used for RX
        echo "connecting receiver ..."
        /usr/local/bin/jack_connect system:capture_1 ${NAME}_RX:il
        sleep 2
        /usr/local/bin/jack_connect system:capture_2 ${NAME}_RX:ir
        sleep 2
        /usr/local/bin/jack_connect ${NAME}_RX:ol system:playback_1
        sleep 2
        /usr/local/bin/jack_connect ${NAME}_RX:or system:playback_2
        sleep 2

        # start TX DttSP
        echo "starting DttSP ${NAME}_TX ..."
        /usr/local/bin/sdr-core -s -m -v --client-name=${NAME}_TX
        --spectrum-port=19006 --meter-port=19007 --command-port=19005 &
        sleep 1

        # connect transmitter
        # Onboard Intel Sound used for TX
        echo "connecting transmitter ..."
        /usr/local/bin/jack_connect ${NAME}_TX:ol onboard:playback_1
        /usr/local/bin/jack_connect ${NAME}_TX:or onboard:playback_2
        /usr/local/bin/jack_connect onboard:capture_1 ${NAME}_TX:il
        /usr/local/bin/jack_connect onboard:capture_2 ${NAME}_TX:ir

        # starting sdr-shell
        ./sdr-shell

        # exited sdr-shell. So kill all daemons


        killall jackd
        killall sdr-core
        killall usbsoftrock

        exit 0;

        ##################################################################





        On 10-05-31 09:10 AM, Sid Boyce wrote:
        > Thanks Glenn,
        > I see you haven't yet got configured for TX.
        > 73 ... Sid.
        >
        > On 31/05/10 12:07, Glenn VE9GJ wrote:
        >>
        >>
        >> This is for RX only using builtin sound. It does work much better with
        >> an external USB sound. I'll post that tonight.
        >>
        >> 73
        >> Glenn
        >>
        >> glenn@hamnet:~$ jack_lsp -c
        >> system:capture_1
        >> SDR-SHELL_RX:il
        >> system:capture_2
        >> SDR-SHELL_RX:ir
        >> system:playback_1
        >> SDR-SHELL_RX:ol
        >> system:playback_2
        >> SDR-SHELL_RX:or
        >> SDR-SHELL_RX:il
        >> system:capture_1
        >> SDR-SHELL_RX:ir
        >> system:capture_2
        >> SDR-SHELL_RX:ol
        >> system:playback_1
        >> SDR-SHELL_RX:or
        >> system:playback_2
        >>
        >> On 10-05-30 11:55 PM, Sid Boyce wrote:
        >>> Could you post the output of "jack_lsp -c" when it's running.
        >>> 73 ... Sid.
        >>>
        >>> On 31/05/10 00:15, Glenn VE9GJ wrote:
        >>>>
        >>>>
        >>>> Hello
        >>>>
        >>>> I used Alex's fine guide here today to install SDR-Shell on Ubuntu Lucid
        >>>> 10.04 on my Acer Aspire One Netbook. So far I have only used it for RX
        >>>> with a USB Xtall V9.0. I also used a more basic start_rx script.
        >>>> Alex's instructions were written for Karmic 09.10 so I thought I would
        >>>> add the changes I had to make to get it working on Lucid 10.04.
        >>>>
        >>>> The two changes I made were with the liblo0ldbl library and the linux-rt
        >>>> kernel. Look for ***** Start of VE9GJ changes ***** below.
        >>>>
        >>>> 73
        >>>> Glenn VE9GJ
        >>>>
        >>>> ******Alex's fine guide below **************************
        >
      • Sid Boyce
        I only use jackd. pasuspender -- /usr/bin/jackd -m -r -d alsa -Phw:0 -Chw:1 -r$SDR_DEFRATE -p${JACK_BUFFER} -s -n3 & If you don t have pulseaudio running you
        Message 3 of 15 , Jun 1, 2010
          I only use jackd.
          pasuspender -- /usr/bin/jackd -m -r -d alsa -Phw:0 -Chw:1 -r$SDR_DEFRATE
          -p${JACK_BUFFER} -s -n3 &
          If you don't have pulseaudio running you can leave out "pasuspender --".
          I haven't seen it reference jack_load. Were you trying to use the
          command standalone?
          73 ... Sid.

          On 01/06/10 11:57, Glenn VE9GJ wrote:
          >
          >
          > I don't have my 6.3 TX finished yet but I played with jack a bit last
          > night. I can't seem to find the right command to use for jack_load. I
          > always get "Could not load .... intclient = 0 status 0x 1" I also see
          > that jackmp's jack_connect doesn't seem to support the -s [servername]
          > option but jackd supports -n [servername]. To load my USB SB X-Fi into
          > jackd I had to change the -Chw:1 to -Chw1,1
          > I'll have another go at it tonight perhaps.
          >
          > 73 Glenn
          >
          > On 10-05-31 09:10 AM, Sid Boyce wrote:
          >> Thanks Glenn,
          >> I see you haven't yet got configured for TX.
          >> 73 ... Sid.
          >>
          >> On 31/05/10 12:07, Glenn VE9GJ wrote:
          >>>
          >>>
          >>> This is for RX only using builtin sound. It does work much better with
          >>> an external USB sound. I'll post that tonight.
          >>>
          >>> 73
          >>> Glenn
          >>>
          >>> glenn@hamnet:~$ jack_lsp -c
          >>> system:capture_1
          >>> SDR-SHELL_RX:il
          >>> system:capture_2
          >>> SDR-SHELL_RX:ir
          >>> system:playback_1
          >>> SDR-SHELL_RX:ol
          >>> system:playback_2
          >>> SDR-SHELL_RX:or
          >>> SDR-SHELL_RX:il
          >>> system:capture_1
          >>> SDR-SHELL_RX:ir
          >>> system:capture_2
          >>> SDR-SHELL_RX:ol
          >>> system:playback_1
          >>> SDR-SHELL_RX:or
          >>> system:playback_2
          >>>
          >>> On 10-05-30 11:55 PM, Sid Boyce wrote:
          >>>> Could you post the output of "jack_lsp -c" when it's running.
          >>>> 73 ... Sid.
          >>>>
          >>>> On 31/05/10 00:15, Glenn VE9GJ wrote:
          >>>>>
          >>>>>
          >>>>> Hello
          >>>>>
          >>>>> I used Alex's fine guide here today to install SDR-Shell on Ubuntu
          > Lucid
          >>>>> 10.04 on my Acer Aspire One Netbook. So far I have only used it for RX
          >>>>> with a USB Xtall V9.0. I also used a more basic start_rx script.
          >>>>> Alex's instructions were written for Karmic 09.10 so I thought I would
          >>>>> add the changes I had to make to get it working on Lucid 10.04.
          >>>>>
          >>>>> The two changes I made were with the liblo0ldbl library and the
          > linux-rt
          >>>>> kernel. Look for ***** Start of VE9GJ changes ***** below.
          >>>>>
          >>>>> 73
          >>>>> Glenn VE9GJ
          >>>>>
          >>>>> ******Alex's fine guide below **************************
          >>
          >
          >


          --
          Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
          Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
          Specialist, Cricket Coach
          Microsoft Windows Free Zone - Linux used for all Computing Tasks
        • Sid Boyce
          ... Thanks, I shall give it a try on the SR v6.3/Mobo v3.6. I possibly zapped the SR63ng when moving the 80m/40m magnetic loop antenna over from the TS-450S to
          Message 4 of 15 , Jun 1, 2010
            On 02/06/10 02:24, Glenn VE9GJ wrote:
            >
            > I got it working now. The magic line was:

            Thanks, I shall give it a try on the SR v6.3/Mobo v3.6.
            I possibly zapped the SR63ng when moving the 80m/40m magnetic loop
            antenna over from the TS-450S to it as that was the starting point of
            the problem.
            I have to check Q7 and Q8 on the SR63ng as I get no signals on RX now. I
            have some of the larger BS170's used in the SR v6.3 PA that I can
            substitute.
            73 ... Sid.
            --
            Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
            Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
            Specialist, Cricket Coach
            Microsoft Windows Free Zone - Linux used for all Computing Tasks
          • Glenn VE9GJ
            ... I do have pulseaudio running so I have always used pasuspender --. I understood that jackd on top of pulse would cause trouble, never did try though.
            Message 5 of 15 , Jun 2, 2010
              On 10-06-01 10:57 PM, Sid Boyce wrote:
              > I only use jackd.
              > pasuspender -- /usr/bin/jackd -m -r -d alsa -Phw:0 -Chw:1 -r$SDR_DEFRATE
              > -p${JACK_BUFFER} -s -n3&
              > If you don't have pulseaudio running you can leave out "pasuspender --".
              > I haven't seen it reference jack_load. Were you trying to use the
              > command standalone?
              > 73 ... Sid.
              >

              I do have pulseaudio running so I have always used pasuspender --. I
              understood that jackd on top of pulse would cause trouble, never did try
              though. Another option I haven't tried is to kill pulse, start jackd
              and then start pulse again.

              73
              Glenn VE9GJ
            • Sid Boyce
              Just checked and I don t have pulseaudio installed on 10.04 LTS, but it is installed on openSUSE 11.3 Milestone 7 where the only way seems to be to rename
              Message 6 of 15 , Jun 2, 2010
                Just checked and I don't have pulseaudio installed on 10.04 LTS, but it
                is installed on openSUSE 11.3 Milestone 7 where the only way seems to be
                to rename /usr/bin/pulseaudio, then kill it, but that causes sound not
                to work. If I simply kill it, it starts again.

                With openSUSE, based on a post either to this list or MOBOKITS, I
                thought I would try running sdr-shell-rxtx with jackd running without
                pasuspender and it works. It seems alsa 1.0.23, jackd and pulseaudio
                0.9.21 will now happily coexist. I should imagine Ubuntu will get there.
                # fuser -v /dev/snd/*
                USER PID ACCESS COMMAND
                /dev/snd/controlC0: root 2878 F.... jackd
                lancelot 4923 F.... pulseaudio
                lancelot 5072 F.... kmix
                /dev/snd/controlC2: lancelot 4923 F.... pulseaudio
                lancelot 5072 F.... kmix
                /dev/snd/pcmC0D0p: root 2878 F...m jackd
                /dev/snd/pcmC2D0c: root 2878 F...m jackd

                As a side issue, Lief (SM5BSZ) wondered why Ubuntu gets the reputation
                it has and I agree. Building and getting a vanilla kernel to boot is
                something I haven't been able to do, the kernels all oops. I've just
                asked for help on the Kubuntu list as to how you can select a kernel to
                boot as google didn't suggest anything that worked.
                When 2.6.35-rc1 oops'd I had to boot from DVD and alter "default" in
                grub.cfg to get the mainline kernel to boot. Seems like Ubuntu is
                largely a "don't touch anything" distro with life made difficult for
                power users, kernel testers and the like, so when new kernel
                enhancements arrive you can't immediately make use of them - I have
                followed a couple of tutorials including one that purported to tell you
                how to build and deploy 2.634, except it mentioned 2.6.31-? throughout,
                made mention to mkinitrd which does not exist in Ubuntu, so I did
                mkinitramfs - heaven knows if that's what you have to do.
                73 ... Sid.

                On 02/06/10 11:52, Glenn VE9GJ wrote:
                > On 10-06-01 10:57 PM, Sid Boyce wrote:
                >> I only use jackd.
                >> pasuspender -- /usr/bin/jackd -m -r -d alsa -Phw:0 -Chw:1 -r$SDR_DEFRATE
                >> -p${JACK_BUFFER} -s -n3&
                >> If you don't have pulseaudio running you can leave out "pasuspender --".
                >> I haven't seen it reference jack_load. Were you trying to use the
                >> command standalone?
                >> 73 ... Sid.
                >>
                >
                > I do have pulseaudio running so I have always used pasuspender --. I
                > understood that jackd on top of pulse would cause trouble, never did try
                > though. Another option I haven't tried is to kill pulse, start jackd
                > and then start pulse again.
                >
                > 73
                > Glenn VE9GJ
                >
                >



                --
                Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
                Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
                Specialist, Cricket Coach
                Microsoft Windows Free Zone - Linux used for all Computing Tasks
              • Alex
                ... Hi Glenn & Sid, Yes, I can confirm that there is no need to use pasuspender with alsa 1.0.23, jackmp, and pulseaudio 0.9.21 under an experimental kernel in
                Message 7 of 15 , Jun 2, 2010
                  > With openSUSE, based on a post either to this list or MOBOKITS, I
                  > thought I would try running sdr-shell-rxtx with jackd running without
                  > pasuspender and it works. It seems alsa 1.0.23, jackd and pulseaudio
                  > 0.9.21 will now happily coexist. I should imagine Ubuntu will get there.

                  Hi Glenn & Sid,

                  Yes, I can confirm that there is no need to use pasuspender with alsa 1.0.23, jackmp, and pulseaudio 0.9.21 under an experimental kernel in Ubuntu 10.04 LTS:

                  alex@desktop-alex:~$ uname -a
                  Linux desktop-alex 2.6.34-4-generic #11-Ubuntu SMP Tue May 25 21:49:13 UTC 2010 x86_64 GNU/Linux

                  So Ubuntu users can either install the experimental kernel and alsa packages now, or wait for Ubuntu 10.10 :-)

                  73's Alex
                • Michael Heim, KD0AR
                  I got it working, and I have NO idea what I did. I am receiving, and its working quite well. rig tunes, everything works. ________________________________
                  Message 8 of 15 , Jun 2, 2010
                    I got it working, and I have NO idea what I did.

                    I am receiving, and its working quite well.  rig tunes, everything works.
                     

                    Michael Heim
                    ARS KD0AR




                    From: Glenn VE9GJ <ve9gj@...>
                    To: softrock40@yahoogroups.com
                    Sent: Tue, June 1, 2010 8:48:40 PM
                    Subject: Re: [softrock40] Re: Updates to sdr-shell-v2-rxtx - Ubuntu 10.04 install guide (was 09.10)

                     

                    If you start jackd with a -r you won't need a real time kernel if you
                    want to try it out.

                    ie:
                    pasuspender -- /usr/bin/jackd -r -s -dalsa -Phw:0 -Chw:0 -r48000 -p2048 -n3

                    What does aplay -l list?

                    73
                    Glenn VE9GJ

                    On 10-05-31 09:05 AM, Sid Boyce wrote:
                    > If you start jackd with realtime and you are not running a realtime
                    > kernel, it will fail.
                    > Have you tried jackmp? There could be a problem if you have different
                    > versions of jack installed also. I originally had to remove the distro's
                    > jack-0.116 and install jackmp.Then I asked openSUSE to upgrade to jackmp
                    > and that's what I use. On Kubuntu I built and installed jackmp.
                    > 73 ... Sid.
                    >
                    > On 31/05/10 04:51, Michael Heim, KD0AR wrote:
                    >>
                    >>
                    >> Never could get jack to work. Doesn't see the sound cards for some
                    >> reason.
                    >>
                    >> ----------------------------------------------------------
                    >> Michael Heim
                    >>
                    >> ARS KD0AR
                    >> ----------------------------------------------------------
                    >>
                    >>
                    >> ----------------------------------------------------------
                    >> *From:* Sid Boyce<sboyce@...>
                    >> *To:* softrock40@yahoogroups.com
                    >> *Sent:* Sun, May 30, 2010 10:55:34 PM
                    >> *Subject:* Re: [softrock40] Re: Updates to sdr-shell-v2-rxtx - Ubuntu
                    >> 10.04 install guide (was 09.10)
                    >>
                    >>
                    >>
                    >> Could you post the output of "jack_lsp -c" when it's running.
                    >> 73 ... Sid.
                    >>
                    >> On 31/05/10 00:15, Glenn VE9GJ wrote:
                    >>>
                    >>>
                    >>> Hello
                    >>>
                    >>> I used Alex's fine guide here today to install SDR-Shell on Ubuntu Lucid
                    >>> 10.04 on my Acer Aspire One Netbook. So far I have only used it for RX
                    >>> with a USB Xtall V9.0. I also used a more basic start_rx script.
                    >>> Alex's instructions were written for Karmic 09.10 so I thought I would
                    >>> add the changes I had to make to get it working on Lucid 10.04.
                    >>>
                    >>> The two changes I made were with the liblo0ldbl library and the linux-rt
                    >>> kernel. Look for ***** Start of VE9GJ changes ***** below.
                    >>>
                    >>> 73
                    >>> Glenn VE9GJ
                    >>>
                    >>> ******Alex's fine guide below **************************
                    >>>
                    >>> From: Alex<lee188@...<mailto:lee188%40singnet.com.sg>
                    >> <mailto:lee188%40singnet.com.sg>>
                    >>> Date: Sun, 28 Mar 2010 11:15:56 -0000
                    >>> Subject: [softrock40] Re: Updates to sdr-shell-v2-rxtx - Ubuntu 9.10
                    >>> install guide
                    >>>
                    >>> Hi all,
                    >>>
                    >>> The following is a guide to install all the pieces (there are many)
                    >>> needed to get sdr-shell-v2-rxtx working, starting with a fresh Ubuntu
                    >>> 9.10 distribution. It may not be 100% complete/correct but I have just
                    >>> installed all the pieces from a fairly recent fresh Ubuntu 9.10 setup.
                    >>>
                    >>> After installing all the software pieces, you will need to follow the
                    >>> README file instructions in the sdr-shell-v2-rxtx directory.
                    >>>
                    >>> I have created a script, start_tx, to start the sdr-shell in my system.
                    >>> However, you will have to customize the soundcard(s) setup in your own
                    >>> environment to get it working. It is not trivial as there are many
                    >>> parameters to tweak.
                    >>>
                    >>> The installation includes getting a linux-rt kernel installed. You
                    >>> should reboot to run from the linux-rt (real-time) kernel for better
                    >>> sound performance.
                    >>>
                    >>> Alex
                    >>>
                    >>> ==================================================================
                    >>> Installing sdr-shell-v2-rxtx from fresh Ubuntu 9.10 distribution
                    >>>
                    >>> (1) Get needed packages
                    >>>
                    >>> cd ~
                    >>> sudo apt-get install build-essential
                    >>> sudo apt-get install subversion
                    >>> sudo apt-get install hamlib-dev
                    >>> sudo apt-get install qt3-dev-tools
                    >>> sudo apt-get install libsamplerate0-dev
                    >>> sudo apt-get install libasound2-dev
                    >>> sudo apt-get install libfreebob0-dev
                    >>> sudo apt-get install libffado-dev
                    >>> sudo apt-get install libsndfile-dev
                    >>> sudo apt-get install libcelt-dev
                    >>> sudo apt-get install libreadline-dev
                    >>> sudo apt-get install autoconf automake
                    >>> sudo apt-get install manpages-dev
                    >>> sudo apt-get install fftw3 fftw3-dev libgsl0-dev
                    >>>
                    >>> ***** Start of VE9GJ changes *****
                    >>>
                    >>> 09.10: sudo apt-get install liblo0ldbl liblo0-dev
                    >>> 10.04: sudo apt-get install liblo7 liblo-dev
                    >>>
                    >>> RT kernels on Lucid
                    >>>
                    >>> Because there is no RT patch for the 2.6.32 kernel version that was
                    >>> chosen for the 10.04 Release if you install linux-rt from the official
                    >>> 10.04 repositories you will actually get a 2.6.31 kernel from Karmic.
                    >>> This may work fine for you and it may not. I couldn't use it with my
                    >>> netbook as the kernel option mmc_core.removable=0 option is missing in
                    >>> the 2.6.31 kernel. There is however an easy fix for this. The PPA:
                    >>> https://launchpad.net/~bojo42/+archive/rt
                    >> <https://launchpad.net/~bojo42/+archive/rt>
                    >>> <https://launchpad.net/~bojo42/+archive/rt
                    >> <https://launchpad.net/~bojo42/+archive/rt>> contains new rt kernels for
                    >>> 10.04 use. To go this route just add this ppa to your sources.list or
                    >>> use the add-apt-repository.
                    >>>
                    >>> 10.04: sudo add-apt-repository ppa:bojo42/rt
                    >>>
                    >>> Now for 09.10 or 10.04:
                    >>> sudo apt-get install linux-rt
                    >>>
                    >>> ***** End of VE9GJ changes *****
                    >>>
                    >>> (2) Install usbsoftrock
                    >>>
                    >>> Go to softrock40 Yahoo group Files> VK6JBL> usbsoftrock-1.0.1.tar.gz
                    >>> and download
                    >>>
                    >>> Double click on downloaded file to extract usbsoftrock-1.0.1 folder to
                    >>> your home directory.
                    >>>
                    >>> cd ~
                    >>> cd usbsoftrock-1.0.1
                    >>> ./configure
                    >>> make
                    >>> sudo make install
                    >>>
                    >>> (3) Install sdr-shell-v2-rxtx
                    >>>
                    >>> cd ~
                    >>> svn checkout
                    >> http://sdr-shell.googlecode.com/svn/branches/sdr-shell-v2-rxtx/
                    >> <http://sdr-shell.googlecode.com/svn/branches/sdr-shell-v2-rxtx/>
                    >>> cd sdr-shell-v2-rxtx
                    >>> qmake
                    >>> make
                    >>>
                    >>> (4) Install jack2
                    >>>
                    >>> cd ~
                    >>> svn co http://subversion.jackaudio.org/jack/jack2/trunk/jackmp
                    >> <http://subversion.jackaudio.org/jack/jack2/trunk/jackmp>
                    >>> cd jackmp
                    >>> ./waf configure --alsa --firewire --freebob
                    >>> ./waf build
                    >>> sudo ./waf install
                    >>>
                    >>> The following steps are needed to use jack with the real-time kernel
                    >>> scheduler:
                    >>>
                    >>> sudo su -c 'echo @audio - rtprio 99>> /etc/security/limits.conf'
                    >>> sudo su -c 'echo @audio - memlock 250000>> /etc/security/limits.conf'
                    >>> sudo su -c 'echo @audio - nice -10>> /etc/security/limits.conf'
                    >>>
                    >>> sudo usermod -G audio -a<user>
                    >>>
                    >>> Replace<user> by your login_id. The system needs to be rebooted for the
                    >>> changes to take effect.
                    >>>
                    >>> (5) Install dttsp
                    >>>
                    >>> svn co
                    >>>
                    >> https://www.cgran.org/cgran/projects/dttsp/branches/ab2kt/sdr-core/base
                    >> <https://www.cgran.org/cgran/projects/dttsp/branches/ab2kt/sdr-core/base>
                    >>> dttsp-cgran
                    >>> cd dttsp-cgran/src
                    >>> ./bootstrap
                    >>> ./configure
                    >>> make
                    >>> sudo make install
                    >>>
                    >>> ================================================================
                    >>>
                    >>> The following is a copy of my start_tx script
                    >>>
                    >>> ===============================================================
                    >>>
                    >>> #!/bin/bash
                    >>>
                    >>> # define name used in the RMI registry
                    >>> NAME=SDR-SHELL
                    >>> export SDR_DEFRATE=96000
                    >>> export JACK_BUFFER=2048
                    >>> export LD_LIBRARY_PATH=/usr/local/lib
                    >>>
                    >>> # start usbsoftrock daemon
                    >>> echo "starting usbsoftrock..."
                    >>>
                    >>> usbsoftrock -a -d&
                    >>>
                    >>> # start jackd
                    >>> echo "starting jackd ..."
                    >>>
                    >>> #pasuspender -- jackd -s -dalsa -Phw:1 -Chw:1 -r$SDR_DEFRATE
                    >>> -p${JACK_BUFFER} -n3&
                    >>> # problem: cannot start jackd with both capture and playback of my
                    >>> external USB soundcard
                    >>> # so just do capture of the I/Q signal first until this is sorted out
                    >>>
                    >>> pasuspender -- /usr/local/bin/jackd -s -dalsa -Chw:1 -r$SDR_DEFRATE
                    >>> -p${JACK_BUFFER} -n3&
                    >>> sleep 1
                    >>>
                    >>> echo "starting audioadater to add onboard soundcard"
                    >>> /usr/local/bin/jack_load onboard audioadapter
                    >>>
                    >>> sleep 3
                    >>> # start RX DttSP
                    >>> echo "starting DttSP ${NAME}_RX ..."
                    >>> /usr/local/bin/sdr-core --spectrum --metering --client-name=${NAME}_RX
                    >>> --buffsize=${JACK_BUFFER} --ringmult=4 --command-port=19001
                    >>> --spectrum-port=19002 --meter-port=19003&
                    >>>
                    >>> sleep 3
                    >>> # connect receiver
                    >>> echo "connecting receiver ..."
                    >>> /usr/local/bin/jack_connect system:capture_1 ${NAME}_RX:il
                    >>> sleep 2
                    >>> /usr/local/bin/jack_connect system:capture_2 ${NAME}_RX:ir
                    >>> sleep 2
                    >>> /usr/local/bin/jack_connect ${NAME}_RX:ol onboard:playback_1
                    >>> sleep 2
                    >>> /usr/local/bin/jack_connect ${NAME}_RX:or onboard:playback_2
                    >>> sleep 2
                    >>>
                    >>> # start the tx dttsp
                    >>> /usr/local/bin/sdr-core -s -m -v --client-name=${NAME}_TX
                    >>> --spectrum-port=19006 --meter-port=19007 --command-port=19005&
                    >>>
                    >>> # connect transmitter
                    >>> echo "connecting transmitter"
                    >>> sleep 1
                    >>>
                    >>> # external USB sound card don't have playback configured yet with jackd.
                    >>> So don't connect for now.
                    >>> #jack_lsp
                    >>> #/usr/local/bin/jack_connect ${NAME}_TX:ol system:playback_1
                    >>> #/usr/local/bin/jack_connect ${NAME}_TX:or system:playback_2
                    >>> /usr/local/bin/jack_connect onboard:capture_1 ${NAME}_TX:il
                    >>> /usr/local/bin/jack_connect onboard:capture_2 ${NAME}_TX:ir
                    >>>
                    >>> # start sdr-shell
                    >>> ./sdr-shell
                    >>>
                    >>> # exited sdr-shell. So kill all daemons
                    >>>
                    >>> sleep 2
                    >>> sdrpid=`ps -ef|grep sdr-core|head -n1|awk -vORS='' '{print $2}'`
                    >>> echo "Killing sdr-core pid $sdrpid"
                    >>> kill $sdrpid>/dev/null
                    >>>
                    >>> sleep 2
                    >>> sdrpid=`ps -ef|grep sdr-core|head -n1|awk -vORS='' '{print $2}'`
                    >>> echo "Killing sdr-core pid $sdrpid"
                    >>> kill $sdrpid>/dev/null
                    >>>
                    >>> sleep 2
                    >>> jackpid=`ps -ef|grep jackd|head -n1|awk -vORS='' '{print $2}'`
                    >>> echo "Killing jackd pid $sdrpid"
                    >>> kill $jackpid>/dev/null
                    >>>
                    >>> sleep 2
                    >>> usbsoftrockpid=`ps -ef|grep usbsoftrock|head -n1|awk -vORS='' '{print
                    >> $2}'`
                    >>> echo "Killing usbsoftrock pid $usbsoftrockpid"
                    >>> kill $usbsoftrockpid>/dev/null
                    >>>
                    >>> ------------------------------------
                    >>>
                    >>
                    >

                  Your message has been successfully submitted and would be delivered to recipients shortly.