Forums

Skip to content

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

Alsa Sound Issues [Ugly Workaround]

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
13 posts • Page 1 of 1
Author
Message
GBob
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 110
Joined: Sat Nov 13, 2004 7:03 pm
Location: Portland, Oregon

Alsa Sound Issues [Ugly Workaround]

  • Quote

Post by GBob » Mon Dec 27, 2004 11:03 pm

Okay, so I'm using kernel 2.6.9-r13 with alsa, two soundcards, one of which is es1371 (pci card) and via82xx (on board.) On board is considered card 0, and the PCI (the one I use all the time) is card 1. (Actually it has addresses hw0,0 and hw0,1 due to alsa configs, the goal was to completely disable the on board sound.) Anyways, I've been fine for about a month, till I switched from gdm to entranced. (There may have been other changes, but that was the big one.)

After adding entrance to my package.keywords and running:

Code: Select all

emerge -u --deep world
along with updating the correct files to get entrance instead of gdm, I hit upon a problem. XMMS kept saying the soundcard was blocked. So, I run xmms as root, it works fine with exactly the same settings. *pause to watch me swear for a minute*

At this point I'm going oh, it must be a permission issue. But wait, since I'm using 2.6 with udev, my /dev is regenerated each boot. *pause to watch me swear some more.* So I start searching the forums, and start looking at my system. It appears that certian files in /dev/sound don't belong to the audio group. So I chmod it, and chgrp only to find that it doesn't work. *more swearing and searching.* I find the same problems in the /dev/snd directory. So I added this to my /etc/conf.d/local.start:

Code: Select all

chgrp -R audio /dev/sound
chgrp -R audio /dev/snd
chmod -R 770 /dev/snd
chmod -R 770 /dev/sound
to my /etc/conf.d/local.start

Ugly I know, but it seems to work. So here's my question: If /dev is created at boot, why are the permissions completely wrong? Which files do I need to edit so that I don't have to use ugly hacks as above?

*Please note, the extra swearing now due to this information being hidden in some config file there really should be a unified way of dealing with junk like this*
Top
placeholder
Advocate
Advocate
Posts: 2500
Joined: Sat Feb 07, 2004 12:15 am

  • Quote

Post by placeholder » Mon Dec 27, 2004 11:07 pm

Is your user in the "audio" group? If not, add them and you might be able to skip that dirty hack.
Top
GBob
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 110
Joined: Sat Nov 13, 2004 7:03 pm
Location: Portland, Oregon

  • Quote

Post by GBob » Mon Dec 27, 2004 11:10 pm

Yes, my user is in the audio group.

I know it's a long post but if you look closely at the hack you'll see I'm giving permission only to owner and group, and I set the group to audio, recusively for /dev/sound and /dev/snd

The issue is the files, when created are owned by: root:root not root:audio for some files (mainly /dev/sound/dsp, ect.)
Top
kroz
n00b
n00b
Posts: 14
Joined: Fri Jun 25, 2004 10:01 pm

  • Quote

Post by kroz » Tue Dec 28, 2004 12:01 am

you should check /etc/security/console.perms to see if the audio/sound section has the right permisions.
(however, this might only exist if pam is installed)
Top
GBob
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 110
Joined: Sat Nov 13, 2004 7:03 pm
Location: Portland, Oregon

  • Quote

Post by GBob » Tue Dec 28, 2004 12:28 am

okay had this:

Code: Select all

<console>  0600 <sound>      0600 root.audio
changed to:

Code: Select all

<console>  0660 <sound>      0660 root.audio
This is the correct way to solve, right?
Top
placeholder
Advocate
Advocate
Posts: 2500
Joined: Sat Feb 07, 2004 12:15 am

  • Quote

Post by placeholder » Tue Dec 28, 2004 9:06 am

I have....

Code: Select all

<console>  0600 <sound>      0600 root.audio
...in that file and it has never given me those problems. However, if that works then no worries. :D
Top
butters
Guru
Guru
User avatar
Posts: 427
Joined: Mon May 13, 2002 9:07 am
Location: Poughkeepsie, NY

  • Quote

