Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora User (http://www.linux-archive.org/fedora-user/)
-   -   Fedora Sound - working as root (http://www.linux-archive.org/fedora-user/12191-fedora-sound-working-root.html)

Richard Emberson 12-04-2007 05:12 PM

Fedora Sound - working as root
 
As a user I got the following while running xmms:

]$ xmms

** WARNING **: Failed to open font: "-adobe-helvetica-bold-r-*-*-10-*".

** WARNING **: alsa_get_mixer(): Attaching to mixer hw:0 failed: No such
device
Message: alsa_setup(): Cannot set mmap'ed mode: Invalid argument.
falling back to direct write

*** PULSEAUDIO: Unable to create stream.

** WARNING **: alsa_setup(): Unable to install hw params
xmms: pcm_pulse.c:115: pulse_stop: Assertion `pcm->stream' failed.
Aborted

As root, if I disable mmap mode it works.
As a user (disabling mmap mode) it still does not work.

First, what is mmap mode and is disabling it ok?
Next, seems like a permission problem. What do I have the
change the permissions of to get xmms to work with an
ordinary user using Fedora 8?

Thanks

Richard
--
Quis custodiet ipsos custodes:

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Kyle McMartin 12-04-2007 06:08 PM

Fedora Sound - working as root
 
On Tue, Dec 04, 2007 at 10:12:46AM -0800, Richard Emberson wrote:
> First, what is mmap mode and is disabling it ok?
> Next, seems like a permission problem. What do I have the
> change the permissions of to get xmms to work with an
> ordinary user using Fedora 8?
>

are you using a custom built kernel, or one shipped with fedora 8?

uname -a please.

cheers, Kyle

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

kwhiskerz 12-04-2007 09:33 PM

Fedora Sound - working as root
 
Since the last spate of updates, it is no longer possible to use any sound or
video* device as user, only as root. Changing the permission to 666 allows
users to use the devices. I saw that on the pulseaudio thread on
fedora-selinux-list.

I hope there will be a fix soon. In the meantime, I manually change the
permission of the device I need to use each time I boot the system. Sometimes
it's not easy to figure out what device you need, though, like with the tv
card or midi, for example.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

"yonas Abraham" 12-05-2007 02:11 AM

Fedora Sound - working as root
 
On Dec 4, 2007 1:12 PM, Richard Emberson <remberson@edgedynamics.com> wrote:
>
> As a user I got the following while running xmms:
>
> ]$ xmms
>
> ** WARNING **: Failed to open font: "-adobe-helvetica-bold-r-*-*-10-*".
>
> ** WARNING **: alsa_get_mixer(): Attaching to mixer hw:0 failed: No such
> device
> Message: alsa_setup(): Cannot set mmap'ed mode: Invalid argument.
> falling back to direct write
> *** PULSEAUDIO: Unable to create stream.
>
> ** WARNING **: alsa_setup(): Unable to install hw params
> xmms: pcm_pulse.c:115: pulse_stop: Assertion `pcm->stream' failed.
> Aborted

The same here. THis machine is up2dated F8 system. It is yum upgraded
to F8 from F7.

/Yonas

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Richard Emberson 12-05-2007 12:53 PM

Fedora Sound - working as root
 
Kyle McMartin wrote:

On Tue, Dec 04, 2007 at 10:12:46AM -0800, Richard Emberson wrote:

First, what is mmap mode and is disabling it ok?
Next, seems like a permission problem. What do I have the
change the permissions of to get xmms to work with an
ordinary user using Fedora 8?



are you using a custom built kernel, or one shipped with fedora 8?

uname -a please.

cheers, Kyle



~]$ uname -a
Linux gate 2.6.23.8-63.fc8 #1 SMP Wed Nov 21 18:51:08 EST 2007 i686 i686
i386 GNU/Linux



--
Quis custodiet ipsos custodes:
This email message is for the sole use of the intended recipient(s) and
may contain confidential information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all
copies of the original message.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

"ishii kazuo" 12-05-2007 01:07 PM

Fedora Sound - working as root
 
