I was running Windows XP Pro in virtual machines (VMs) within VMware Workstation 7 on a 64-bit Ubuntu 9.10 (Karmic Koala) host. I had repeatedly had problems with no audio in earlier versions of Workstation (e.g., 6.5.2). Various fixes, reboots, and other efforts had randomly gotten the audio working again within one or more VMs.
Now I had a new situation: there was no audio in any VM and, when I checked, I found there was also no sound in Ubuntu itself. Once again, I ran various searches and began trying various suggestions. I came across an Ubuntu Community Documentation page on Sound, which led me to another Community page on Sound Troubleshooting Procedure. Step 1 in that procedure led me to Stéphane Gaudreault's long, step-by-step procedure on upgrading the Advanced Linux Sound Architecture (ALSA) (188.8.131.52) on Karmic. (On WinXP, using another computer, Stéphane's page loaded in Internet Explorer, but not in Firefox. It loaded slowly in Firefox in Ubuntu.) I closed Workstation, and then copied and pasted each line of that procedure into Terminal. (It was possible to copy and paste multiple lines at once, including line ends; they would run one after another.) One exception: as far as I could tell, I did not get the "panelw library not found" error he described, so as he advised, I skipped the "symbolic links" part of his instructions. Everything seemed to go smoothly until his very last command (sudo alsaconf), which opened the ALSA Configurator. After clicking OK, the Configurator said, "Searching sound cards," and then gave me this error:
No supported PnP or PCI card found.
Would you like to probe legacy ISA sound cards/chips?
So it seemed that possibly I did not need to go through Stéphane's procedure, though I did appreciate how perfectly it went. I might have just run "sudo alsaconf" in the first place, assuming I already had some version of ALSA loaded on my computer; doing so might have given me this same hardware-related error notice -- unless Stéphane's procedure was its cause. That seemed possible; maybe my ALSA was now so new that Ubuntu had not yet caught up. I tried listening to a WAV file, just in case, but no, sure enough, still no sound. I ran a search for that error message. This led to a VIA Technologies Release Note (oddly, not found on the VIA website) that said,
When installing driver, if the ALSA Configurator reminds that "No supported PnP or PCI card found", it means the kernel cannot find the pci audio device. Select "No" to exit the installation and uninstall the driver. Please read Notes b des-cription to resolve the problem.
Exiting the Configurator did not seem to uninstall anything, so I interpreted that part of the Release Note to mean that I was supposed to uninstall the driver myself, somehow. Notes, point b, in that document said this:
Before installation, make sure your linux kernel can find the pci audio device first. If your kernel can not find any pci device with command 'lspci', you'd better add an option in /boot/grub/menu.1st file. At the end of line with "kernel /boot/vmlinuz-xxxx", xxxx is the kernel version, add the following:
This information appeared to mean that I should have done this before going through Stéphane's procedure. I didn't know how to undo that procedure, so I decided to poke around a bit more, in search of other possibilities. I started back at the Sound Troubleshooting Procedures (STP) page. It gave me several commands to copy and paste into Terminal. This gave me a link to Stephen Olesen's Pastebin website, where all kinds of information about my system was automatically posted for other people to see and, presumably, help me with. The last message produced by those commands I cut and pasted was, "Please inform the person helping you." So apparently I could post a question in a forum somewhere, and include the Pastebin address instead of cluttering up the forum with all that information about my system.
Anyway, the STP page said that the Pastebin file should contain some indication of the "Driver version," the "Library version," and the "Utilities version." I tried searching the Pastebin file for "Driver version" and, sure enough, there it was, not far from the top. It said this:
Driver version: 184.108.40.206
Library version: 1.0.22
Utilities version: 1.0.22
That didn't look like an exact match. I wasn't sure if 220.127.116.11 was close enough to the others. The STP page said the numbers needed to be equal. If they weren't, then (a) one of the ALSA components was not successfully upgraded (which I didn't think was the problem, as I had seen no error messages), or (b) I booted an older kernel version (which wasn't the case either). Anyway, there seemed to be a mismatch between my ALSA version and my Ubuntu kernel. So it still looked like I would need to reinstall ALSA. But then it occurred to me that I hadn't run the lspci command, as suggested by the Release Note (above), to see if my kernel could find a PCI device. It found a bunch of PCI devices, including "MCP61 High Definition Audio." Hmm. Puzzling!
OK, well, the STP page had one more, very long line to copy and paste into Terminal. If my driver version numbers (above) were acceptably similar to one another, maybe this was all I needed to do. So I tried that. It ran, but I couldn't tell for sure if it was happy. I tried "sudo alsaconf" again. Still the same result. Mark Rijckenberg suggested, to someone having a similar problem, that they either revert to an earlier version of ALSA (which hadn't been working for me) or else consider switching from x64 back to 32-bit Ubuntu. Having had many problems with 64-bit Ubuntu -- orphan problems, especially, that almost nobody else seemed to be having -- and having wrestled with the sound problem repeatedly for the past year, I decided to try my luck with 32-bit Karmic. I describe the downgrading process in a separate post.