osspd doesn't work with 13.10

Asked by Tong Sun on 2013-12-22

Hi,

As reported in http://askubuntu.com/questions/361711/osspd-aoss-padsp-dont-work-with-13-10
I found that osspd doesn't work with Ubuntu 13.10 Saucy.

I'm sure it is Ubuntu 13.10's problem because I also have Ubuntu 13.04 on this very same machine, and it works fine. Here is my Ubuntu 13.04's info:

$ uname -rsm
Linux 3.8.0-19-generic x86_64

$ cat /proc/version
Linux version 3.8.0-19-generic (buildd@allspice) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #30-Ubuntu SMP Wed May 1 16:35:23 UTC 2013

And here is my Ubuntu 13.10's info:

$ uname -rsm
Linux 3.11.0-13-generic x86_64

$ cat /proc/version
Linux version 3.11.0-13-generic (buildd@roseapple) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) ) #20-Ubuntu SMP Wed Oct 23 07:38:26 UTC 2013

Here is how I tested:

$ echo 0z0z > /dev/dsp
bash: /dev/dsp: Input/output error

Restarting osspd won't work:

$ sudo service osspd restart
 * Restarting OSS Proxy Daemon osspd [ OK ]

Rebooting my machine won't work either.

My *PaulsAudio works fine*.

Didn't test padsp or aoss because I'm not sure if they work with my Ubuntu 13.04, and it is already reported not working.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu osspd Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

I suggest you report a bug

Andry (ap1213) said : #2

Hi!
I have same problem.

But I spent some time researching the problem and found as many as three solutions for the osspd package.

1. Using wrapper to execute "eval `pax11publish -i`" before running ossp-padsp (slave process of osspd)

2. Adding the predefined unix socket to user's pulse server (i.e. "load-module module-native-protocol-unix auth-anonymous=1 socket=/tmp/pulse-socket") and using "default-server = unix:/tmp/pulse-socket" in "/root/.config/pulse/client.conf". (in my opinion this is the best solution now).

3. Reworking source code of ossp-padsp.c to call function pa_context_connect() with server's name "unix:/run/user/<USERID>/pulse/native" (I can get USERID easily). Or using combination with predefined unix socket (as above) and applying it as pulse server name in pa_context_connect().

I hope the developers of pulseaudio or Xubuntu will solve this problem in the next versions.
The sourse is https://lists.freedesktop.org/archives/pulseaudio-discuss/2019-November/031495.html.

Andry (ap1213) said : #3

PS :)
The source for the 2nd solution is https://wiki.archlinux.org/index.php/PulseAudio/Examples
see "Allowing multiple users to use PulseAudio at the same time".

Can you help with this problem?

Provide an answer of your own, or ask Tong Sun for more information if necessary.

To post a message you must log in.