LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-15-2012, 08:47 AM   #1
zeelog
Member
 
Registered: Jan 2008
Posts: 139

Rep: Reputation: 1
Lubuntu audio set card to 0


I don't know how this happened but my sound card
seems to have been set to card 1 when it was card 0.
I think this might be why I don't have any sound right
now.
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: M2496 [M Audio Audiophile 24/96], device 0: ICE1712 multi [ICE1712 multi]
Subdevices: 1/1
Subdevice #0: subdevice #0
The HDMI card 0 is the motherboard sound circit I disabled
in the BIOS. My card 0 should be my PCI M Audio Audiophile
sound card.
How can I set my M Audio Audiophile sound card to card 0 permanently?
 
Old 10-16-2012, 02:37 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by zeelog View Post
How can I set my M Audio Audiophile sound card to card 0 permanently?
There are a couple of ways you could do this:

1. You could install the boated resource hog known as pulseaudio and use pulseaudio to set the default sound card:
http://chris-allen-lane.com/2012/07/...ries-9-laptop/
However, since you are using Lubuntu, I would guess that you would like to avoid bloated apps like pulseaudio.

2. You can also define the default sound card by creating the file ~/.asoundrc. See this:
http://askubuntu.com/questions/16739...card-selection

3. You can also define the default sound card in the /etc/modprobe.d/sound.conf file:
http://ubuntuforums.org/showthread.php?t=1980268

Last edited by tommcd; 10-16-2012 at 02:40 AM.
 
Old 10-16-2012, 04:44 PM   #3
zeelog
Member
 
Registered: Jan 2008
Posts: 139

Original Poster
Rep: Reputation: 1
Lubuntu audio set card to 0

Where in the directory tree does the file ~/.asoundrc go ?
You guessed right. I installed Lubuntu to free myself from pulseaudio
and other bloat. It's a great OS but you have to be
careful of which programs you install. For example, when
I installed the Totem video viewer, it installed pulseaudio
without my knowledge or permission. Result: no audio.
I got that fixed, but now the audio is gone again. I've no idea
what set my PCI sound card to 1 and the deactivated motherboard
ciruit to 0. Perhaps its the Upgrade Manager upgrades, or some
program I foolishly installed.
So, where in the directory tree do I put the file ~/.asoundrc ?
Thank you very much for this valuable information !
 
Old 10-17-2012, 04:35 AM   #4
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by zeelog View Post
You guessed right. I installed Lubuntu to free myself from pulseaudio
and other bloat. It's a great OS but you have to be
careful of which programs you install. For example, when
I installed the Totem video viewer, it installed pulseaudio
without my knowledge or permission.
Yes, you do indeed have to be careful when installing apps on Lubuntu.
Stick with the lightweight audio and video apps and you should be fine. Try Aqualung for music, and Parole for video, for example.
Quote:
Originally Posted by zeelog View Post
So, where in the directory tree do I put the file ~/.asoundrc ?
The ~ symbol is shorthand for your home directory. For example, my home directory is /home/tom/. So ~/.asoundrc is simply a shorthand for /home/tom/.asoundrc.
Try these 2 commands in the terminal to verify this:
Code:
ls ~
and
Code:
ls /home/user/
where user is your user name. You will see that the output is the same.
 
Old 10-17-2012, 04:56 AM   #5
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Quote:
Originally Posted by zeelog View Post
I don't know how this happened but my sound card
seems to have been set to card 1 when it was card 0.
I think this might be why I don't have any sound right
now.
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: M2496 [M Audio Audiophile 24/96], device 0: ICE1712 multi [ICE1712 multi]
Subdevices: 1/1
Subdevice #0: subdevice #0
The HDMI card 0 is the motherboard sound circit I disabled
in the BIOS.
The HDMI output probably isnt your onbaord sound, its more likely to be the sound controller for audio over HDMI found in (most) video cards with HDMI output.

Have you tried playing with the alsa mixer?
 
Old 10-18-2012, 09:56 AM   #6
zeelog
Member
 
Registered: Jan 2008
Posts: 139

Original Poster
Rep: Reputation: 1
Lubuntu audio set card to 0

This did nothing to change the number of my PCI m audio
audiophile sound card to 0, but it did give me sound.
And that is a Good Thing!
cat /proc/asound/modules displayed the sound modules
my sound card, snd_ice1712 was listed as 1
I then created a file using my text editor nano;
/etc/modprobe.d/sound.conf
In sound.conf I wrote one line;
options snd_ice1712 index=1
This gave me sound. And that is most welcome !
But my sound card is still listed as 1.
I did find an answer in a file I found somewhere on
the Internet. I wish I hadn't been such a hurry so
I could give proper credit to who wrote it, but I
can't find it again. But this works for me on Lubuntu 12.0
If someone can find something wrong with doing this, tell me.
I deleted the file /etc/modprobe.d/sound.conf first, that is,
the file I just created, then
I made a copy of /etc/modules.d/alsa-base.conf calling it
old_alsa-base.conf, just in case something went wrong.

I edited the file /etc/modprobe.d/alsa-base.conf
At the very end of alsa-base.conf I wrote

options snd_ice1712 index=0
options snd_hda_intel index=1

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: M2496 [M Audio Audiophile 24/96], device 0: ICE1712 multi [ICE1712 multi]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
This is how it should be. My sound card is now 0 and I'm happy.
And thank you for telling me where the file asoundrc belongs and
how to write it.
I have tried to play audio using all the apps I have. I just assumed
that this HDMI is my onboard sound circuit. Maybe it is the sound controller
for the video card ! I never thought of that. Now that I have everything
working, I'm reluctant to do any experimenting. Maybe over Christmass,
if I get time off.
Thanks for all your help. I think I can list this thread as solved.
 
Old 10-19-2012, 02:42 AM   #7
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Quote:
Originally Posted by zeelog View Post
This did nothing to change the number of my PCI m audio
audiophile sound card to 0, but it did give me sound.
If playing with the mixer got sound working, why does it matter if the card is 0 or 1?
 
Old 06-09-2013, 01:43 PM   #8
fillmore73
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Rep: Reputation: Disabled
No audio via HDMI

Quote:
Originally Posted by tommcd View Post
There are a couple of ways you could do this:

1. You could install the boated resource hog known as pulseaudio and use pulseaudio to set the default sound card:
http://chris-allen-lane.com/2012/07/...ries-9-laptop/
However, since you are using Lubuntu, I would guess that you would like to avoid bloated apps like pulseaudio.

2. You can also define the default sound card by creating the file ~/.asoundrc. See this:
http://askubuntu.com/questions/16739...card-selection

3. You can also define the default sound card in the /etc/modprobe.d/sound.conf file:
http://ubuntuforums.org/showthread.php?t=1980268
I too am stuck with the problem of no audio over HDMI.
Have posted the details of what I tried here
http://ubuntuforums.org/showthread.p...6#post12684426

Would appreciate it if anyone has any suggestions.

Thanks
Fillmore
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XIRCOM ethernet PCMCIA card not working on ThinkPad 600 with Lubuntu 12.04 mihu_r Linux - Newbie 10 05-17-2012 08:27 AM
Wireless card not installed in Lubuntu even after windows driver Arella71 Linux - Hardware 4 08-15-2010 01:53 AM
Asus mainboards that come with its own graphics card and audio card christianunix Linux - Newbie 3 05-05-2009 04:07 PM
Linux for an audio set-up frank rizzo Linux - Newbie 2 01-23-2004 11:57 AM
how to set up SMC EZ Card 10/100 ethernet PCI network card mymojo Linux - Networking 2 12-16-2003 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration