[solved] xoscope not working with alsa in antiX 19

Forum Forums New users New Users and General Questions [solved] xoscope not working with alsa in antiX 19

  • This topic has 6 replies, 2 voices, and was last updated Jan 22-5:04 pm by anticapitalista.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #75637
    Member
    Robin

      The oscilloscope doesn’t “see” the alsa sound devices, so you simply can’t analyze anything.

      This is a known and already fixed bug, but the fix didn’t make its way into the repos antiX 19 uses:

      xoscope has been compiled without alsa support

      This was fixed in Ubuntu [1], but the patch never made it to Debian.

      We believe that the bug you reported is fixed in the latest version of
      xoscope, which is due to be installed in the Debian FTP archive.

      The debian bugtracker page says this bug is fixed in 2.2-2 only, and they say it should be present, but this version doesn’t show up in apt:

      $ apt-cache policy xoscope
      xoscope:
        Installiert:           2.2-1+b1
        Installationskandidat: 2.2-1+b1
        Versionstabelle:
       *** 2.2-1+b1 500
              500 http://ftp.de.debian.org/debian buster/main i386 Packages
              100 /var/lib/dpkg/status

      So what should I do to get the functioning version in antiX 19 ? (I do know, antiX 21 comes with xoscope ver. 2.2-3 already, but it will take some more time to migrate everything needed to 21 before I can use the new antix everyday. Until then I’ll have to use the oscilloscope in antix 19.)

      • This topic was modified 1 year, 3 months ago by anticapitalista. Reason: solved

      Windows is like a submarine. Open a window and serious problems will start.

      #75647
      Forum Admin
      anticapitalista
        Helpful
        Up
        0
        ::

        Try the deb here and let me know – it is backported from Debian 11

        https://download.tuxfamily.org/antix/releases/

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

        #75649
        Member
        Robin
          Helpful
          Up
          0
          ::

          Many thanks @anticapitalista!

          I have installed the i386 version for this 686 cpu:

          $ sudo apt-get install '/media/_daten3/2022/antiX/xoscope/xoscope_2.2-3.0antix1_i386.deb'
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.       
          Statusinformationen werden eingelesen.... Fertig
          Hinweis: »xoscope« wird an Stelle von »/media/_daten3/2022/antiX/xoscope/xoscope_2.2-3.0antix1_i386.deb« gewählt.
          Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
            libvulkan1
          Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
          Die folgenden Pakete werden aktualisiert (Upgrade):
            xoscope
          1 aktualisiert, 0 neu installiert, 0 zu entfernen und 12 nicht aktualisiert.
          Es müssen noch 0 B von 135 kB an Archiven heruntergeladen werden.
          Nach dieser Operation werden 2.048 B Plattenplatz zusätzlich benutzt.
          Holen:1 /media/_daten3/2022/antiX/xoscope/xoscope_2.2-3.0antix1_i386.deb xoscope i386 2.2-3.0antix1 [135 kB]
          (Lese Datenbank ... 233969 Dateien und Verzeichnisse sind derzeit installiert.)
          Vorbereitung zum Entpacken von .../xoscope_2.2-3.0antix1_i386.deb ...
          Entpacken von xoscope (2.2-3.0antix1) über (2.2-1+b1) ...
          xoscope (2.2-3.0antix1) wird eingerichtet ...
          Trigger für desktop-file-utils (0.23-4) werden verarbeitet ...
          Trigger für mime-support (3.62) werden verarbeitet ...
          Trigger für man-db (2.8.5-2) werden verarbeitet ...
          Writing Menu: fluxbox
          Writing Menu: icewm
          Writing Menu: jwm

          Everything looks fine during install, program starts up fine, and the ALSA device is present for selection in menu now.

          Nevertheless, I didn’ get it to work still, due to an error message in its display:

          snd_pcm_hw_params_set_format() failed
          Das Argument ist ungültig.

          Looks like there is some unknown missing dependency still, or a kind of version incompatibility. The translation of the message above reads “The argument is invalid”. Maybe I can find out what this exactly means.

          But at least this new version has alsa support, so it is generally usable in antiX.

          Many thanks again, also for your really quick response!

          Robin

          Windows is like a submarine. Open a window and serious problems will start.

          #75650
          Forum Admin
          anticapitalista
            Helpful
            Up
            0
            ::

            antiX-21 version seems to work.
            It brings in these dependencies.

            The following NEW packages will be installed:
              libboost-program-options1.74.0 libcomedi0 libgsl25 libgslcblas0 libgtkdatabox0 xoscope

            I’ll see if it works on antiX-19 – back in a jiffy.

            Added: works ok on 64 bit and 32 bit (frugal install)

            Attachments:

            Philosophers have interpreted the world in many ways; the point is to change it.

            antiX with runit - leaner and meaner.

            #75653
            Member
            Robin
              Helpful
              Up
              0
              ::

              Checked the dependencies you pointed out:

              $ apt-cache policy libboost-program-options1.74.0
              libboost-program-options1.74.0:
                Installiert:           (keine)
                Installationskandidat: 1.74.0-8~bpo10+1
                Versionstabelle:
                   1.74.0-8~bpo10+1 100
                      100 http://deb.debian.org/debian buster-backports/main i386 Packages
              
              $ apt-cache policy libcomedi0
              libcomedi0:
                Installiert:           0.11.0-1
                Installationskandidat: 0.11.0-1
                Versionstabelle:
               *** 0.11.0-1 500
                      500 http://ftp.de.debian.org/debian buster/main i386 Packages
                      100 /var/lib/dpkg/status
              
              $ apt-cache policy libgsl25
              N: Paket libgsl25 kann nicht gefunden werden.
              
              $ apt-cache policy libgslcblas0
              libgslcblas0:
                Installiert:           2.5+dfsg-6
                Installationskandidat: 2.5+dfsg-6
                Versionstabelle:
               *** 2.5+dfsg-6 500
                      500 http://ftp.de.debian.org/debian buster/main i386 Packages
                      100 /var/lib/dpkg/status
              
              $ apt-cache policy libgtkdatabox0
              libgtkdatabox0:
                Installiert:           1:0.9.3.1-1
                Installationskandidat: 1:0.9.3.1-1
                Versionstabelle:
               *** 1:0.9.3.1-1 500
                      500 http://ftp.de.debian.org/debian buster/main i386 Packages
                      100 /var/lib/dpkg/status
              
              $ apt-cache policy xoscope
              xoscope:
                Installiert:           2.2-3.0antix1
                Installationskandidat: 2.2-3.0antix1
                Versionstabelle:
               *** 2.2-3.0antix1 100
                      100 /var/lib/dpkg/status
                   2.2-1+b1 500
                      500 http://ftp.de.debian.org/debian buster/main i386 Packages

              Installed libboost-program-options1.74.0 but didn’t make any difference. Same error message still when selecting ALSA as source.

              $ sudo apt-get install libboost-program-options1.74.0
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.       
              Statusinformationen werden eingelesen.... Fertig
              Die folgenden NEUEN Pakete werden installiert:
                libboost-program-options1.74.0
              0 aktualisiert, 1 neu installiert, 0 zu entfernen und 12 nicht aktualisiert.
              Es müssen 366 kB an Archiven heruntergeladen werden.
              Nach dieser Operation werden 2.526 kB Plattenplatz zusätzlich benutzt.
              Holen:1 http://deb.debian.org/debian buster-backports/main i386 libboost-program-options1.74.0 i386 1.74.0-8~bpo10+1 [366 kB]
              Es wurden 366 kB in 1 s geholt (564 kB/s).         
              Vormals nicht ausgewähltes Paket libboost-program-options1.74.0:i386 wird gewählt.
              (Lese Datenbank ... 233967 Dateien und Verzeichnisse sind derzeit installiert.)
              Vorbereitung zum Entpacken von .../libboost-program-options1.74.0_1.74.0-8~bpo10+1_i386.deb ...
              Entpacken von libboost-program-options1.74.0:i386 (1.74.0-8~bpo10+1) ...
              libboost-program-options1.74.0:i386 (1.74.0-8~bpo10+1) wird eingerichtet ...
              Trigger für libc-bin (2.28-10) werden verarbeitet ...

              The single additional package not present now is libgsl25 which simply doesn’t seem to exist. No idea whether it would work if it was present.

              (For the records: I’m running antiX full 32bit Live persistent, and these are the audio devices present:)

              $ arecord --list-devices
              **** Liste der Hardware-Geräte (CAPTURE) ****
              Karte 0: Intel [HDA Intel], Gerät 0: ALC880 Analog [ALC880 Analog]
                Sub-Geräte: 1/1
                Sub-Gerät #0: subdevice #0
              Karte 0: Intel [HDA Intel], Gerät 1: ALC880 Digital [ALC880 Digital]
                Sub-Geräte: 1/1
                Sub-Gerät #0: subdevice #0
              Karte 0: Intel [HDA Intel], Gerät 2: ALC880 Alt Analog [ALC880 Alt Analog]
                Sub-Geräte: 2/2
                Sub-Gerät #0: subdevice #0
                Sub-Gerät #1: subdevice #1
              Karte 0: Intel [HDA Intel], Gerät 6: Si3054 Modem [Si3054 Modem]
                Sub-Geräte: 1/1
                Sub-Gerät #0: subdevice #0
              Karte 1: SAA7134 [SAA7134], Gerät 0: SAA7134 PCM [SAA7134 PCM]
                Sub-Geräte: 1/1
                Sub-Gerät #0: subdevice #0
              Karte 2: Loopback [Loopback], Gerät 0: Loopback PCM [Loopback PCM]
                Sub-Geräte: 8/8
                Sub-Gerät #0: subdevice #0
                Sub-Gerät #1: subdevice #1
                Sub-Gerät #2: subdevice #2
                Sub-Gerät #3: subdevice #3
                Sub-Gerät #4: subdevice #4
                Sub-Gerät #5: subdevice #5
                Sub-Gerät #6: subdevice #6
                Sub-Gerät #7: subdevice #7
              Karte 2: Loopback [Loopback], Gerät 1: Loopback PCM [Loopback PCM]
                Sub-Geräte: 8/8
                Sub-Gerät #0: subdevice #0
                Sub-Gerät #1: subdevice #1
                Sub-Gerät #2: subdevice #2
                Sub-Gerät #3: subdevice #3
                Sub-Gerät #4: subdevice #4
                Sub-Gerät #5: subdevice #5
                Sub-Gerät #6: subdevice #6
                Sub-Gerät #7: subdevice #7
              
              $ aplay --list-devices
              **** Liste der Hardware-Geräte (PLAYBACK) ****
              Karte 0: Intel [HDA Intel], Gerät 0: ALC880 Analog [ALC880 Analog]
                Sub-Geräte: 0/1
                Sub-Gerät #0: subdevice #0
              Karte 0: Intel [HDA Intel], Gerät 1: ALC880 Digital [ALC880 Digital]
                Sub-Geräte: 1/1
                Sub-Gerät #0: subdevice #0
              Karte 0: Intel [HDA Intel], Gerät 6: Si3054 Modem [Si3054 Modem]
                Sub-Geräte: 1/1
                Sub-Gerät #0: subdevice #0
              Karte 2: Loopback [Loopback], Gerät 0: Loopback PCM [Loopback PCM]
                Sub-Geräte: 7/8
                Sub-Gerät #0: subdevice #0
                Sub-Gerät #1: subdevice #1
                Sub-Gerät #2: subdevice #2
                Sub-Gerät #3: subdevice #3
                Sub-Gerät #4: subdevice #4
                Sub-Gerät #5: subdevice #5
                Sub-Gerät #6: subdevice #6
                Sub-Gerät #7: subdevice #7
              Karte 2: Loopback [Loopback], Gerät 1: Loopback PCM [Loopback PCM]
                Sub-Geräte: 8/8
                Sub-Gerät #0: subdevice #0
                Sub-Gerät #1: subdevice #1
                Sub-Gerät #2: subdevice #2
                Sub-Gerät #3: subdevice #3
                Sub-Gerät #4: subdevice #4
                Sub-Gerät #5: subdevice #5
                Sub-Gerät #6: subdevice #6
                Sub-Gerät #7: subdevice #7

              Researching deeper later this evening.

              Windows is like a submarine. Open a window and serious problems will start.

              #75826
              Member
              Robin
                Helpful
                Up
                0
                ::

                Reason found. My ALSA configuration was set to wrong sampling rate: xoscope expects 44,1 kHz invariably, as described in its manpages, while my sound card and the respective ALSA device was running on 48 kHz by default. Had to edit asoundrc present within my home folder, to force the soundcard to run on 44,1 kHz only. After this modification the new alsa-enabled version of xoscope runs fine here also. For the records: Complete reference for asoundrc file can be found at alsa-project.

                Many thanks again, @anticapitalista , you might want to set this thread to “solved” now.

                Btw, (since I don’t have any insight in the labyrinthine pathways of package management): Will the antiX 19 repo point to the bugfixed version , or do other users also need to install manually from your link above to have it working in antiX with alsa henceforth?

                Windows is like a submarine. Open a window and serious problems will start.

                #75827
                Forum Admin
                anticapitalista
                  Helpful
                  Up
                  0
                  ::

                  I’ll upload the debs to the repos and mark the post as solved.

                  Philosophers have interpreted the world in many ways; the point is to change it.

                  antiX with runit - leaner and meaner.

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.