You are not logged in.

#1 2014-09-12 09:54:14

willwill
Member
Registered: 2014-09-12
Posts: 1

module-x11-publish stops pulseaudio

My chromium on minimal openbox doesn't have audio. Everything is not muted in alsamixer.

I tried checking for pulseaudio and it is not running. I then tried start-pulseaudio-x11 and pulse doesn't start. I tried /usr/bin/pulseaudio --start --daemonize=false -v and pulse is running normally. I then run the next command in start-pulseaudio-x11, /usr/bin/pactl load-module module-x11-publish "display=:0" and pulseaudio stopped.

Logs from pulseaudio:

I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: Permission denied
I: [pulseaudio] main.c: This is PulseAudio 5.0
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 7d5308a7a0c346b1a0195f721119bff8.
I: [pulseaudio] main.c: Using runtime directory /home/bid//.config/pulse/7d5308a7a0c346b1a0195f721119bff8-runtime.
I: [pulseaudio] main.c: Using state directory /home/bid//.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-5.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
I: [pulseaudio] main.c: Fresh high-resolution timers available! Bon appetit!
I: [pulseaudio] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2
I: [pulseaudio] svolume_mmx.c: Initialising MMX optimized volume functions.
I: [pulseaudio] remap_mmx.c: Initialising MMX optimized remappers.
I: [pulseaudio] svolume_sse.c: Initialising SSE2 optimized volume functions.
I: [pulseaudio] remap_sse.c: Initialising SSE2 optimized remappers.
I: [pulseaudio] sconv_sse.c: Initialising SSE2 optimized conversions.
I: [pulseaudio] svolume_orc.c: Initialising ORC optimized volume functions.
I: [pulseaudio] module-device-restore.c: Successfully opened database file '/home/bid/.config/pulse/7d5308a7a0c346b1a0195f721119bff8-device-volumes'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #0; argument: "").
I: [pulseaudio] module-stream-restore.c: Successfully opened database file '/home/bid/.config/pulse/7d5308a7a0c346b1a0195f721119bff8-stream-volumes'.
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #1; argument: "").
I: [pulseaudio] module-card-restore.c: Successfully opened database file '/home/bid/.config/pulse/7d5308a7a0c346b1a0195f721119bff8-card-database'.
I: [pulseaudio] module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #3; argument: "").
I: [pulseaudio] module.c: Loaded "module-switch-on-port-available" (index: #4; argument: "").
I: [pulseaudio] module-udev-detect.c: Found 1 cards.
I: [pulseaudio] module.c: Loaded "module-udev-detect" (index: #5; argument: "").
I: [pulseaudio] module.c: Loaded "module-jackdbus-detect" (index: #6; argument: "channels=2").
I: [pulseaudio] module.c: Loaded "module-bluetooth-policy" (index: #7; argument: "").
I: [pulseaudio] module.c: Loaded "module-bluez5-discover" (index: #9; argument: "").
I: [pulseaudio] module.c: Loaded "module-bluetooth-discover" (index: #8; argument: "").
I: [pulseaudio] module.c: Loaded "module-esound-protocol-unix" (index: #10; argument: "").
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #11; argument: "").
I: [pulseaudio] module.c: Loaded "module-gconf" (index: #12; argument: "").
I: [pulseaudio] module-default-device-restore.c: Saved default sink 'auto_null' not existent, not restoring default sink setting.
I: [pulseaudio] module-default-device-restore.c: Saved default source 'auto_null.monitor' not existent, not restoring default source setting.
I: [pulseaudio] module.c: Loaded "module-default-device-restore" (index: #13; argument: "").
I: [pulseaudio] module.c: Loaded "module-rescue-streams" (index: #14; argument: "").
I: [pulseaudio] sink.c: Created sink 0 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c:     device.description = "Dummy Output"
I: [pulseaudio] sink.c:     device.class = "abstract"
I: [pulseaudio] sink.c:     device.icon_name = "audio-card"
I: [pulseaudio] source.c: Created source 0 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of Dummy Output"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     device.icon_name = "audio-input-microphone"
I: [pulseaudio] module.c: Loaded "module-null-sink" (index: #16; argument: "sink_name=auto_null sink_properties='device.description="Dummy Output"'").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #15; argument: "").
I: [pulseaudio] module.c: Loaded "module-intended-roles" (index: #17; argument: "").
I: [pulseaudio] module.c: Loaded "module-suspend-on-idle" (index: #18; argument: "").
I: [pulseaudio] module.c: Loaded "module-console-kit" (index: #19; argument: "").
I: [pulseaudio] module.c: Loaded "module-systemd-login" (index: #20; argument: "").
I: [pulseaudio] module.c: Loaded "module-position-event-sounds" (index: #21; argument: "").
I: [pulseaudio] module.c: Loaded "module-role-cork" (index: #22; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-heuristics" (index: #23; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-apply" (index: #24; argument: "").
I: [pulseaudio] main.c: Daemon startup complete.
E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
I: [pulseaudio] module-suspend-on-idle.c: Sink auto_null idle for too long, suspending ...
I: [pulseaudio] client.c: Created 0 "Native client (UNIX socket client)"
I: [pulseaudio] protocol-native.c: Got credentials: uid=1000 gid=1001 success=1
I: [pulseaudio] module.c: Loaded "module-x11-publish" (index: #25; argument: "display=:0").
I: [pulseaudio] client.c: Freed 0 "pactl"
I: [pulseaudio] protocol-native.c: Connection died.
I: [pulseaudio] core.c: We are idle, quitting...
I: [pulseaudio] main.c: Daemon shutdown initiated.
I: [pulseaudio] module.c: Unloading "module-x11-publish" (index: #25).
I: [pulseaudio] module.c: Unloaded "module-x11-publish" (index: #25).
I: [pulseaudio] module.c: Unloading "module-filter-apply" (index: #24).
I: [pulseaudio] module.c: Unloaded "module-filter-apply" (index: #24).
I: [pulseaudio] module.c: Unloading "module-filter-heuristics" (index: #23).
I: [pulseaudio] module.c: Unloaded "module-filter-heuristics" (index: #23).
I: [pulseaudio] module.c: Unloading "module-role-cork" (index: #22).
I: [pulseaudio] module.c: Unloaded "module-role-cork" (index: #22).
I: [pulseaudio] module.c: Unloading "module-position-event-sounds" (index: #21).
I: [pulseaudio] module.c: Unloaded "module-position-event-sounds" (index: #21).
I: [pulseaudio] module.c: Unloading "module-systemd-login" (index: #20).
I: [pulseaudio] module.c: Unloaded "module-systemd-login" (index: #20).
I: [pulseaudio] module.c: Unloading "module-console-kit" (index: #19).
I: [pulseaudio] module.c: Unloaded "module-console-kit" (index: #19).
I: [pulseaudio] module.c: Unloading "module-suspend-on-idle" (index: #18).
I: [pulseaudio] module.c: Unloaded "module-suspend-on-idle" (index: #18).
I: [pulseaudio] module.c: Unloading "module-intended-roles" (index: #17).
I: [pulseaudio] module.c: Unloaded "module-intended-roles" (index: #17).
I: [pulseaudio] module.c: Unloading "module-null-sink" (index: #16).
I: [pulseaudio] sink.c: Freeing sink 0 "auto_null"
I: [pulseaudio] source.c: Freeing source 0 "auto_null.monitor"
I: [pulseaudio] module.c: Unloaded "module-null-sink" (index: #16).
I: [pulseaudio] module.c: Unloading "module-always-sink" (index: #15).
I: [pulseaudio] module.c: Unloaded "module-always-sink" (index: #15).
I: [pulseaudio] module.c: Unloading "module-rescue-streams" (index: #14).
I: [pulseaudio] module.c: Unloaded "module-rescue-streams" (index: #14).
I: [pulseaudio] module.c: Unloading "module-default-device-restore" (index: #13).
I: [pulseaudio] module.c: Unloaded "module-default-device-restore" (index: #13).
I: [pulseaudio] module.c: Unloading "module-gconf" (index: #12).
I: [pulseaudio] module.c: Unloaded "module-gconf" (index: #12).
I: [pulseaudio] module.c: Unloading "module-native-protocol-unix" (index: #11).
I: [pulseaudio] module.c: Unloaded "module-native-protocol-unix" (index: #11).
I: [pulseaudio] module.c: Unloading "module-esound-protocol-unix" (index: #10).
I: [pulseaudio] module.c: Unloaded "module-esound-protocol-unix" (index: #10).
I: [pulseaudio] module.c: Unloading "module-bluez5-discover" (index: #9).
I: [pulseaudio] module.c: Unloaded "module-bluez5-discover" (index: #9).
I: [pulseaudio] module.c: Unloading "module-bluetooth-discover" (index: #8).
I: [pulseaudio] module.c: Unloaded "module-bluetooth-discover" (index: #8).
I: [pulseaudio] module.c: Unloading "module-bluetooth-policy" (index: #7).
I: [pulseaudio] module.c: Unloaded "module-bluetooth-policy" (index: #7).
I: [pulseaudio] module.c: Unloading "module-jackdbus-detect" (index: #6).
I: [pulseaudio] module.c: Unloaded "module-jackdbus-detect" (index: #6).
I: [pulseaudio] module.c: Unloading "module-udev-detect" (index: #5).
I: [pulseaudio] module.c: Unloaded "module-udev-detect" (index: #5).
I: [pulseaudio] module.c: Unloading "module-switch-on-port-available" (index: #4).
I: [pulseaudio] module.c: Unloaded "module-switch-on-port-available" (index: #4).
I: [pulseaudio] module.c: Unloading "module-augment-properties" (index: #3).
I: [pulseaudio] module.c: Unloaded "module-augment-properties" (index: #3).
I: [pulseaudio] module.c: Unloading "module-card-restore" (index: #2).
I: [pulseaudio] module.c: Unloaded "module-card-restore" (index: #2).
I: [pulseaudio] module.c: Unloading "module-stream-restore" (index: #1).
I: [pulseaudio] module.c: Unloaded "module-stream-restore" (index: #1).
I: [pulseaudio] module.c: Unloading "module-device-restore" (index: #0).
I: [pulseaudio] module.c: Unloaded "module-device-restore" (index: #0).
I: [pulseaudio] main.c: Daemon terminated.

Tried resetting pulseaudio by deleting files in home directory. Didn't work.

Environment:
- Up-to-date Arch on Lenovo Q190, i3 1.8GHz or Celeron one (I tried with both machine, they all setup from the same ansible playbook)
- HDMI with Intel graphics set to UXA (tried SNA and sometimes video doesn't work)
- HDMI audio to LG television.
- Lightdm autologin to non-root user.
- Openbox + Chromium
- Pulseaudio starts by openbox's user autostart
- Test was performed in ssh + su with $DISPLAY set
- It used to be working. I suspect something wrong with my ansible configuration.

Last edited by willwill (2014-09-27 10:50:46)

Offline

#2 2014-09-19 13:34:25

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: module-x11-publish stops pulseaudio

 Try unloading and disabling module-suspend-on-idle. Did you try "display=:0.0"? The documentation mentions other arguments as well. Did you try setting those? It can be unrelated though.

PA documentation wrote:

module-x11-publish

Publishes the access credentials to the PulseAudio server in the X11 root window. The following properties are used: PULSE_SERVER, POYLP_SINK, PULSE_SOURCE, PULSE_COOKIE. This is very useful when using SSH or any other remote login tool for logging into other machines and getting audio playback to your local speakers. The PulseAudio client libraries make use of this data automatically. Instead of using this module you may use the tool pax11publish which may be used to access, modify and import credential data from/to the X11 display.

    display
        X11 display to connect to. If omitted defaults to the value of $DISPLAY
    sink
        Name of the default sink. If omitted this property isn't stored in the X11 display.
    source
        Name of the default source. If omitted this property isn't stored in the X11 display.
    cookie
        Name of the cookie file of the cookie to store in the X11 display. If omitted the cookie of an already loaded protocol module is used.

 Filter comments out of configuration.

Offline

Board footer

Powered by FluxBB