{"id":2044,"date":"2008-04-29T19:41:48","date_gmt":"2008-04-30T02:41:48","guid":{"rendered":"http:\/\/redmonk.com\/sogrady\/2008\/04\/29\/sog-1-busted-sound-0-getting-audio-working-on-the-x300-under-ubuntu\/"},"modified":"2008-04-29T19:41:48","modified_gmt":"2008-04-30T02:41:48","slug":"sog-1-busted-sound-0-getting-audio-working-on-the-x300-under-ubuntu","status":"publish","type":"post","link":"https:\/\/redmonk.com\/sogrady\/2008\/04\/29\/sog-1-busted-sound-0-getting-audio-working-on-the-x300-under-ubuntu\/","title":{"rendered":"SOG 1, Busted Sound 0: Getting Audio Working on the X300 Under Ubuntu"},"content":{"rendered":"<div style=\"float: right;margin-left: 10px;margin-bottom: 10px\">\n <a href=\"http:\/\/www.flickr.com\/photos\/sog\/2393496790\/\" title=\"photo sharing\"><img decoding=\"async\" src=\"http:\/\/farm4.static.flickr.com\/3272\/2393496790_386892e31a_m.jpg\" alt=\"\" style=\"border: solid 2px #000000\" \/><\/a><br \/>\n <br \/>\n <span style=\"font-size: 0.9em;margin-top: 0px\"><br \/>\n  <a href=\"http:\/\/www.flickr.com\/photos\/sog\/2393496790\/\">x300 packaging<\/a><br \/>\n  <br \/>\n  Originally uploaded by <a href=\"http:\/\/www.flickr.com\/people\/sog\/\">sogrady<\/a><br \/>\n <\/span>\n<\/div>\n<p>It took a little bit longer than I had expected, but I have conquered the demons that were possessing my sound card, and the last remaining (software) reason not to run Ubuntu on an X300 has been addressed. That&#8217;s the good news. <\/p>\n<p>The bad news is that the fix may be a little bit involved, depending on which kernel you happen to be running. <\/p>\n<p>Here&#8217;s the fix process in detail:<\/p>\n<ol>\n<li>Remove the running Intel sound module from the kernel: <code>sudo modprobe -r snd_hda_intel<\/code><\/li>\n<p><\/p>\n<li>Remove the existing Ubuntu sound modules:<code>sudo rm -R \/lib\/modules\/2.6.24-16-generic\/ubuntu\/sound\/<\/code>\n<li>Stop the running ALSA services: <code>sudo \/etc\/init.d\/alsa-utils stop<\/code><\/li>\n<p><\/p>\n<li>Download a new ALSA snapshot from <a href=\"ftp:\/\/ftp.suse.com\/pub\/projects\/alsa\/snapshot\/driver\/\">here<\/a>. I can confirm that 0424 works for me, and requires no patching.<\/li>\n<p><\/p>\n<li>Extract that: <code>tar xvjf alsa-driver-hg20080424.tar.bz2<\/code><\/li>\n<p><\/p>\n<li>Change to the extracted directory: <code>cd alsa-driver-hg20080424<\/code><\/li>\n<p><\/p>\n<li>Configure the snapshop: <code>.\/configure<\/code><\/li>\n<p><\/p>\n<li>Make the package: <code>make<\/code><\/li>\n<p><\/p>\n<li>Install the package: <code>sudo make install<\/code><\/li>\n<p><\/p>\n<li>Restart the ALSA services: <code>sudo \/etc\/init.d\/alsa-utils start<\/code><\/li>\n<p><\/p>\n<li>Insert the newly built module: <code>sudo modprobe snd_hda_intel<\/code><\/li>\n<p><\/p>\n<li>If that completes successfully, you&#8217;re probably done. Unmute the sound using something like alsamixergui (<code>sudo apt-get install alsamixergui<\/code>), and you&#8217;re all set. If you get an error like the following:<br \/>\n<blockquote><p><code>FATAL: Error inserting snd (\/lib\/modules\/2.6.24-16-generic\/kernel\/sound\/acore\/snd.ko): Unknown symbol in module, or unknown parameter (see dmesg)<\/code><\/p><\/blockquote>\n<p>it may be because you&#8217;re running a 32 bit kernel and soundcore.ko is omitted (Launchpad bug <a href=\"https:\/\/bugs.launchpad.net\/bugs\/223778\">here<\/a>). If that&#8217;s the case, proceed to the next step.<\/li>\n<p><\/p>\n<li>We&#8217;re going to need to build a soundcore.ko and copy it to our kernel. Here&#8217;s how that&#8217;s done (credit to MsTiFtS for the <a href=\"https:\/\/bugs.edge.launchpad.net\/ubuntu\/+source\/linux\/+bug\/200338\/comments\/73\">original procedure<\/a>).\n<p>Bring down the Linux source code: <code>sudo apt-get install linux-source-2.6.24<\/code><\/li>\n<p><\/p>\n<li>Extract that: <code>sudo tar xvzf \/usr\/src\/linux-source-2.6.24.tar.bz2<\/code><\/li>\n<p><\/p>\n<li>Copy over the current kernel configuration: <code>sudo cp \/boot\/config-2.6.24-16-generic \/usr\/src\/linux-source-2.6.24\/source\/.config<\/code><\/li>\n<p><\/p>\n<li>Copy over the current kernel configuration: <code>sudo cp \/boot\/config-2.6.24-16-generic \/usr\/src\/linux-source-2.6.24\/source\/.config<\/code><\/li>\n<p><\/p>\n<li>Change to the Linux source directory: <code>cd \/usr\/src\/linux-source-2.6.24<\/code><\/li>\n<p><\/p>\n<li>Run make oldconfig: <code>sudo make oldconfig<\/code><\/li>\n<p><\/p>\n<li>Run make menuconfig: <code>sudo make menuconfig<\/code> If you get an error, you probably don&#8217;t have the right ncurses libraries installed. Do a <code>sudo apt-get install libncurses5-dev libncursesw5-dev<\/code><\/li>\n<p><\/p>\n<li>In the resulting menu, go to device drivers:sound<\/li>\n<p><\/p>\n<li>Make sure sound card support is set to &#8220;m&#8221;<\/li>\n<p><\/p>\n<li>Exit, saving your new configuration<\/li>\n<p><\/p>\n<li>Run make scripts prepare: <code>sudo make scripts prepare<\/code><\/li>\n<p><\/p>\n<li>Run make SUBDIRS=sound modules: <code>sudo make SUBDIRS=sound modules<\/code><\/li>\n<p><\/p>\n<li>Copy the newly created soundcore.ko module over to the running kernel: <code>sudo cp sound\/soundcore.ko \/lib\/modules\/2.6.24-16-generic<\/code><\/li>\n<p><\/p>\n<li>Create the modules.dep and map files: <code>sudo depmod -a<\/code><\/li>\n<p><\/p>\n<li>Reload your soundcard module: <code>modprobe snd-hda-intel<\/code><\/li>\n<p><\/p>\n<li>Voila: everything should work. If it doesn&#8217;t, well, you&#8217;re on your own.<\/li>\n<\/ol>\n<p>Hopefully this helps someone who ran into the same issues that I did, as the model was released too late for the patches to make it into the initial Hardy release. <\/p>\n<p>And before all of the anti-Linux folks &#8211; especially you Mac people &#8211;  jump all over the above as proof that the Linux desktop is geek-only, remember that the laptop&#8217;s been shipping for about a month. Give it time, probably not even much, and none of the above will be necessary for any user. Much like all of the Thinkpad keys &#8220;just work,&#8221; so too will the sound. I promise. <\/p>\n<p>I just didn&#8217;t feel like waiting. <\/p>\n<p>Before I forget, my thanks to the ALSA developers, and all of the folks over at the original ALSA bug report, especially schweeb who spent an hour or two IM&#8217;ing with me last weekend trying to get sound working. <\/p>\n<p>The community really is what makes the software.<br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>x300 packaging Originally uploaded by sogrady It took a little bit longer than I had expected, but I have conquered the demons that were possessing my sound card, and the last remaining (software) reason not to run Ubuntu on an X300 has been addressed. That&#8217;s the good news. The bad news is that the fix<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[47,50],"tags":[],"class_list":["post-2044","post","type-post","status-publish","format-standard","hentry","category-laptops","category-linux"],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/posts\/2044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/comments?post=2044"}],"version-history":[{"count":0,"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/posts\/2044\/revisions"}],"wp:attachment":[{"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/media?parent=2044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/categories?post=2044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/tags?post=2044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}