Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

[SOLVED] pulsaudio won't start: Several permission errors

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
faux
n00b
n00b
Posts: 61
Joined: Fri Oct 26, 2007 9:32 am
Location: Linz, Austria
Contact:
Contact faux
Website

[SOLVED] pulsaudio won't start: Several permission errors

  • Quote

Post by faux » Sat May 10, 2008 2:31 pm

Hi!
I'm playing around for a couple of days to get PulseAudio running, but I'm still at point zero: It won't start:

Code: Select all

manuel-desktop lib # pulseaudio --system
W: pid.c: Stale PID file, overwriting.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
E: shm.c: shm_open() failed: Permission denied
W: core.c: failed to allocate shared memory pool. Falling back to a normal memory pool.
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_alsa_playback_0"): initialization failed.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

E: x11wrap.c: XOpenDisplay() failed
E: module.c: Failed to load  module "module-x11-publish" (argument: ""): initialization failed.
E: main.c: Module load failed.
E: main.c: failed to initialize daemon.
I've configured nothing, still no HOWTO says, that is is required to configure anything. I've read the Gentoo-Wiki entry on PulseAudio and I've read some official PulseAudio wiki entry, but I'm unable to start it. :oops:
Can anyone recommend a good HOWTO to me?

Faux
Last edited by faux on Sat May 10, 2008 5:46 pm, edited 1 time in total.
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Sat May 10, 2008 4:53 pm

It's not the HOWTO problem, it probably your config.
In random order:
make sure you are both in pulse-access and audio groups
comment the line loading module-x11-publish
I think you are running either a different sound server or some program,
that already claimed soundcard, check that
and post useflags of your pulseaudio
Top
faux
n00b
n00b
Posts: 61
Joined: Fri Oct 26, 2007 9:32 am
Location: Linz, Austria
Contact:
Contact faux
Website

  • Quote

Post by faux » Sat May 10, 2008 5:12 pm

Thank's for the response!
VoidMage wrote:It's not the HOWTO problem, it probably your config.
I also think so. ;)
VoidMage wrote:In random order:
make sure you are both in pulse-access and audio groups
It does not even work as root.
VoidMage wrote:comment the line loading module-x11-publish
Okay, the output got shorter:

Code: Select all

manuel-desktop pulse # pulseaudio --system
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
E: shm.c: shm_open() failed: Permission denied
W: core.c: failed to allocate shared memory pool. Falling back to a normal memory pool.
VoidMage wrote:I think you are running either a different sound server or some program,
that already claimed soundcard, check that
No, there is no other sound server. How do I check this, either?
VoidMage wrote:and post useflags of your pulseaudio
X alsa avahi dbus hal tcpd

Okay, now the daemon starts (ignoring the shm_open error). Thanks!

But: Every app which uses PulseAudio logs: E: shm.c: shm_open() failed: Permission denied. :S

Faux

Edit: Adding shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 to /etc/fstab helped. I knew this line has any function. ;)

Thank's for you help. :)
Top
John Klug
Tux's lil' helper
Tux's lil' helper
Posts: 75
Joined: Tue Nov 20, 2007 11:16 am
Location: Minnesota

  • Quote

Post by John Klug » Sat May 10, 2008 11:36 pm

shm_open can be fixed by adding a line to /etc/fstab:

Code: Select all

none                    /dev/shm        tmpfs           nodev,nosuid,noexec  0 0
Now mount /dev/shm

I am working on the same problem. I need to figure out how to get it to work with ALSA:iec958, the way MythTV does. It sends output to analog, but I want digital.

I get:

Code: Select all

W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CX88x.pcm.front.0:CARD=1'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM front:1
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CX88x.pcm.surround40.0:CARD=1'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround40:1
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CX88x.pcm.surround51.0:CARD=1'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround41:1
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CX88x.pcm.surround51.0:CARD=1'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround50:1
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CX88x.pcm.surround51.0:CARD=1'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround51:1
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CX88x.pcm.surround71.0:CARD=1'
ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3982:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround71:1
ALSA lib pcm_mmap.c:369:(snd_pcm_mmap) mmap failed: Invalid argument
W: module-alsa-source.c: Got POLLERR from ALSA
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
Top
Post Reply

4 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy