[pulseaudio-discuss] Problem with module-oss
Ken Mandelberg
km at mathcs.emory.edu
Thu May 15 08:46:53 PDT 2008
>Colin Guthrie Wrote
>>> Ken Mandelberg wrote:
>> My overall goal is to run pulseaudio on a Linux Sunray session which has
>> an OSS /dev/dsp. This is kind of a complicated situation, so I am trying
>> to do the equivalent first on a laptop that already has pulse working.
>>
>> On the laptop (Ubuntu 8.04) it works with an alsa sink.
>>
>> However, I changed my default.pa to instead use
>>
>> load-module module-oss device="/dev/dsp" sink_name=output source_name=input
>>
>> I do hear the startup jingle /usr/share/sounds/startup3.wav on login,
>> but I don't know if thats coming from pulse or not. I do see a reference
>> to it in the "info".
>>
>> Anything I then try to "paplay" hangs. I know the /dev/dsp is good
>> because mplayer can use it directly with "-ao oss". I can also cat au
>> files to the /dev/dsp successfully.
>>
>> Below is what pacmd sees with "info", right after login.
>>
>> Any suggestions?
>
> Probably best to run after login:
>
> $ pulseaudio -k (to kill the running daemon: confirm it's stopped with:
> ps aux | grep pulse)
>
> $ pulseaudio -vvv (to run a new server and give lots of nice debug output).
>
> After doing this try paplay again and see what the server says about it
> in it's debug message.
>
> HTHs
>
> Col
>
Ok, I did this. The bottom line is that pulseaudio hangs once paplay
connects with
I: module-oss.c: Trying resume...
D: oss-util.c: capabilities: DUPLEX MMAP REALTIME TRIGGER
The full transcript follows. Can you see why it would hang?
km at flinux:~$ pulseaudio -vvv
I: main.c: Called SUID root and real-time/high-priority scheduling was
requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant
us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the
appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or
increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally
required. If you experience crackling or other sound anomalies, consider
one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now
allowed by policy. Disabling forcibly.
W: pid.c: Stale PID file, overwriting.
I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: This is PulseAudio 0.9.10
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
D: oss-util.c: capabilities: DUPLEX MMAP REALTIME TRIGGER
I: module-oss.c: Device opened in O_RDWR mode.
I: module-oss.c: Input -- 4 fragments of size 4096.
I: module-oss.c: Output -- 4 fragments of size 4096.
D: module-oss.c: Successfully mmap()ed input buffer.
I: source.c: Created source 0 "input" with sample spec "s16le 2ch 44100Hz"
D: module-oss.c: Successfully mmap()ed output buffer.
I: sink.c: Created sink 0 "output" with sample spec "s16le 2ch 44100Hz"
I: source.c: Created source 1 "output.monitor" with sample spec "s16le
2ch 44100Hz"
D: module-oss.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
D: module-oss.c: trigger
D: module-oss.c: trigger: 2
D: module-oss.c: trigger
D: module-oss.c: trigger: 3
I: module.c: Loaded "module-oss" (index: #0; argument:
"device="/dev/dsp" sink_name=output source_name=input").
D: cli-command.c: Checking for existance of
'/usr/lib/pulse-0.9/modules/module-hal-detect.so': success
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device
/org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device
/org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Not loaded device
/org/freedesktop/Hal/devices/pci_8086_2668_sound_card_0_alsa_playback_6
D: module-hal-detect.c: Not loaded device
/org/freedesktop/Hal/devices/pci_8086_2668_sound_card_0_alsa_capture_6
D: module-hal-detect.c: Loading module-alsa-sink with arguments
'device_id=0
sink_name=alsa_output.pci_8086_2668_sound_card_0_alsa_playback_0'
D: alsa-util.c: Trying front:0...
I: alsa-util.c: Couldn't open PCM device front:0: Device or resource busy
D: alsa-util.c: Trying surround40:0...
I: alsa-util.c: Couldn't open PCM device surround40:0: Device or
resource busy
D: alsa-util.c: Trying surround41:0...
I: alsa-util.c: Couldn't open PCM device surround41:0: Device or
resource busy
D: alsa-util.c: Trying surround50:0...
I: alsa-util.c: Couldn't open PCM device surround50:0: Device or
resource busy
D: alsa-util.c: Trying surround51:0...
I: alsa-util.c: Couldn't open PCM device surround51:0: Device or
resource busy
D: alsa-util.c: Trying surround71:0...
I: alsa-util.c: Couldn't open PCM device surround71:0: Device or
resource busy
D: alsa-util.c: Trying hw:0 as last resort...
E: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
E: module.c: Failed to load module "module-alsa-sink" (argument:
"device_id=0
sink_name=alsa_output.pci_8086_2668_sound_card_0_alsa_playback_0"):
initialization failed.
D: module-hal-detect.c: Not loaded device
/org/freedesktop/Hal/devices/pci_8086_2668_sound_card_0_alsa_playback_0
D: module-hal-detect.c: Loading module-alsa-source with arguments
'device_id=0
source_name=alsa_input.pci_8086_2668_sound_card_0_alsa_capture_0'
D: alsa-util.c: Trying front:0...
I: alsa-util.c: Couldn't open PCM device front:0: Device or resource busy
D: alsa-util.c: Trying surround40:0...
I: alsa-util.c: Couldn't open PCM device surround40:0: Device or
resource busy
D: alsa-util.c: Trying surround41:0...
I: alsa-util.c: Couldn't open PCM device surround41:0: Device or
resource busy
D: alsa-util.c: Trying surround50:0...
I: alsa-util.c: Couldn't open PCM device surround50:0: Device or
resource busy
D: alsa-util.c: Trying surround51:0...
I: alsa-util.c: Couldn't open PCM device surround51:0: Device or
resource busy
D: alsa-util.c: Trying surround71:0...
I: alsa-util.c: Couldn't open PCM device surround71:0: Device or
resource busy
D: alsa-util.c: Trying hw:0 as last resort...
E: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
E: module.c: Failed to load module "module-alsa-source" (argument:
"device_id=0
source_name=alsa_input.pci_8086_2668_sound_card_0_alsa_capture_0"):
initialization failed.
D: module-hal-detect.c: Not loaded device
/org/freedesktop/Hal/devices/pci_8086_2668_sound_card_0_alsa_capture_0
D: module-hal-detect.c: Not loaded device
/org/freedesktop/Hal/devices/pci_8086_2668_sound_card_0_alsa_hw_specific_1
D: module-hal-detect.c: Not loaded device
/org/freedesktop/Hal/devices/pci_8086_2668_sound_card_0_alsa_hw_specific_0
D: module-hal-detect.c: Not loaded device
/org/freedesktop/Hal/devices/pci_8086_2668_sound_card_0_alsa_control__1
I: module-hal-detect.c: Loaded 0 modules.
I: module.c: Loaded "module-hal-detect" (index: #1; argument: "").
D: cli-command.c: Checking for existance of
'/usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success
I: module.c: Loaded "module-esound-protocol-unix" (index: #2; argument: "").
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #3; argument: "").
I: module-volume-restore.c: starting with empty ruleset.
I: module.c: Loaded "module-volume-restore" (index: #4; argument: "").
I: module.c: Loaded "module-default-device-restore" (index: #5;
argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #6; argument: "").
D: module-suspend-on-idle.c: Sink output becomes idle.
D: module-suspend-on-idle.c: Source input becomes idle.
D: module-suspend-on-idle.c: Source output.monitor becomes idle.
I: module.c: Loaded "module-suspend-on-idle" (index: #7; argument: "").
D: cli-command.c: Checking for existance of
'/usr/lib/pulse-0.9/modules/module-gconf.so': success
D: cli-command.c: Checking for existance of
'/usr/lib/pulse-0.9/modules/module-x11-publish.so': success
D: module-x11-publish.c: using already loaded auth cookie.
I: module.c: Loaded "module-x11-publish" (index: #8; argument: "").
D: core-subscribe.c: dropped redundant event.
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus,
path=/org/freedesktop/DBus, member=NameAcquired
I: module-suspend-on-idle.c: Source output.monitor idle for too long,
suspending ...
I: module-suspend-on-idle.c: Source input idle for too long, suspending ...
D: module-oss.c: trigger
D: module-oss.c: trigger: 2
I: module-suspend-on-idle.c: Sink output idle for too long, suspending ...
I: module-oss.c: Suspending...
I: module-oss.c: Device suspended...
I: client.c: Created 0 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: protocol-native.c: Enabled SHM for new connection
I: client.c: Client 0 changed name from "Native client (UNIX socket
client)" to "paplay"
I: module-oss.c: Trying resume...
D: oss-util.c: capabilities: DUPLEX MMAP REALTIME TRIGGER
More information about the pulseaudio-discuss
mailing list