2007/12/5, Richard Emberson <remberson@edgedynamics.com>:
> Kyle McMartin wrote:
> > On Tue, Dec 04, 2007 at 10:12:46AM -0800, Richard Emberson wrote:
> >> First, what is mmap mode and is disabling it ok?
> >> Next, seems like a permission problem. What do I have the
> >> change the permissions of to get xmms to work with an
> >> ordinary user using Fedora 8?
> >>
> >
> > are you using a custom built kernel, or one shipped with fedora 8?
> >
> > uname -a please.
> >
> > cheers, Kyle
> >
>
> ~]$ uname -a
> Linux gate 2.6.23.8-63.fc8 #1 SMP Wed Nov 21 18:51:08 EST 2007 i686 i686
> i386 GNU/Linux
>
>
> --
> Quis custodiet ipsos custodes:
> This email message is for the sole use of the intended recipient(s) and
> may contain confidential information. Any unauthorized review, use,
> disclosure or distribution is prohibited. If you are not the intended
> recipient, please contact the sender by reply email and destroy all
> copies of the original message.
>
> --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>


--
石井一夫
日本Rubyの会
freeparis2@gmail.com
http://officeparis.org/blog/

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Rex Dieter 12-05-2007 02:46 PM

Fedora Sound - working as root
 
kwhiskerz wrote:

> Since the last spate of updates, it is no longer possible to use any sound
> or video* device as user, only as root. Changing the permission to 666
> allows users to use the devices. I saw that on the pulseaudio thread on
> fedora-selinux-list.

ditto, confirmed, me too, all that jazz.

Anyone bugzilla this yet? If so, got any pointers or references? I've got
one that's filed against kde, but I'm thinking this really has nothing to
do with kde (since I don't have audio in gnome either):
http://bugzilla.redhat.com/411071

-- Rex

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

kwhiskerz 12-05-2007 05:44 PM

Fedora Sound - working as root
 
I finally filed a bug report. Thanks, Rex, for the suggestion.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Rex Dieter 12-05-2007 06:05 PM

Fedora Sound - working as root
 
kwhiskerz wrote:

> I finally filed a bug report. Thanks, Rex, for the suggestion.

It's likely this:
http://bugzilla.redhat.com/380031

Until properly fixed, the suggested workaround is:
rm -f /var/lib/hal/acl-list
/sbin/service haldaemon restart

-- Rex

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Todd Zullinger 12-05-2007 07:27 PM

Fedora Sound - working as root
 
kwhiskerz wrote:
> Since the last spate of updates, it is no longer possible to use any
> sound or video* device as user, only as root. Changing the
> permission to 666 allows users to use the devices. I saw that on the
> pulseaudio thread on fedora-selinux-list.
>
> I hope there will be a fix soon. In the meantime, I manually change
> the permission of the device I need to use each time I boot the
> system. Sometimes it's not easy to figure out what device you need,
> though, like with the tv card or midi, for example.

It's probably worth mentioning that the permissions for sound and
video devices are now managed by ConsoleKit instead of the older
consolehelper. ConsoleKit uses acl's instead of mucking with the
standard unix perms. So you want to check the acl's of your devices
using the getfacl command. As an example, you should see something
like this for /dev/dsp:

$ getfacl /dev/dsp
getfacl: Removing leading '/' from absolute path names
# file: dev/dsp
# owner: root
# group: root
user::rw-
user:gdm:rw-
user:tmz:rw-
group::rw-
mask::rw-
other::---

Additionally, the ck-list-sessions command is very useful to determine
whether ConsoleKit considers your session to the active session. If
it doesn't, it won't add you to the acl list for sound, video, and
other devices that it manages.

Finally, one bug that could be the cause of this is:
https://bugzilla.redhat.com/show_bug.cgi?id=380031

Another possibility, if you're using updates-testing, is the
pilot-link-0.12.2-9 update (as suggested in bz#411321).

--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
I do not want people to be agreeable, as it saves me the trouble of
liking them.
-- Jane Austen

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


All times are GMT. The time now is 06:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.