The script only creates a regular text file that is hidden by virtue of the preceeding dot called .asoundrc in your home folder.

The best method of use is to create an empty text file in your home folder, name it asoundrc, then copy and paste the following into it, save it and make it executable.

Code:

#!/bin/sh# asoundrc v0.1.0 20090101 markc@renta.net GPLv3# asoundrc v0.2.0 20090320 quatro_por_quatro@yahoo.es GPLv3## A simple script to create a particular default audio device regardless# of what cards are loaded or in what order. It could be used anytime or# placed in a ~/.bashrc script for a persistent setup every login.## Usage: asoundrc [DEFAULT_CARD] > ~/.asoundrc

In the laptop example, I have 2 distinctly different devices I can choose from, PCH or ThinkPadEC, though in this case, I would use the first because it has an interrupt request address whereas the second does not and it's numbered at 29, way too far down the list.

In the following example, I replaced [DEFAULT_CARD] with Generic and I really don't know if I should have included the square brackets or not, but most times, when such examples are given, it means replace the entire section and don't use the brackets, they are usually there for emphasis. In essence, .......

Code:

./asoundrc [DEFAULT_CARD] > ~/.asoundrc

becomes ....

Code:

./asoundrc Generic > ~/.asoundrc

Once you have the file, you can edit it with a regular text editor to set your default device, make the file executable, log out and back in and you hopefully should have sound, and if not, try re-editing it to set another device as default.

Below is the content of the generated .asoundrc file when I sent the command as in the above example.

Finally have a chance to get back into getting sound working. System sounds work but nothing else. I can go into System Settings -> Hardware -> Multimedia -> phonon - and chose different devices and click on test to see which device will give me sound. Only one does. I tried following m_pav's instructions but doing that brings up the KDE crash handler and no system sound. When I go into System Settings I can only get to Multimedia. When I click on phonon, the KDE crash handler comes up. So there appears to be a conflict between how KDE wants to handle sound and whatever program wants use the asoundrc output. As soon as I delete that file, I get system sounds again.

Check your BIOS settings for a front audio option along the lines of HDA/AC97. If it's set to HDA, change it to AC97.

From the tray icon, open your mixer and under Settings > Configure Channels, drag some interesting and relevant looking titles into to the right side window, arrange them as you wish, click on OK, then get some music playing and play with the channels.

Progress - I can play CD's. But cannot get audio from internet.When I open Kmix I have two tabs, both labeled HD Audio Generic. Under the first tab there is only one channel IEC958. The other tab shows all the channels where I found one that was muted and can now play CD's.The icon in the tray for the mixer shows volume at 0% and has the IEC958 icon.I guess I need to google IEC958 and phonon.

edit: forgot to add that in the Bios I changed the Front Panel type from HD to AC97.

But in all cases, I cannot get audio to work on the internet. In case this is a Firefox issue, I'll try Chrome tomorrow (grasping at straws).Also when booting up, the volume is always set to mute and even when I unmute it the volume icon in the system tray shows 0% and there is no slider there.

Success I had a friend bring his Ubuntu CD to see if that worked and it did. Then he looked over my shoulder and was able to point out what I missed in trying to follow m_pav's instructions. Something very simple - DOH - Thanks m_pav. Now looking foreward to actually being able to have Linux classes where people can have a hands on experience and play with it.

Now to finally finish up on sound - I thought I was finished.....1st - Since the computer will have many users and we will be adding and deleting users, is there a better spot to put the .asoundrc file instead of each user's home directory to be available system wide?

2nd - The sound always starts muted. Is there a way to change that? Even when I unmute sound and have it working, the volume always shows 0%. In the Mixer window, I have two tabs both labeled HD-Audio Generic. The first tab only has one channel IEC958 and has no slider. The second tab has lots of channels with sliders. If I right click on the Kmix icon in the system tray and try to choose the master channel the two names are the same. And even if I choose the one that is listed last, it doesnt seem to change anything.

Right clicking brings up the Select Master Channel box with the current mixer with a drop-down. Both names in my drop down are the same (HD-Audio Generic). In the space below where I think there are supposed to be choices to pick from, there is nothing to choose. No matter which Current Mixer I choose from the drop-down box, nothing shows up in the underneath pane.

All times are UTC - 5 hours [ DST ] | It is currently Sun Aug 02, 2015 4:27 pm

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum