Header Shadow Image


Sound Problems: Error while initializing the sound driver

Linux OS does a superb job of handling sound.  Since early on it will even be configured out of the box.  Unfortunately, keeping it that way is an entirely separate matter.  Especially when going through multiple upgrades or installing other packages possibly even applications that may alter your sound behaviour strange things may start to happen with your sound.  Take for instance this issue:

PROBLEM

unix_connect: can’t connect to server (unix:/tmp/ksocket-root/lhs.localhostservers-11ca-43c04c25)
ALSA lib conf.c:1592:(snd_config_load1) _toplevel_:51:23:No such file or directory
ALSA lib conf.c:2837:(snd_config_hook_load) /etc/alsa/cards/aliases.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:2700:(snd_config_hooks_call) function snd_config_hook_load returned error: No such file or directory
ALSA lib pcm.c:1969:(snd_pcm_open_conf) Invalid type for PCM default definition (id: default, value: cards.pcm.default)
Error while initializing the sound driver:
device: default can’t be opened for playback (Invalid argument)

SOLUTION
Comment out snd-intel8×0 in /etc/modprobe.conf

$ cat /etc/modprobe.conf
alias snd-card-0 snd-ens1371
install snd-ens1371 /sbin/modprobe –ignore-install snd-ens1371 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-ens1371 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r –ignore-remove snd-ens1371
alias usb-controller ehci-hcd
# install snd-intel8×0 /sbin/modprobe –ignore-install snd-intel8×0 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
alias eth0 via-rhine
alias scsi_hostadapter sata_via
alias usb-controller1 uhci-hcd
alias eth1 natsemi
$

and add

snd-intel8×0m

to

/etc/hotplug/blacklist*

Here is what mine looked like aside from everything else in it:

$ cat /etc/hotplug/blacklist.rpmsave
.
.
# Conflicts with Alsa?
snd-intel8×0m

.
.

NOTE: The above blacklist may be different for you.  Experiment to see if the above file is different for you but be sure to save your seettings before hand.

RESTARTING THE SOUND DAEMON

Typically, but not on every installation, you’ll have the artsd daemon running.  This is currently the best sound daemon available for Fedora Linux flavours.  The restart instructions below center around artsd.  First, get the artsd command that was ran to bring up the artsd daemon:

$ ps axfeo pid,user,cmd=|grep artsd|grep -v grep

In my case the above produced something like this:

$ artsd -F 20 -S 4096 -a alsa -d -b 16 -s 2 -m artsmessage -c drkonqi -l 3 -f

So that is how we would restart it (Add & at the end to detach it from the current console).  Below is a session of the trial (Last line, being successfully, marked in green):

$ /usr/bin/artsd -F 20 -S 4096 -a oss -d -b 16 -s 2 -m artsmessage -c drkonqi -l 3 -f There are already artsd objects registered, looking if they are active…

Error: Can’t add object reference (probably artsd is already running).
If you are sure it is not already running, remove the relevant files:

/tmp/ksocket-root/Arts_SoundServerV2
/tmp/ksocket-root/Arts_SoundServer
/tmp/ksocket-root/Arts_SimpleSoundServer
/tmp/ksocket-root/Arts_PlayObjectFactory
/tmp/ksocket-root/Arts_AudioManager

$ ll /tmp/ksocket-root/Arts_SoundServerV2
-rw——-  1 root root 230 Jan  7 20:49 /tmp/ksocket-root/Arts_SoundServerV2
$ ll /tmp/ksocket-root/Arts_SoundServerV2
-rw——-  1 root root 230 Jan  7 20:49 /tmp/ksocket-root/Arts_SoundServerV2
$ /usr/bin/artsd -F 20 -S 4096 -a oss -d -b 16 -s 2 -m artsmessage -c drkonqi -l 3 -f
There are already artsd objects registered, looking if they are active…

Error: Can’t add object reference (probably artsd is already running).
If you are sure it is not already running, remove the relevant files:

/tmp/ksocket-root/Arts_SoundServerV2
/tmp/ksocket-root/Arts_SoundServer
/tmp/ksocket-root/Arts_SimpleSoundServer
/tmp/ksocket-root/Arts_PlayObjectFactory
/tmp/ksocket-root/Arts_AudioManager

$ ll /tmp/ksocket-root/Arts_SoundServer
-rw——-  1 root root 230 Jan  7 20:49 /tmp/ksocket-root/Arts_SoundServer
$ ll /tmp/ksocket-root/Arts_SimpleSoundServer
-rw——-  1 root root 230 Jan  7 20:49 /tmp/ksocket-root/Arts_SimpleSoundServer
$ rm /tmp/ksocket-root/Arts_SoundServerV2
rm: remove regular file `/tmp/ksocket-root/Arts_SoundServerV2′? y
$ rm /tmp/ksocket-root/Arts_SoundServer
rm: remove regular file `/tmp/ksocket-root/Arts_SoundServer’? y
$ rm -f /tmp/ksocket-root/Arts_SimpleSoundServer
$ rm -f /tmp/ksocket-root/Arts_PlayObjectFactory
[$ rm -f /tmp/ksocket-root/Arts_AudioManager
$ /usr/bin/artsd -F 20 -S 4096 -a oss -d -b 16 -s 2 -m artsmessage -c drkonqi -l 3 -f <Had to cancel this one. Forgotten the & sign.  :) >
$ /usr/bin/artsd -F 20 -S 4096 -a oss -d -b 16 -s 2 -m artsmessage -c drkonqi -l 3 -f &
[1] 5501
$

Which finally got the artsd daemon process running.  Hope this helps, however this post will continue to be work in progress so more will be added with time..
 

Leave a Reply

 


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License