Pulseaudio and session manager not working!

The standard session manager used by LXDE - http://wiki.lxde.org/en/LXSession
Locked
slimtop
Posts: 19
Joined: Tue Sep 01, 2009 10:11 am

Pulseaudio and session manager not working!

Post by slimtop »

I'm on Ubuntu 9.04 and since installing LXDE, pulseaudio stopped working, or rather the module 'module-x11-xsmp' stopped working. pactl load-module module-x11-xsmp gives 'Module initialization failed'.

Some more info;
pactl stat
Currently in use: 1 blocks containing 64,0 KiB bytes total.
Allocated during whole lifetime: 63 blocks containing 2,0 MiB bytes total.
Sample cache size: 0 B
User name: pulse
Host Name: mediamaskinen
Server Name: pulseaudio
Server Version: 0.9.14
Default Sample Specification: s16le 2ch 44100Hz
Default Sink: alsa_output.pci_8086_24d5_sound_card_0_alsa_playback_0
Default Source: alsa_input.pci_8086_24d5_sound_card_0_alsa_capture_0
Cookie: fbd50d31

From syslog:
Sep 12 05:19:42 mediamaskinen pulseaudio[4867]: x11wrap.c: XOpenDisplay() failed
Sep 12 05:19:42 mediamaskinen pulseaudio[4867]: module.c: Failed to load module "module-x11-xsmp" (argument: ""): initialization failed.

Pulseaudio is otherwise correctly loaded at boot from original init.d script and sound does work, but it crashes after playing 1-2 minutes. Sound do work under Xfce sessions and if switching to alsa in Smplayer it doesn't lag or crash in Lxde. Trying manually with pulseaudio -D and other such commands gives the same result, x11-xsmp won't load and sound crashes. I've googled this to my eyes bled and found this:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523619

"lxsession-lite: lxsession does not provides X session management"

And echo $SESSION_MANAGER gives a blank line. I'm running latest lxsession revision 1997 from svn and before that lxsession-lite 0.3.6.2 from Ubuntu repos with the same problem.

What more can I try? Or is it a bug? Can I give you more info?
slimtop
Posts: 19
Joined: Tue Sep 01, 2009 10:11 am

Re: Pulseaudio and session manager not working!

Post by slimtop »

More info:
Killing the init.d server and ionstead trying;
pulseaudio &
[1] 6498
mrmedia@mediamaskinen:~$ I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
I: caps.c: Dropping root privileges.
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
W: alsa-util.c: Device front:0 doesn't support 44100 Hz, changed to 48000 Hz.
W: alsa-util.c: Device front:0 doesn't support 44100 Hz, changed to 48000 Hz.
E: module-x11-xsmp.c: X11 session manager not running.
E: module.c: Failed to load module "module-x11-xsmp" (argument: ""): initialization failed.
E: main.c: Module load failed.
E: main.c: Failed to start daemon.

And now I have the latest lxsession and lxde-common from svn, revision 2003.
echo $SESSION_MANAGER
Still gives a blank line as ouput.
slimtop
Posts: 19
Joined: Tue Sep 01, 2009 10:11 am

Re: Pulseaudio and session manager not working!

Post by slimtop »

Might have found the problem here: http://www.pulseaudio.org/wiki/KnownIncompatibilities
Some recent libc versions have a locking problem in the dynamic module loader, which will cause PulseAudio to freeze randomly. This has been fixed in Fedora glibc 2.6.90-14
I run glib 2.6.4 from Ubuntu repos so seems I better have to wait. I think glib was recently updated and broke.
slimtop
Posts: 19
Joined: Tue Sep 01, 2009 10:11 am

Re: Pulseaudio and session manager not working!

Post by slimtop »

glibc is NOT the problem! I've just made a mixed installation of Xfce-session-manager and openbox and pulseaudio works and module-x11-xsmp now loads fine!

So somewhere lxsession isn't to friendly with x11-xsmp.
Locked