sound on kde3

Collins erichey2
Mon May 17 11:29:24 PDT 2004


On Thu, 4 Apr 2002 20:56:28 -0500 Tim Wunder <tim at thewunders.org> wrote:
> Previously, Keith Antoine chose to write:
> > Sound server informational message:
> > Error while initializing the sound driver:
> > couldn't auto detect which audio I/O method to use
> > The sound server will continue, using the null output device.
> >
> > I get this on login to kde3, which has altered permissions on the
> > driver, it works fine as root. I am guessing that its /dev/dsp but
> > being that this is Mandrake 8.1 and it uses devfs ? First up how can
> > I tell which driver its talking about and can I change it like I
> > used to with a std /dev/xxx.
> 
> There were blurbs on a kde newsgroup about this today
> (comp.os.x.kde??? something like that -- I don't have newsgroups at
> home, just at work)
> 
> You also might find something at dot.kde.org, I think there were
> mentions of this there. Did you use Mandrake RPMs?
> 

If you are using devfs, you have a config file that controls permanent
attributes for devices.  Here's my gentoo /etc/devfsd.conf.  The snd...
stuff is what I used to insure that any user could use /dev/dsp, etc. 
You probably have entries similar to the top of the file already.

# Sample /etc/devfsd.conf configuration file.
# Richard Gooch  <rgooch at atnf.csiro.au>         3-JUL-2000
#
# The Gentoo Linux Team - http://www.gentoo.org/
#     - Many fixes, etc

# Enable full compatibility mode for old device names. You may comment
these# out if you don't use the old device names. Make sure you know
what you're# doing!
REGISTER        .*           MKOLDCOMPAT
UNREGISTER      .*           RMOLDCOMPAT

# You may comment out the above and uncomment the following if you've
# configured your system to use the original "new" devfs names or the
really# new names
#REGISTER       vc/.*        MKOLDCOMPAT
#UNREGISTER     vc/.*        RMOLDCOMPAT
#REGISTER       pty/.*       MKOLDCOMPAT
#UNREGISTER     pty/.*       RMOLDCOMPAT
#REGISTER       misc         MKOLDCOMPAT
#UNREGISTER     misc         RMOLDCOMPAT
# You may comment these out if you don't use the original "new" names
REGISTER        .*           MKNEWCOMPAT
UNREGISTER      .*           RMNEWCOMPAT

# Enable module autoloading. You may comment this out if you don't use
# autoloading
LOOKUP          .*           MODLOAD

# Uncomment this if you want permissions to be saved and restored
# NB: Do NOT change the following!
# Do not do this for pseudo-terminal devices
REGISTER        ^pt[sy]/.*   IGNORE
CHANGE          ^pt[sy]/.*   IGNORE
CREATE          ^pt[sy]/.*   IGNORE
DELETE          ^pt[sy]      IGNORE
REGISTER        .*           COPY    /lib/dev-state/$devname $devpath
CHANGE          .*           COPY    $devpath /lib/dev-state/$devname
CREATE          .*           COPY    $devpath /lib/dev-state/$devname
DELETE          .*           CFUNCTION GLOBAL unlink
/lib/dev-state/$devname RESTORE         /lib/dev-state

# You can force default like this :
# PERMISSIONS owner_and_group access_mode

# ALSA/OSS stuff
# Comment/change these if you want to change the permissions on
# the audio devices
LOOKUP          snd          MODLOAD ACTION snd
REGISTER        sound/.*     PERMISSIONS root.audio 666
REGISTER        snd/.*       PERMISSIONS root.audio 666

# Give the cdrw group write permissions to /dev/sg0
# This is done to have non root user use the burner (scan the scsi bus)
REGISTER        ^sg0$       PERMISSIONS root.cdrw 660
# General note for the following auto creation of symlinks:
#
#    If you change the device that the symlink points to,
#    you should also remove the symlink before restarting
#    devfsd

# Create /dev/cdrom for the first cdrom drive
LOOKUP      ^cdrom$          CFUNCTION GLOBAL mksymlink cdroms/cdrom0
cdrom REGISTER    ^sg0$   CFUNCTION GLOBAL mksymlink $devname cdrom
UNREGISTER  ^sg0$   CFUNCTION GLOBAL unlink cdrom


# Create /dev/dvd for the second cdrom drive
# (change 'cdroms/cdrom1' to suite your setup)
LOOKUP      ^dvd$           CFUNCTION GLOBAL mksymlink cdroms/cdrom1 dvd
REGISTER    ^cdrom/cdrom1$  CFUNCTION GLOBAL mksymlink $devname dvd
UNREGISTER  ^cdrom/cdrom1$  CFUNCTION GLOBAL unlink dvd

# Create /dev/mouse
LOOKUP      ^mouse$          CFUNCTION GLOBAL mksymlink misc/psaux mouse
REGISTER    ^misc/psaux$     CFUNCTION GLOBAL mksymlink $devname mouse


Good luck,
-- 
Collins Richey - Denver Area - WWTLRD?
Gentoo_rc6-15 2.4.19pre - xfce + sylpheed + mozilla



More information about the Linux-users mailing list