[pulseaudio-discuss] Alsa module loading failed.

Colin Guthrie gmane at colin.guthr.ie
Tue Jun 22 09:57:07 PDT 2010


'Twas brillig, and mahendra Deore at 22/06/10 11:42 did gyre and gimble:
> I am new to the pulse audio.
> I installed  pulseaudio-0.9.21/
> as below:
> 
> ./configure  --disable-oss-output  --disable-oss-wrapper   --enable-alsa
> --with-system-user=pulse --with-system-group=pulse
> --with-access-group=pulse-access
> make
> make install.

FWIW, you should probably use the stable-queue from git if you are
building your own, or better yet, use what your distro provides.
Configuring PA across all the various bits where audio is uses is a
non-trivial task and not something we'd really recommend for casual users.

> when i am trying to start pulse audio giving error like
>  
> 1.Start in non system mode:-
>  
> pulseaudio -n --disable-shm=FALSE --disallow-exit=FALSE
> --disallow-module-loading=FALSE  --load="module-suspend-on-idle" 
> --load="module-alsa-source"  --load="module-alsa-sink"
> --load="module-native-protocol-unix" --no-cpu-limit --exit-idle-time=-1
> --high-priority=TRUE --realtime=TRUE
> --dl-search-path=/usr/local/lib/pulse-0.9.21/modules/  -v &
> 
> O/P:-
> # W: main.c: This program is not intended to be run as root (unless
> --system is specified).
> I: core-util.c: Successfully gained nice level -11.
> I: main.c: This is PulseAudio 0.9.21
> I: main.c: Page size is 4096 bytes
> I: main.c: Machine ID is localhost.
> E: core-util.c: Home directory /userdata not ours.

Well that's a simple ownership/permissions issue as the error states.

Not sure what else to tell you.


> 2. Starting in system mode:-
>  
> pulseaudio -n --disable-shm=FALSE --disallow-exit=FALSE
> --disallow-module-loading=FALSE  --load="module-suspend-on-idle" 
> --load="module-alsa-source"  --load="module-alsa-sink"
> --load="module-native-protocol-unix" --no-cpu-limit --exit-idle-time=-1
> --high-priority=TRUE --realtime=TRUE
> --dl-search-path=/usr/local/lib/pulse-0.9.21/modules/  --system &
> 
> O/P:-
> 
> 
> pulseaudio -n --disable-shm=FALSE --disallow-exit=FALSE
> --disallow-module-load
> ing=FALSE  --load="module-suspend-on-idle"  --load="module-alsa-source" 
> --load=
> "module-alsa-sink" --load="module-native-protocol-unix" --no-cpu-limit
> --exit-id
> le-time=-1 --high-priority=TRUE --realtime=TRUE
> --dl-search-path=/usr/local/lib/
> pulse-0.9.21/modules/  --system &
> # W: main.c: Running in system mode, but --disallow-exit not set!
> W: main.c: Running in system mode, but --disallow-module-loading not set!
> N: main.c: Running in system mode, forcibly disabling SHM mode!
> W: main.c: Home directory of user 'pulse' is not
> '/usr/local/var/run/pulse', ignoring.
> W: main.c: OK, so you are running PA in system mode. Please note that
> you most likely shouldn't be doing that.
> W: main.c: If you do it nonetheless then it's your own fault if things
> don't work as expected.
> W: main.c: Please read
> http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode for an explanation
> why system mode is usually a bad idea.
> E: module.c: Module name :- module-suspend-on-idle
> E: module.c: Module name :- module-alsa-source
> E: module.c: Failed to load  module "module-alsa-source" (argument: ""):
> initialization failed.
> E: main.c: Module load failed.
> E: main.c: Failed to initialize daemon.
> 
> 
> Pulse audio is unable to load the alsa module.

That's because you didn't give any arguments to it and it needs some.

See: http://pulseaudio.org/wiki/Modules

I wouldn't generally recommend loading these modules by hand anyway,
much better to use udev-detect.

BTW, why are you trying to construct the command lines by hand anyway?
Are the shipped default.pa and system.pa files not suitable?

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]




More information about the pulseaudio-discuss mailing list