Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My new monitor (Asus MX279) have 2 speakers and audio input from HDMI. In xubuntu 12.10 it doesn't work by default.

I identified the correct device with aplay -l and sound works great with

speaker-test -c wav -D plughw:1,7

and

aplay -D plughw:1,7 myTest.wav

Now, how can i set this device (in this case card 1, device 7) as default audio device? I've tried creating ~/.asoundrc like this:

pcm.!default {
    type hw
    card 1
    device 7
}

and restarting alsa with sudo alsa reload, or rebooting system but it did not work.

Thanks so much.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Solved!

I've created file /etc/asound.conf in this way:

defaults.pcm.card 1
defaults.pcm.device 7
defaults.ctl.card 1

and rebooted the system.

remember: in my case "1" is the card number and "7" is device number found in aplay -l output.

Case. Closed.

See ya!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.