You are not logged in.
I wasn't getting any sound from my TV when I plugged in my HDMI cable, so I followed this part of the alsa wiki page:
https://wiki.archlinux.org/index.php/Ad … s_Not_Work
So, I have this .asoundrc file that tells ALSA to output to the HDMI device. Now it will output to the TV just fine. But if I want to have sound on my laptop again, I have to delete this file (or rename it) and restart ALSA.
Do I just have to keep moving this file and restarting ALSA or is there a way to change the output device while ALSA is running?
If there isn't, will PulseAudio accommodate this?
Offline
If there isn't, will PulseAudio accommodate this?
I can't speak to Alsa, but Pulseaudio will. I have not done it for awhile, but I had the best luck with Jack.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
It's not necessary to restart ALSA.
Apps are supposed to provide the ability to change PCM during runtime themselves, which unfortunately is not as common as we'd like. So restart the app. Depending on the change you've made to ~/.asoundrc, you will probably need to close the other apps that currently have ALSA open - see them with:
fuser -fv /dev/snd/* /dev/dsp* 2>/dev/null
I must be more KISS than Arch - none of pulseaudio, esound, jack or KDE mixer exist on my system - it's just plain ALSA
Oh, and to change between HDMI and your laptop, use a script.
Offline
Or just let both soundcards play the same simultaneously: https://bbs.archlinux.org/viewtopic.php?id=109370
Offline
I must be more KISS than Arch - none of pulseaudio, esound, jack or KDE mixer exist on my system - it's just plain ALSA
i dont use PA, and use ALSA instead -> but what does being "more KISS than Arch" have to do with Jack?!?!
not using Jackd just means you are not a pro-audio user or into writing music in Linux.
Offline