[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ongoing sound problems



Christopher Fonnesbeck <chrisf@fonnesbeck.net> writes:

> I dont see what's wrong either!  When I try and start any audio
> application, it claims that either the hardware is not detected or its
> busy.  I am using GNOME -- could it be an ESD issue?

Probably a permissions issue.  /dev/dsp belongs to root and the audio group, so
to play sound (or to record for that matter), you need to be part of the audio
group.

The way I did (I'm going by memory so it may not be 100% accurate) that is to
uncomment the "auth optional pam_group.so" line from /etc/pam.d/login and copy
it to /etc/pam.d/gdm as well.  That assuming that you use gdm to log in on the
console normally.  If you use some other way, you may have to edit another
file.

Then edit /etc/security/group.conf and add the lines

login; tty*; *; Al0000-2400; audio
gdm; *; *; Al0000-2400; audio

(That second field in the last line looks wrong to me, but it's the only thing
that worked for me.  Anyone want to tell me the right thing?)

You may want to change "audio" to "audio, floppy" so that you can access the
floppy drive too.

The reason you would want to do it this way, instead of just adding yourself to
the audio group, is that if you log in remotely, you shouldn't be able to play
sounds.  Or else the person sitting at the console may get confused.

HTH
Hubert

-- 
____     |     -----------------------------------------------------------
|  /   --+--
| /   ___|___    Hubert Chan <hackerhue@crosswinds.net>
| \   | _|_ |
|__|  |__|__|    GCS/M d- s:- a-- C++ UL+(++++) P++ L++ E++ W++ N++ o?
|        |       K? w--- O++ M- V- PS-- PE+++ Y+ PGP+ t+ 5 X R- tv+ b+
|      / | \     DI++++ D G e++ h! !r !y
|     /  |  \
|        |     <><------------------ http://www.crosswinds.net/~hackerhue/

PGP/GnuPG fingerprint: 6CC5 822D 2E55 494C 81DD  6F2C 6518 54DF 71FD A37F
Key can be found at http://www.crosswinds.net/~hackerhue/hackerhue.asc

Experience the Power to Change -- http://www.powertochange.org/
CAUCE member -- Stop Spam! -- http://www.cauce.org/
Linux: Where do you want to go tomorrow? -- http://www.linux.com/
International Alliance for Compatible Technology -- http://www.iact.net/



Reply to: