• Making OSS sound work.

    From Doug Laidlaw@21:1/5 to All on Sat Jul 21 17:38:33 2018
    I have an app which shows voice from the mic. getting as far as
    pavucontrol, but no further. I have installed aoss and libalsa-oss0.
    From forums, it seems that I need to load the snd* modules as well.
    How do I do this? I am running Mageia, with all its directories ending
    in ".d" to replace readable config files, and with systemd.

    Ah, for the good old user-friendly days!

    Doug.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ivan Shmakov@21:1/5 to All on Sat Jul 21 08:24:23 2018
    Doug Laidlaw <laidlaws@hotkey.net.au> writes:

    I have an app which shows voice from the mic. getting as far as
    pavucontrol, but no further. I have installed aoss and libalsa-oss0.
    From forums, it seems that I need to load the snd* modules as well.

    I've never used aoss myself, but I assume you need either that
    /or/ the modules, not both. Cf. [1].

    [1] The aoss script for OSS emulation // ALSA wiki.
    URI: https://web.archive.org/web/20170826/http://alsa.opensrc.org:80/Aoss

    How do I do this?

    # modprobe -- snd-pcm-oss

    At least then $ mpg123 -o oss -- file.mp3 starts working for me.

    You may also want # modprobe -- snd-mixer-oss.

    [...]

    --
    FSF associate member #7257 http://am-1.org/~ivan/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bit Twister@21:1/5 to Doug Laidlaw on Sat Jul 21 07:11:02 2018
    On Sat, 21 Jul 2018 22:05:19 +1000, Doug Laidlaw wrote:
    On 21/07/18 18:24, Ivan Shmakov wrote:
    Doug Laidlaw <laidlaws@hotkey.net.au> writes:

    > I have an app which shows voice from the mic. getting as far as
    > pavucontrol, but no further. I have installed aoss and libalsa-oss0.
    > From forums, it seems that I need to load the snd* modules as well.

    I've never used aoss myself, but I assume you need either that
    /or/ the modules, not both. Cf. [1].

    [1] The aoss script for OSS emulation // ALSA wiki.
    URI: https://web.archive.org/web/20170826/http://alsa.opensrc.org:80/Aoss

    > How do I do this?

    # modprobe -- snd-pcm-oss

    At least then $ mpg123 -o oss -- file.mp3 starts working for me.

    You may also want # modprobe -- snd-mixer-oss.

    [...]

    Thanks, Ivan. Where do I put that to make it permanent on bootup?


    A quick read from man modprobe would suggest /etc/modprobe.d
    For examples:
    $ ls /etc/modprobe.d
    00_modprobe.conf blacklist-compat.conf lockd.conf
    01_mga-config.conf blacklist-mga.conf snd-oss.conf
    20_xx__custom.conf ipw-no-associate.conf visor.conf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Doug Laidlaw@21:1/5 to Ivan Shmakov on Sat Jul 21 22:05:19 2018
    On 21/07/18 18:24, Ivan Shmakov wrote:
    Doug Laidlaw <laidlaws@hotkey.net.au> writes:

    > I have an app which shows voice from the mic. getting as far as
    > pavucontrol, but no further. I have installed aoss and libalsa-oss0.
    > From forums, it seems that I need to load the snd* modules as well.

    I've never used aoss myself, but I assume you need either that
    /or/ the modules, not both. Cf. [1].

    [1] The aoss script for OSS emulation // ALSA wiki.
    URI: https://web.archive.org/web/20170826/http://alsa.opensrc.org:80/Aoss

    > How do I do this?

    # modprobe -- snd-pcm-oss

    At least then $ mpg123 -o oss -- file.mp3 starts working for me.

    You may also want # modprobe -- snd-mixer-oss.

    [...]

    Thanks, Ivan. Where do I put that to make it permanent on bootup?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ivan Shmakov@21:1/5 to All on Sat Jul 21 12:24:50 2018
    Bit Twister <BitTwister@mouse-potato.com> writes:
    On Sat, 21 Jul 2018 22:05:19 +1000, Doug Laidlaw wrote:
    On 21/07/18 18:24, Ivan Shmakov wrote:

    [...]

    # modprobe -- snd-pcm-oss

    At least then $ mpg123 -o oss -- file.mp3 starts working for me.

    You may also want # modprobe -- snd-mixer-oss.

    Thanks, Ivan. Where do I put that to make it permanent on bootup?

    A quick read from man modprobe would suggest /etc/modprobe.d

    For examples:

    $ ls /etc/modprobe.d
    00_modprobe.conf blacklist-compat.conf lockd.conf
    01_mga-config.conf blacklist-mga.conf snd-oss.conf
    20_xx__custom.conf ipw-no-associate.conf visor.conf

    IMO, these files are supposed to hold options passed to modules
    when they are loaded; or if a module should be prevented from
    loading ("blacklisted.")

    Whether the module gets loaded at all is a different matter
    altogether.

    --
    FSF associate member #7257 http://am-1.org/~ivan/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bit Twister@21:1/5 to Ivan Shmakov on Sat Jul 21 08:00:58 2018
    On Sat, 21 Jul 2018 12:24:50 +0000, Ivan Shmakov wrote:
    Bit Twister <BitTwister@mouse-potato.com> writes:
    On Sat, 21 Jul 2018 22:05:19 +1000, Doug Laidlaw wrote:
    On 21/07/18 18:24, Ivan Shmakov wrote:

    [...]

    # modprobe -- snd-pcm-oss

    At least then $ mpg123 -o oss -- file.mp3 starts working for me.

    You may also want # modprobe -- snd-mixer-oss.

    Thanks, Ivan. Where do I put that to make it permanent on bootup?

    A quick read from man modprobe would suggest /etc/modprobe.d

    For examples:

    $ ls /etc/modprobe.d
    00_modprobe.conf blacklist-compat.conf lockd.conf
    01_mga-config.conf blacklist-mga.conf snd-oss.conf
    20_xx__custom.conf ipw-no-associate.conf visor.conf

    IMO, these files are supposed to hold options passed to modules
    when they are loaded; or if a module should be prevented from
    loading ("blacklisted.")

    Whether the module gets loaded at all is a different matter
    altogether.

    I believe you are correct, so I'll guess /etc/modprobe.preload.d/
    would be a better choice for getting the module loaded.

    Of course if the OP was to get loaded, this may not help
    $ cat /etc/modprobe.d/snd-oss.conf
    # We need to ensure that no ALSA OSS compatibility modules are loaded so
    # we can use osspd easily
    blacklist snd_pcm_oss
    blacklist snd_mixer_oss
    blacklist snd_seq_oss

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Doug Laidlaw@21:1/5 to Bit Twister on Sat Jul 21 22:31:31 2018
    On 21/07/18 22:11, Bit Twister wrote:
    Thanks, Ivan. Where do I put that to make it permanent on bootup?

    A quick read from man modprobe would suggest /etc/modprobe.d
    For examples:
    $ ls /etc/modprobe.d
    00_modprobe.conf blacklist-compat.conf lockd.conf
    01_mga-config.conf blacklist-mga.conf snd-oss.conf
    20_xx__custom.conf ipw-no-associate.conf visor.conf

    I seem to have the syntax for those files wrong, and anyway, the direct modprobe commands didn't do what I want. It sounds as though I am
    hunting for the wrong remedy.

    Doug.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ivan Shmakov@21:1/5 to All on Sat Jul 21 12:15:55 2018
    Doug Laidlaw <laidlaws@hotkey.net.au> writes:
    On 21/07/18 18:24, Ivan Shmakov wrote:

    [...]

    # modprobe -- snd-pcm-oss

    At least then $ mpg123 -o oss -- file.mp3 starts working for me.

    You may also want # modprobe -- snd-mixer-oss.

    Thanks, Ivan. Where do I put that to make it permanent on bootup?

    At least on Debian-based systems, there's the /etc/modules file
    which names the modules to load on bootup. Alternatively, there
    may be an rc.local file somewhere in /etc which is a program in
    shell that runs on every boot.

    --
    FSF associate member #7257 http://am-1.org/~ivan/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David W. Hodgins@21:1/5 to Ivan Shmakov on Sat Jul 21 11:05:13 2018
    On Sat, 21 Jul 2018 08:24:50 -0400, Ivan Shmakov <ivan@siamics.net> wrote:
    IMO, these files are supposed to hold options passed to modules
    when they are loaded; or if a module should be prevented from
    loading ("blacklisted.")

    And in this particular case, on a Mageia 6 x86_64 system ...
    $ cat /etc/modprobe.d/snd-oss.conf
    # We need to ensure that no ALSA OSS compatibility modules are loaded so
    # we can use osspd easily
    blacklist snd_pcm_oss
    blacklist snd_mixer_oss
    blacklist snd_seq_oss

    The osspd daemon is in the ossp package, which has the description ...
    OSS Proxy Daemon is Linux userland OSS sound device (/dev/[a]dsp
    and /dev/mixer) implementation using CUSE. Currently it supports
    forwarding OSS sound streams to PulseAudio and ALSA.

    $ systemctl -a status osspd.service
    should show the service is active (running)

    $ ll /dev/*dsp*
    crw-rw----+ 1 root audio 14, 12 Jul 16 21:31 /dev/adsp
    crw-rw----+ 1 root audio 14, 3 Jul 16 21:31 /dev/dsp

    With those devices present, oss should be working without the need
    to load the snd_*_oss modules.

    Regards, Dave Hodgins

    --
    Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
    email replies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Doug Laidlaw@21:1/5 to David W. Hodgins on Sun Jul 22 04:36:57 2018
    On 22/07/18 01:05, David W. Hodgins wrote:
    On Sat, 21 Jul 2018 08:24:50 -0400, Ivan Shmakov <ivan@siamics.net> wrote:
        IMO, these files are supposed to hold options passed to modules
        when they are loaded; or if a module should be prevented from
        loading ("blacklisted.")

    And in this particular case, on a Mageia 6 x86_64 system ...
    $ cat /etc/modprobe.d/snd-oss.conf
    # We need to ensure that no ALSA OSS compatibility modules are loaded so
    # we can use osspd easily
    blacklist snd_pcm_oss
    blacklist snd_mixer_oss
    blacklist snd_seq_oss

    The osspd daemon is in the ossp package, which has the description ...
    OSS Proxy Daemon is Linux userland OSS sound device (/dev/[a]dsp
    and /dev/mixer) implementation using CUSE. Currently it supports
    forwarding OSS sound streams to PulseAudio and ALSA.

    $ systemctl -a status osspd.service
    should show the service is active (running)

    $ ll /dev/*dsp*
    crw-rw----+ 1 root audio 14, 12 Jul 16 21:31 /dev/adsp
    crw-rw----+ 1 root audio 14,  3 Jul 16 21:31 /dev/dsp

    With those devices present, oss should be working without the need
    to load the snd_*_oss modules.

    Regards, Dave Hodgins

    Thanks Dave. I installed the package; now I need to undo my fumbling.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Doug Laidlaw@21:1/5 to Doug Laidlaw on Sun Jul 22 05:18:28 2018
    On 22/07/18 04:36, Doug Laidlaw wrote:
    Thanks Dave.  I installed the package; now I need to undo my fumbling.

    There is a good description of osspd at

    https://github.com/libfuse/osspd

    It is a bit technical, but gives plenty of explanations of technical
    concepts. It does say that osspd must be loaded first, so my own
    efforts need to be removed.

    Doug.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David W. Hodgins@21:1/5 to Doug Laidlaw on Sat Jul 21 16:54:23 2018
    On Sat, 21 Jul 2018 14:36:57 -0400, Doug Laidlaw <laidlaws@hotkey.net.au> wrote:

    The osspd daemon is in the ossp package, which has the description ...
    Thanks Dave. I installed the package; now I need to undo my fumbling.

    Made me curious why it was installed in my system, as it's only required
    by the packages hxtools-sound and plopp, neither of which I have installed.

    Found it.
    $ rpm -q --whatrecommends ossp
    wmix-3.2-7.mga6
    wmsmixer-0.5.1-7.mga6

    I have both of those packages installed.

    $ urpmq --whatrequires-recursive wmsmixer|sort -u
    task-windowmaker
    task-wmdockapps
    wmsmixer

    So I have it on my system as I have all of the available desktop
    environments installed on my system.

    $ rpm -q -f /usr/share/xsessions/*|sort -u|wc -l
    26

    I'm recommending to the packagers that it be changed to be required by
    the pulseaudio package and alsa packages. https://bugs.mageia.org/show_bug.cgi?id=23337

    Regards, Dave Hodgins

    --
    Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
    email replies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Cox@21:1/5 to Doug Laidlaw on Sun Aug 5 17:23:45 2018
    On 07/21/2018 02:38 AM, Doug Laidlaw wrote:
    I have an app which shows voice from the mic. getting as far as pavucontrol, but
    no further. I have installed aoss and libalsa-oss0. From forums, it seems that
    I need to load the snd* modules as well. How do I do this? I am running Mageia,
    with all its directories ending in ".d" to replace readable config files, and with systemd.

    Ah, for the good old user-friendly days!

    Doug.

    padsp program-name

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)