You are not logged in.
Hello All,
New user to Arch, been using linux for a little while longer. I'm trying to set my HDMI out as default output, but cannot seem to make it work. I've tried the wiki, forums, and websearches, but none of the methods (and variations thereof) seem to work for me. The hw must work, for I am listening to music as I type via HDMI, but I must go into VLC>Audio Output>HDMI. So if someone could help me out, walk me through it, I would appreciate it very much. I'll post some info below, sorry in advance if it's not everything needed. If you want to assume I am a complete n00b/idiot, I will not be offended.
Thanks in advance!
Arch (64 bit)
custom desktop pc:
gigabyte gap55aud4p mobo
i7 cpu
Radeon HD5670 video card
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=MID
HDA Intel MID, ALC889 Analog
Default Audio Device
sysdefault:CARD=MID
HDA Intel MID, ALC889 Analog
Default Audio Device
front:CARD=MID,DEV=0
HDA Intel MID, ALC889 Analog
Front speakers
surround40:CARD=MID,DEV=0
HDA Intel MID, ALC889 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=MID,DEV=0
HDA Intel MID, ALC889 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=MID,DEV=0
HDA Intel MID, ALC889 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=MID,DEV=0
HDA Intel MID, ALC889 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=MID,DEV=0
HDA Intel MID, ALC889 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=MID,DEV=0
HDA Intel MID, ALC889 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=Generic,DEV=0
HD-Audio Generic, HDMI 0
HDMI Audio Output$ xrandr # list outputs
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1366x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm
1366x768 59.8*+
1920x1080 50.0 60.0 30.0 25.0 24.0
1920x1080i 50.0 60.1
1280x720 50.0 60.0
1440x576i 50.1
1024x768 75.1 70.1 60.0
1440x480i 60.1
832x624 74.6
800x600 72.2 75.0 60.3
720x576 50.0
720x480 59.9
640x480 72.8 75.0 66.7 60.0
720x400 70.1
DVI-0 disconnected (normal left inverted right x axis y axis)
DVI-1 disconnected (normal left inverted right x axis y axis)]$ lsmod | grep snd
snd_hda_codec_hdmi 29298 1
snd_hda_codec_realtek 30893 1
snd_hda_intel 35816 7
snd_hda_codec 145704 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 6364 1 snd_hda_codec
snd_pcm 76860 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 7330 2 snd_pcm,snd_hda_intel
snd_timer 18687 1 snd_pcm
snd 58893 20 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore 5418 1 snd$ lsmod | grep snd
snd_hda_codec_hdmi 29298 1
snd_hda_codec_realtek 30893 1
snd_hda_intel 35816 7
snd_hda_codec 145704 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 6364 1 snd_hda_codec
snd_pcm 76860 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 7330 2 snd_pcm,snd_hda_intel
snd_timer 18687 1 snd_pcm
snd 58893 20 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore 5418 1 snd
[sean@arch ~]$ lsmod | grep '^snd' | column -t
snd_hda_codec_hdmi 29298 1
snd_hda_codec_realtek 30893 1
snd_hda_intel 35816 7
snd_hda_codec 145704 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 6364 1 snd_hda_codec
snd_pcm 76860 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 7330 2 snd_pcm,snd_hda_intel
snd_timer 18687 1 snd_pcm
snd 58893 20 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel$ ls -l /dev/snd
total 0
drwxr-xr-x 2 root root 80 Aug 18 17:50 by-path
crw-rw----+ 1 root audio 116, 8 Aug 18 17:50 controlC0
crw-rw----+ 1 root audio 116, 11 Aug 18 17:50 controlC1
crw-rw----+ 1 root audio 116, 7 Aug 18 17:50 hwC0D2
crw-rw----+ 1 root audio 116, 10 Aug 18 17:50 hwC1D0
crw-rw----+ 1 root audio 116, 6 Aug 18 21:53 pcmC0D0c
crw-rw----+ 1 root audio 116, 5 Aug 18 22:15 pcmC0D0p
crw-rw----+ 1 root audio 116, 4 Aug 18 21:53 pcmC0D1c
crw-rw----+ 1 root audio 116, 3 Aug 18 21:54 pcmC0D1p
crw-rw----+ 1 root audio 116, 2 Aug 18 17:50 pcmC0D2c
crw-rw----+ 1 root audio 116, 9 Aug 18 22:29 pcmC1D3p
crw-rw---- 1 root audio 116, 1 Aug 18 17:50 seq
crw-rw----+ 1 root audio 116, 33 Aug 18 17:50 timerLast edited by seanthor (2013-09-14 13:40:50)
Arch Linux 64-bit | Intel Core i7-6500U CPU @ 2.50GHz x 4 | RAM: 8 Gb | GNOME | Dualboot w/ Windows 10 | Razer Blade Stealth (1st gen.)
Offline
Are you using ALSA, PulseAudio, OSS or something else?
Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository
Offline
He's using aplay, which means he should be using Alsa.
You can try to do it with modprobe with something like:
/etc/modprobe.d/alsa.conf
----------------------------------------------------------
alias snd-card-0 snd_hda_codec_hdmi
alias sound-slot-0 snd_hda_codec_hdmi
options snd_hda_codec_hdmi index=0
options snd_hda_intel index=1Offline
Yes, I'm using ALSA. Sorry, the others slipped my mind. Whoops. ![]()
at0m5k: Thank you for this. I'll try it when I get home tonite and post the results. (I assume it should kick in after a system reboot?)
Arch Linux 64-bit | Intel Core i7-6500U CPU @ 2.50GHz x 4 | RAM: 8 Gb | GNOME | Dualboot w/ Windows 10 | Razer Blade Stealth (1st gen.)
Offline
I tried the above modprobe.d alteration, and I think it has made the hdmi card the default, but something's still not right. For example, no sound from firefox. When I open alsamixer, the hdmi card is the one that loads. But I cannot test with speaker-test anymore:
$ speaker-test -c2
speaker-test 1.0.27.1
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directoryWhat am I missing?
Also, when I rebooted I got the message at login:
arch login: [ 10.623989] snd_hda_codec_hdmi: Unknown parameter `index'New aplay -l:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: ID aa01 Digital [ID aa01 Digital]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: MID [HDA Intel MID], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: MID [HDA Intel MID], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0Last edited by seanthor (2013-08-19 12:13:13)
Arch Linux 64-bit | Intel Core i7-6500U CPU @ 2.50GHz x 4 | RAM: 8 Gb | GNOME | Dualboot w/ Windows 10 | Razer Blade Stealth (1st gen.)
Offline
Please post the output of cat /proc/asound/modules.
$ cat /proc/asound/modules
0 snd_hda_intel
1 snd_hda_intelLast edited by seanthor (2013-08-20 12:54:03)
Arch Linux 64-bit | Intel Core i7-6500U CPU @ 2.50GHz x 4 | RAM: 8 Gb | GNOME | Dualboot w/ Windows 10 | Razer Blade Stealth (1st gen.)
Offline
Offline
I overlooked the fact that both cards are using snd_hda_intel (I should've known that >.<). Please post the outputs of cat /proc/asound/card*/id. There should be 2 cards in /proc/asound.
$ cat /proc/asound/card*/id
Generic
MIDArch Linux 64-bit | Intel Core i7-6500U CPU @ 2.50GHz x 4 | RAM: 8 Gb | GNOME | Dualboot w/ Windows 10 | Razer Blade Stealth (1st gen.)
Offline
Try deleting the options lines in the modprobe.d conf. file that I posted earlier and replace them with options snd_hda_intel id=MID index=1. That should set HDMI to the default card but if it doesn't you can add options snd_hda_intel id=Generic index=0 just to be sure. If that doesn't work try deleting the alias lines and leaving only the options lines.
Offline
Try deleting the options lines in the modprobe.d conf. file that I posted earlier and replace them with options snd_hda_intel id=MID index=1. That should set HDMI to the default card but if it doesn't you can add options snd_hda_intel id=Generic index=0 just to be sure. If that doesn't work try deleting the alias lines and leaving only the options lines.
I tried all of the above and still no joy. When I opened alsamixer just now, the card that came up was the onboard intel audio, NOT the PCI HDMI out I need to use. VLC is currently playing, but now I get this message whenever a new track starts:
Audio output failed:
The audio device "hdmi:CARD=Generic,DEV=0" could not be used:
No such file or directory.I no longer notice any other error messages.
New (current) /etc/modeprobe.d/alsa.conf
options snd_hda_intel id=MID index=1
options snd_hda_intel id=Generic index=0Arch Linux 64-bit | Intel Core i7-6500U CPU @ 2.50GHz x 4 | RAM: 8 Gb | GNOME | Dualboot w/ Windows 10 | Razer Blade Stealth (1st gen.)
Offline
Okay, so what you probably need to do to get this working is to mess around with .asoundrc. Remove the modprobe.d conf file that you created earlier and then create or edit ~/.asoundrc and add the following:
pcm.!default {
type hw
card 1
device 3
}After you reboot or force restart alsa, HDMI should be default (hopefully).
Offline
Ok, done, but no joy. I still get the warning from VLC (although it's intermittant. I find this odd). No sound on firefox, no sound with the command "speaker-test" either--but "speaker-test" will run again. When I open "alsamixer" the HDMI card is not the first screen that appears, but when I switch over to the "generic" card I have a new PCM volume option.
Should I try different options with the ~/asoundrc file? Perhaps a different way to mark HDMI as what I want?
Arch Linux 64-bit | Intel Core i7-6500U CPU @ 2.50GHz x 4 | RAM: 8 Gb | GNOME | Dualboot w/ Windows 10 | Razer Blade Stealth (1st gen.)
Offline
Maybe you need more in the asoundrc or a combination of asoundrc and modprobe.d settings. At this point, I'm not really sure if I can help you much more. Alsa can be tricky unless you really know a lot about it (which I don't), I'm in class right now though so maybe i'll figure something out later in the day. I think that PulseAudio might be simpler if that's an option for you.
Offline
Alsa can be tricky unless you really know a lot about it (which I don't)
Tell me about it! And you surely know more than I! ;-)
Thank you for your time, I really appreciate it. Do you know how I could perhaps bring this to the attention of someone well versed in ALSA? I can try Pulse again, but have always had more success w/ ALSA. . .
Arch Linux 64-bit | Intel Core i7-6500U CPU @ 2.50GHz x 4 | RAM: 8 Gb | GNOME | Dualboot w/ Windows 10 | Razer Blade Stealth (1st gen.)
Offline
Try removing everything in .asoundrc and adding defaults.pcm.device 3. You're welcome, I'm just hoping that something will eventually work for you. The only advice I can give is to search these forums for other semi related answers and possibly other forums.
Offline
OK, I think I've got a resolution. I used a combination of several wikis to get it right, mainly:
I searched a number of other pages I don't remember right now, but these were the most helpful as I recall. I again added "radeon.audio=1" to /etc/default/grub per the "Kernel Parameters" and "ATI#HDMI Audio" Arch Wikis. I then modeled my ~/.asoundrc to match the Gentoo Wiki example, with a slight tweak to fit my hardware. That file now looks like this:
GNU nano 2.2.6 File: ~/.asoundrc
pcm.!hdmi {
type hw
card 0
device 3
}
pcm.!default {
type plug
slave {
pcm "hdmi"
}
}It's been a few days, with rebooting everyday, and so far so good. Audio programs (eg. VLC) and flash content are working just fine. However, speaker-test & aplay -D give no errors and the scripts run, but no audio is actuallly produced.
??? Is this a problem, or can I continue to ignore it?
Anyways I consider this pretty much resolved, and hope this helps anyone else with this issue. Cheers!!!
Arch Linux 64-bit | Intel Core i7-6500U CPU @ 2.50GHz x 4 | RAM: 8 Gb | GNOME | Dualboot w/ Windows 10 | Razer Blade Stealth (1st gen.)
Offline