LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Switch pcm profile without logout (https://www.linuxquestions.org/questions/linux-newbie-8/switch-pcm-profile-without-logout-858790/)

kresnik7 01-26-2011 10:16 AM

Switch pcm profile without logout
 
Below is my ~/.asoundrc, which is working as desired. I can change the "pcm.!default" value, log out then back in, and it takes effect as desired.

How can I switch the profiles without logging out?

Code:

pcm.mono_right {
  type route
  slave.pcm  "cards.pcm.default"
  ttable.0.1 1
  ttable.1.1 1
 }

pcm.mono_left {
  type route
  slave.pcm  "cards.pcm.default"
  ttable.0.0 1
  ttable.1.0 1
 }

pcm.!default pcm.mono_right
#pcm.!default pcm.mono_left


lamegaptop 01-27-2011 01:10 PM

/etc/init.d/alsa-utils restart

Might do it.

more info here -

http://alsa.opensrc.org/.asoundrc

kresnik7 01-28-2011 09:04 AM

Nope, that doesn't do it. You first have to kill all applications which are using alsa.

Running the command "alsa force-reload" seems like the best solution so far, but I don't like the applications being killed. Seems like a system limitation though.

http://ubuntuforums.org/showthread.php?t=1675385


All times are GMT -5. The time now is 09:51 PM.