Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55585 - Cannot use ALSA as a normal user after installing Xorg
Summary: Cannot use ALSA as a normal user after installing Xorg
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-29 09:04 UTC by Jason Cavett
Modified: 2005-09-07 09:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Cavett 2004-06-29 09:04:19 UTC
ALSA worked perfectly when I was using XFree.  However, I recently upgraded to Xorg (I followed the instructions on the Gentoo site) and now ALSA refuses to work.  I did reinstall ALSA and followed those instructions as well.

Here is the problem:

When I log in as root in a terminal, and then do ls -l /dev/sound, I get the following:

crw------- 1 root audio 14, 12 Jun 9 15:14 adsp
crw------- 1 root audio 14, 4 Jun 9 15:14 audio
crw------- 1 root audio 14, 3 Jun 9 15:14 dsp
crw------- 1 root audio 14, 0 Jun 9 15:14 mixer
crw------- 1 root audio 14, 1 Jun 9 15:14 sequencer
crw------- 1 root audio 14, 8 Jun 9 15:14 sequencer2


When I log in as a user and then do the same command (in a terminal), I get:

crw------- 1 user audio 14, 12 Jun 9 15:14 adsp
crw------- 1 user audio 14, 4 Jun 9 15:14 audio
crw------- 1 user audio 14, 3 Jun 9 15:14 dsp
crw------- 1 user audio 14, 0 Jun 9 15:14 mixer
crw------- 1 user audio 14, 1 Jun 9 15:14 sequencer
crw------- 1 user audio 14, 8 Jun 9 15:14 sequence

Where user is the user name.

When I log in as a user into X (through the XDM server), and run that command, I get:
crw------- 1 root audio 14, 12 Jun 9 15:14 adsp
crw------- 1 root audio 14, 4 Jun 9 15:14 audio
crw------- 1 root audio 14, 3 Jun 9 15:14 dsp
crw------- 1 root audio 14, 0 Jun 9 15:14 mixer
crw------- 1 root audio 14, 1 Jun 9 15:14 sequencer
crw------- 1 root audio 14, 8 Jun 9 15:14 sequencer2

So...in this case, the user cannot play any sound.  But, they can in the terminal.  I think this is because the console permissions are set differently than the X permissions.  I did check my udev permissions file, but it says that the audio should be set to 660, root/audio - however it is being set to 600.  Also, if I try to manually set the /dev/sound items to 660 manually, it does not seem to fix the problem (even though it should).

Whatever happens when the user logs into a terminal needs to happen when the user logs into X.  I'm just not sure where these problems are taking place.


P.S. This problem is not new. It seems anybody with a similar setup to what I have is having this same problem.

Reproducible: Always
Steps to Reproduce:
1. Boot up computer.
2. Log into X as a normal user (I use the XDM server and OpenBox)
3. Attempt to play any music using any program that requires ALSA.
4. Program refuses to play.

Actual Results:  
No sound would be played.  This did work before when I had XFree, udev and ALSA
installed.  This stopped working after I changed XFree to Xorg.

Expected Results:  
The music should have played.

I'm not at my computer right now.  Sorry for the lack of information.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-09-07 09:22:50 UTC
Still a problem with 6.8.99.15 or modular X?