{"id":31,"date":"2008-06-26T01:37:57","date_gmt":"2008-06-26T05:37:57","guid":{"rendered":"http:\/\/www.microworkshop.com\/WordPress\/?p=31"},"modified":"2012-12-01T19:27:35","modified_gmt":"2012-12-02T00:27:35","slug":"sound-problems-error-while-initializing-the-sound-driver","status":"publish","type":"post","link":"https:\/\/microdevsys.com\/wp\/sound-problems-error-while-initializing-the-sound-driver\/","title":{"rendered":"Sound Problems: Error while initializing the sound driver"},"content":{"rendered":"<p>\n\tLinux OS does a superb job of handling sound.&nbsp; Since early on it will even be configured out of the box.&nbsp; Unfortunately, keeping it that way is an entirely separate matter.&nbsp; 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.&nbsp; Take for instance this issue:\n<\/p>\n<p>\n\t<strong>PROBLEM<\/strong>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\tunix_connect: can&rsquo;t connect to server (unix:\/tmp\/ksocket-root\/lhs.localhostservers-11ca-43c04c25)<br \/>\n\tALSA lib conf.c:1592:(snd_config_load1) _toplevel_:51:23:No such file or directory<br \/>\n\tALSA lib conf.c:2837:(snd_config_hook_load) \/etc\/alsa\/cards\/aliases.conf may be old or corrupted: consider to remove or fix it<br \/>\n\tALSA lib conf.c:2700:(snd_config_hooks_call) function snd_config_hook_load returned error: No such file or directory<br \/>\n\tALSA lib pcm.c:1969:(snd_pcm_open_conf) Invalid type for PCM default definition (id: default, value: cards.pcm.default)<br \/>\n\tError while initializing the sound driver:<br \/>\n\tdevice: default can&rsquo;t be opened for playback (Invalid argument)\n<\/p>\n<p>\n\t<strong>SOLUTION<\/strong><br \/>\n\t<!--more-->Comment out <strong>snd-intel8&times;0<\/strong> in <strong>\/etc\/modprobe.conf<\/strong>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t$ cat \/etc\/modprobe.conf<br \/>\n\talias snd-card-0 snd-ens1371<br \/>\n\tinstall snd-ens1371 \/sbin\/modprobe &ndash;ignore-install snd-ens1371 &amp;&amp; \/usr\/sbin\/alsactl restore &gt;\/dev\/null 2&gt;&amp;1 || :<br \/>\n\tremove snd-ens1371 { \/usr\/sbin\/alsactl store &gt;\/dev\/null 2&gt;&amp;1 || : ; }; \/sbin\/modprobe -r &ndash;ignore-remove snd-ens1371<br \/>\n\talias usb-controller ehci-hcd<br \/>\n\t<span style=\"color: rgb(255, 0, 0);\">#<\/span> install snd-intel8&times;0 \/sbin\/modprobe &ndash;ignore-install snd-intel8&times;0 &amp;&amp; \/usr\/sbin\/alsactl restore &gt;\/dev\/null 2&gt;&amp;1 || :<br \/>\n\talias eth0 via-rhine<br \/>\n\talias scsi_hostadapter sata_via<br \/>\n\talias usb-controller1 uhci-hcd<br \/>\n\talias eth1 natsemi<br \/>\n\t$\n<\/p>\n<p>\n\t<em>and<\/em> add\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<strong>snd-intel8&times;0m<\/strong>\n<\/p>\n<p>\n\tto\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<strong>\/etc\/hotplug\/blacklist*<\/strong>\n<\/p>\n<p>\n\tHere is what mine looked like aside from everything else in it:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t$ <strong>cat \/etc\/hotplug\/blacklist.rpmsave<\/strong><br \/>\n\t.<br \/>\n\t.<br \/>\n\t<span style=\"color: rgb(51, 153, 102);\"># Conflicts with Alsa?<br \/>\n\tsnd-intel8&times;0m<\/span><br \/>\n\t.<br \/>\n\t.\n<\/p>\n<p>\n\t<span style=\"color: rgb(255, 153, 0);\"><strong>NOTE:<\/strong><\/span> The above blacklist may be different for you.&nbsp; Experiment to see if the above file is different for you but be sure to save your seettings before hand.\n<\/p>\n<p>\n\t<strong>RESTARTING THE SOUND DAEMON<\/strong>\n<\/p>\n<p>\n\tTypically, but not on every installation, you&rsquo;ll have the <strong>artsd<\/strong> daemon running.&nbsp; This is currently the best sound daemon available for Fedora Linux flavours.&nbsp; The restart instructions below center around <strong>artsd<\/strong>.&nbsp; First, get the artsd command that was ran to bring up the <strong>artsd<\/strong> daemon:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<strong>$ ps axfeo pid,user,cmd=|grep artsd|grep -v grep<\/strong>\n<\/p>\n<p>\n\tIn my case the above produced something like this:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<strong>$ artsd -F 20 -S 4096 -a alsa -d -b 16 -s 2 -m artsmessage -c drkonqi -l 3 -f<\/strong>\n<\/p>\n<p>\n\tSo that is how we would restart it (Add <strong>&amp;<\/strong> at the end to detach it from the current console).&nbsp; Below is a session of the trial (Last line, being successfully, marked in <strong><span style=\"color: rgb(51, 153, 102);\">green<\/span><\/strong>):\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t$ <strong>\/usr\/bin\/artsd -F 20 -S 4096 -a oss -d -b 16 -s 2 -m artsmessage -c drkonqi -l 3 -f<\/strong> There are already artsd objects registered, looking if they are active&hellip;\n<\/p>\n<p style=\"margin-left: 40px;\">\n\tError: Can&rsquo;t add object reference (probably artsd is already running).<br \/>\n\tIf you are sure it is not already running, remove the relevant files:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t\/tmp\/ksocket-root\/Arts_SoundServerV2<br \/>\n\t\/tmp\/ksocket-root\/Arts_SoundServer<br \/>\n\t\/tmp\/ksocket-root\/Arts_SimpleSoundServer<br \/>\n\t\/tmp\/ksocket-root\/Arts_PlayObjectFactory<br \/>\n\t\/tmp\/ksocket-root\/Arts_AudioManager\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t$ <strong>ll \/tmp\/ksocket-root\/Arts_SoundServerV2<\/strong><br \/>\n\t-rw&mdash;&mdash;-&nbsp; 1 root root 230 Jan&nbsp; 7 20:49 \/tmp\/ksocket-root\/Arts_SoundServerV2<br \/>\n\t$ <strong>ll \/tmp\/ksocket-root\/Arts_SoundServerV2<\/strong><br \/>\n\t-rw&mdash;&mdash;-&nbsp; 1 root root 230 Jan&nbsp; 7 20:49 \/tmp\/ksocket-root\/Arts_SoundServerV2<br \/>\n\t$ <strong>\/usr\/bin\/artsd -F 20 -S 4096 -a oss -d -b 16 -s 2 -m artsmessage -c drkonqi -l 3 -f<\/strong><br \/>\n\tThere are already artsd objects registered, looking if they are active&hellip;\n<\/p>\n<p style=\"margin-left: 40px;\">\n\tError: Can&rsquo;t add object reference (probably artsd is already running).<br \/>\n\tIf you are sure it is not already running, remove the relevant files:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t\/tmp\/ksocket-root\/Arts_SoundServerV2<br \/>\n\t\/tmp\/ksocket-root\/Arts_SoundServer<br \/>\n\t\/tmp\/ksocket-root\/Arts_SimpleSoundServer<br \/>\n\t\/tmp\/ksocket-root\/Arts_PlayObjectFactory<br \/>\n\t\/tmp\/ksocket-root\/Arts_AudioManager\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t$ <strong>ll \/tmp\/ksocket-root\/Arts_SoundServer<\/strong><br \/>\n\t-rw&mdash;&mdash;-&nbsp; 1 root root 230 Jan&nbsp; 7 20:49 \/tmp\/ksocket-root\/Arts_SoundServer<br \/>\n\t$ <strong>ll \/tmp\/ksocket-root\/Arts_SimpleSoundServer<\/strong><br \/>\n\t-rw&mdash;&mdash;-&nbsp; 1 root root 230 Jan&nbsp; 7 20:49 \/tmp\/ksocket-root\/Arts_SimpleSoundServer<br \/>\n\t$ <strong>rm \/tmp\/ksocket-root\/Arts_SoundServerV2<\/strong><br \/>\n\trm: remove regular file `\/tmp\/ksocket-root\/Arts_SoundServerV2&prime;? y<br \/>\n\t$ <strong>rm \/tmp\/ksocket-root\/Arts_SoundServer<\/strong><br \/>\n\trm: remove regular file `\/tmp\/ksocket-root\/Arts_SoundServer&rsquo;? y<br \/>\n\t$ <strong>rm -f \/tmp\/ksocket-root\/Arts_SimpleSoundServer<\/strong><br \/>\n\t$ <strong>rm -f \/tmp\/ksocket-root\/Arts_PlayObjectFactory<\/strong><br \/>\n\t[$ <strong>rm -f \/tmp\/ksocket-root\/Arts_AudioManager<\/strong><br \/>\n\t$ <strong>\/usr\/bin\/artsd -F 20 -S 4096 -a oss -d -b 16 -s 2 -m artsmessage -c drkonqi -l 3 -f<\/strong> &lt;Had to cancel this one. Forgotten the <strong>&amp;<\/strong> sign.&nbsp; \ud83d\ude42 &gt;<br \/>\n\t$<span style=\"color: rgb(51, 153, 102);\"> <strong>\/usr\/bin\/artsd -F 20 -S 4096 -a oss -d -b 16 -s 2 -m artsmessage -c drkonqi -l 3 -f &amp;<\/strong><\/span><br \/>\n\t[1] 5501<br \/>\n\t$\n<\/p>\n<p>\n\tWhich finally got the <strong>artsd<\/strong> daemon process running.&nbsp; Hope this helps, however this post will continue to be work in progress so more will be added with time..<br \/>\n\t&nbsp;<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Linux OS does a superb job of handling sound.&nbsp; Since early on it will even be configured out of the box.&nbsp; Unfortunately, keeping it that way is an entirely separate matter.&nbsp; Especially when going through multiple upgrades or installing other packages possibly even applications that may alter your sound behaviour strange things may start to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[711,716,717,421,709,718,715,135,708,712,485,710,719,713,287,399,408,136,314,720,714,707],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-unix-linux-admin-stuff","tag-alsa","tag-artsd","tag-artsmessage","tag-daemon","tag-driver","tag-drkonqi","tag-ens","tag-error","tag-initializing","tag-jack","tag-localhost","tag-modprobeconf","tag-object","tag-ossd","tag-problem","tag-restart","tag-socket","tag-solution","tag-sound","tag-soundserverv2","tag-unix_connect","tag-while"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}