You are not logged in.

#1 2014-01-05 16:10:50

whoops
Member
Registered: 2009-03-19
Posts: 891

[solved] pulseaudio & sux (module-X11-publish?)

Did not manage to get sound (pulseaudio) working with sux.
(Also, I have some problems searching for relevant information on the topic because so many people seem to think that "pulseaudio sux" hmm )

Sound works fine both primary user and sux user.  But when I try in a sux session I get:

zsh/5 2507 [1] % pulseaudio -v
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: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 4.0-271-g09e8-dirty
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 320ddb9865d3a2e98aa2bd644ab4d06a.
I: [pulseaudio] main.c: Session ID is 4.

And:

zsh/5 2508 [1] % speaker-test -c 6 -t sine -f 64000

speaker-test 1.0.27.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
Sine wave rate is 5000,0000Hz
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM sysdefault
Playback open error: -2,No such file or directory

.... and - obviously - no sound.

I tried activating module-X11-publish but nothing much changed. According to pulseaudio the module seems to get loaded:

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: #7; argument: "channels=2").
I: [pulseaudio] module.c: Loaded "module-bluetooth-policy" (index: #8; argument: "").
I: [pulseaudio] module.c: Loaded "module-bluez5-discover" (index: #10; argument: "").
I: [pulseaudio] module.c: Loaded "module-bluez4-discover" (index: #11; argument: "").
I: [pulseaudio] module.c: Loaded "module-bluetooth-discover" (index: #9; argument: "").
I: [pulseaudio] module.c: Loaded "module-esound-protocol-unix" (index: #12; argument: "").
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #13; argument: "").
I: [pulseaudio] module.c: Loaded "module-gconf" (index: #14; argument: "").
I: [pulseaudio] module-default-device-restore.c: Restored default sink 'alsa_output.pci-0000_00_14.2.analog-surround-51'.
I: [pulseaudio] module-default-device-restore.c: Restored default source 'alsa_output.pci-0000_00_14.2.analog-surround-51.monitor'.
I: [pulseaudio] module.c: Loaded "module-default-device-restore" (index: #15; argument: "").
I: [pulseaudio] module.c: Loaded "module-rescue-streams" (index: #16; argument: "").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #17; argument: "").
I: [pulseaudio] module.c: Loaded "module-intended-roles" (index: #18; argument: "").
I: [pulseaudio] module.c: Loaded "module-suspend-on-idle" (index: #19; argument: "").
I: [pulseaudio] module.c: Loaded "module-console-kit" (index: #20; argument: "").
I: [pulseaudio] client.c: Created 0 "Login Session 4"
I: [pulseaudio] module.c: Loaded "module-systemd-login" (index: #21; argument: "").
I: [pulseaudio] module.c: Loaded "module-position-event-sounds" (index: #22; argument: "").
I: [pulseaudio] module.c: Loaded "module-role-cork" (index: #23; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-heuristics" (index: #24; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-apply" (index: #25; argument: "").
I: [pulseaudio] module.c: Loaded "module-x11-bell" (index: #26; argument: "sample=bell-windowing-system").
I: [pulseaudio] module-x11-xsmp.c: Connected to session manager 'xfce4-session' as '26d1156a6-fc12-4086-a00b-38f945a5e82b'.
I: [pulseaudio] client.c: Created 1 "XSMP Session on xfce4-session as 26d1156a6-fc12-4086-a00b-38f945a5e82b"
I: [pulseaudio] module.c: Loaded "module-x11-xsmp" (index: #27; argument: "").
I: [pulseaudio] module.c: Loaded "module-x11-publish" (index: #28; argument: "").
I: [pulseaudio] main.c: Daemon startup complete.

aaand it seems to sort of do something - but still no sound. Maybe because:

E: [pulseaudio] core-util.c: Failed to create secure directory (/run/user/1000/pulse): Permission denied
N: [pulseaudio] main.c: User-configured server at {320ddb9865d3a2e98aa2bd644ab4d06a}unix:/run/user/1000/pulse/native, refusing to start/autospawn.
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

I have no idea what to look for next. Any help?


edit: Argh....now,  after playing around with paprefs (clicking random things :3) sound worked.

Also that kills my network access (still getting an IP from the router, but after that nothing works. Dig times out, so does ping / traceroute on anything except myself even though ifconfig looks fine). Problem was persistant over reboots, had to revert the settings to get network working again.

edit: ok, so it looks as if I need to "enable network access to local sound devices" in paprefs for the sound to work. But I have no idea how to limit this to my own machine / localhost.
(the options that made my internet connection freeze were the "MultiCast" ones - they are not required for what I'm trying to do though, so that's fine with me.)

edit: Can't reproduce problem with pulseaudio 6 / fixed itself

Last edited by whoops (2015-07-03 11:24:41)

Offline

Board footer

Powered by FluxBB