You are not logged in.
I have a fresh install of arch linux with xfce and lightdm installed and working. The PC is a Intel NUC with only 2 HDMI ports for audio and video. I'm connected to port 0 HDMI. aplay -L shows:
null
Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio OutputI have sound if I play a video with vlc, but only if I change the device in vlc from default to HDMI 0
None of the speaker-test stuff from the wiki works. From other post I saw why alsa-state.service was not running and fixed that with adding the ! in ConditionPathExists=!/etc/alsa/state-daemon.conf
I also added the file /etc/asound.conf
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}So what am i missing??
Last edited by jfabernathy (2019-01-17 15:59:54)
Offline
I have a fresh install of arch linux with xfce and lightdm installed and working. The PC is a Intel NUC with only 2 HDMI ports for audio and video. I'm connected to port 0 HDMI. aplay -L shows:
null Discard all samples (playback) or generate zero samples (capture) hdmi:CARD=PCH,DEV=0 HDA Intel PCH, HDMI 0 HDMI Audio Output hdmi:CARD=PCH,DEV=1 HDA Intel PCH, HDMI 1 HDMI Audio OutputI have sound if I play a video with vlc, but only if I change the device in vlc from default to HDMI 0
can you repost that without any adjustments in any config files? And
aplay -las well please
None of the speaker-test stuff from the wiki works. From other post I saw why alsa-state.service was not running and fixed that with adding the ! in ConditionPathExists=!/etc/alsa/state-daemon.conf
That change is misguided and incorrect (there are 2 files for 2 distinct, but separate and incompatible, ways of resetting mixer state, that conditional exists precisely to prevent both of them running at the same time), and also irrelevant to your problem even if it wasn't.
I also added the file /etc/asound.conf
pcm.!default { type hw card 0 } ctl.!default { type hw card 0 }So what am i missing??
As mentioned in the wiki this is an overriding, and breaking way to change your default, and really shouldn't be used as is if your entire intention is to only change the default device.
The least invasive fix is to change the defaults node as explained in this section Without seeing your aplay -l I can't tell you the exact line but interpeting from what we have, should be something like
defaults.pcm.subdevice 3 #Check that number against aplay -linstead of your current config
Last edited by V1del (2019-01-17 15:50:19)
Offline
I have removed my /etc/asound.conf file and removed the "!" from the alsa-state.service file and rebooted. Below is the results of aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0Offline
Ah that really is the entirety of your sound card support? That reads weird, however in this case use
defaults.pcm.device 3
defaults.ctl.device 3as your /etc/asound.conf
Last edited by V1del (2019-01-17 15:52:38)
Offline
Thanks, that solved it. Now with vlc set to automatic audio it will play with either Default or HDMI 0
Also speaker-test -c 2 works
Offline