Post by butters » Tue Dec 28, 2004 11:27 am

I'm also having permissions problems with ALSA. The /dev/sound and /dev/snd devices are owned by root:root instead of root:audio, and it gets reset that way on reboot if I change it:

ls -ld /dev/sound
drwxr-xr-x 2 root root 160 Dec 28 06:16 /dev/sound

I have the following in /etc/security/console.perms:

<console> 0660 <sound> 0660 root.audio

I can unmute my channels using amixer as root, but the state is not saved or restored by alsasound init script for some reason. Apps running as my regular user cannot open the alsa device. I am running 2.6.10 with ALSA compiled in statically and udev.
If tugboats were bigger, they'd be the ones getting tugged.
Top
kroz
n00b
n00b
Posts: 14
Joined: Fri Jun 25, 2004 10:01 pm

  • Quote

Post by kroz » Tue Dec 28, 2004 10:34 pm

i have

<console> 0600 <sound> 0600 root.audio

but
if that works then no worries
Top
aetius
Tux's lil' helper
Tux's lil' helper
Posts: 118
Joined: Fri Jul 09, 2004 3:48 pm

  • Quote

Post by aetius » Tue Jan 04, 2005 8:37 pm

See:

http://bugs.gentoo.org/show_bug.cgi?id=72119

and

http://bugs.gentoo.org/show_bug.cgi?id=31877

That might help.
Top
paerez
n00b
n00b
User avatar
Posts: 8
Joined: Sat Jan 17, 2004 2:55 pm
Location: USA
Contact:
Contact paerez
Website

  • Quote

Post by paerez » Fri Jan 21, 2005 8:34 pm

Yeah it is apparently a UDev bug.

Just by running "udevstart" as root it cleared me up, but make sure you have this:

Code: Select all

/etc/udev/permissions.d/50-udev.permissions

# audio devices
dsp*:root:audio:0660
audio*:root:audio:0660
midi*:root:audio:0660
mixer*:root:audio:0660
sequencer*:root:audio:0660
sound/*:root:audio:0660
snd/*:root:audio:0660
beep:root:audio:0660
admm*:root:audio:0660
adsp*:root:audio:0660
aload*:root:audio:0660
amidi*:root:audio:0660
dmfm*:root:audio:0660
dmmidi*:root:audio:0660
sndstat:root:audio:0660
and:

Code: Select all

/etc/security/console.perms

<console>  0660 <sound>      0600 root.audio
Many people have 0600 root:root, which may mess you up if you are trying to play through the audio group.

Supposedly "udevstart" is only a temporary fix

So be wary and good luck
dont make me run a full backtrace on your core dump
Top
mlsfit138
Guru
Guru
User avatar
Posts: 406
Joined: Sat Sep 20, 2003 9:51 am
Location: Washington

  • Quote

Post by mlsfit138 » Sun Jan 23, 2005 6:52 am

I use devfs, and have the same problem. Of course the second bug listed applies to devfs, not udev. I'm really tired of this and hope it gets resolved soon.
"Everytime you justify
another good in you dies"

-Converge, The Saddest Day, Petitioning the Empty Sky
Top
chunderbunny
Veteran
Veteran
User avatar
Posts: 1281
Joined: Mon May 31, 2004 11:28 am
Location: 51°24'27" N, 0°57'15" W

  • Quote

Post by chunderbunny » Sun Jan 23, 2005 5:19 pm

The last time I checked up on this it's not a bug at all, but a "feature" of PAM. Either way, the devs said that they wouldn't fix it, but I didn't really understand why.
Top
pvincent
n00b
n00b
User avatar
Posts: 29
Joined: Sat Aug 02, 2003 9:02 pm

Stupid fix !

  • Quote

Post by pvincent » Fri Jan 28, 2005 5:35 pm

I don't know if it is smart or not.
Anyway, I decide to edit /etc/conf.d/local
and append the 'udevstart' command.

Finally it works :wink:
I run on :
gentoo-dev-sources-2.6.10-r4
udev
Top
Post Reply

13 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

 

 

magic