Hello. I would be very much interested in a proper solution for this.
Best 18.06.2012, 19:45, "Yan Seiner" <[email protected]>: > You can do something similar with alsa + udev; you just have to create > fixed device names using udev, and then write a script that sets the > default alsa device to the appropriate fixed name based on the DISPLAY > variable. > > On Mon, June 18, 2012 8:00 am, [email protected] wrote: > >> Thanks for the input but using pulseaudio is not an option. >> >> An wise Scandinavian old man once said: "in the end, everything is going >> to be alright" >> >> ________________________________ >> From: linux-service.be bvba <[email protected]> >> To: [email protected] >> Sent: Monday, June 18, 2012 5:56 PM >> Subject: Re: defining sound card in xorg.conf >> >> start such script when user is logging in: >> >> #!/bin/bash >> >> # in order to match a screen-set to a pulseaudio sink : >> >> if [ "$DISPLAY" ] >> then >> if [ "$DISPLAY" = ":1" ] >> then >> sleep 3 >> pacmd "set-default-sink >> alsa_output.usb-0d8c_C-Media_USB_Headphone_Set-00-Set_1.analog-stereo" >> pulseaudio -D >> fi >> if [ "$DISPLAY" = ":2" ] >> then >> sleep 3 >> pacmd "set-default-sink >> alsa_output.usb-0d8c_C-Media_USB_Headphone_Set-00-Set.analog-stereo" >> pulseaudio -D >> fi >> if [ "$DISPLAY" = ":3" ] >> then >> sleep 3 >> pacmd "set-default-sink >> alsa_output.usb-0d8c_C-Media_USB_Headphone_Set-00-Set_2.analog-stereo" >> pulseaudio -D >> fi >> fi >> >> ofcourse edit script with your sound devices and find out where the sound >> is going to( at which display). >> Make sure the user's /home/user/.pulse is empty upon login. >> Enjoy >> guy >>> Hi, >>> Actually it goes out of scope space of X. >>> You should ask to sound system developers, how i can set default sound >>> card according to my environment variables with multiple sound cards >>> on board. >>> >>> Here is little outdated link: >>> http://perso.nnx.com/pludov/sessiond/ >>> >>> This tool will replace sound device files like /dev/dsp* with links to >>> each sound card files >>> depending of DISPLAY variable. >>> >>> Aivils >>> >>> Citējot "[email protected]" <[email protected]>: >>>> Hello, >>>> >>>> Thanks for the replay but I'm not sure how this answers my question. >>>> using xorg I can "seats", e.g. xorg will run a session limited to a >>>> specific combination of gpu, screen, keyboard and mouse. >>>> I just want to add sound card to it. >>>> >>>> An wise Scandinavian old man once said: "in the end, everything is >>>> going to be alright" >>>> >>>> ________________________________ >>>> >>>> From: Giuseppe Penone <[email protected]> >>>> >>>> To: "[email protected]" <[email protected]> >>>> Cc: "[email protected]" <[email protected]> >>>> Sent: Monday, June 18, 2012 9:31 AM >>>> Subject: Re: defining sound card in xorg.conf >>>> >>>> for usb audio cards there's a good explanation here >>>> https://help.ubuntu.com/community/UbuntuStudio/UsbAudioDevices >>>> >>>> anyway to make it simple: >>>> >>>> 1) check that your system recognized the usb audio: >>>> cat/proc/asound/cards >>>> >>>> 2) set the desired card as default used: >>>> sudo nano /etc/modprobe.d/alsa-base >>>> go to the bottom and change the index of the default card from -2 to 0 >>>> >>>> cheers. >>>> >>>> On Sat, Jun 16, 2012 at 10:54 PM, [email protected] >>>> <[email protected]> wrote: >>>> >>>> Hello All, >>>>> I'm about to reinstate my 3 way multiseat configuration (2 seats >>>>> and one for the tv), up until now I didn't used the sound cards but >>>>> now as I got a usb sound card I want to add sound support. >>>>> >>>>> is there a way to define in xorg.conf what sound card will be used >>>>> by what seat? >>>>> >>>>> Thanks. >>>>> >>>>> An wise Scandinavian old man once said: "in the end, everything is >>>>> going to be alright" >>>>> _______________________________________________ >>>>> [email protected]: X.Org support >>>>> Archives: http://lists.freedesktop.org/archives/xorg >>>>> Info: http://lists.x.org/mailman/listinfo/xorg >>>>> Your subscription address: [email protected] >>>> _______________________________________________ >>>> [email protected]: X.Org support >>>> Archives: http://lists.freedesktop.org/archives/xorg >>>> Info: http://lists.x.org/mailman/listinfo/xorg >>>> Your subscription address: [email protected] >>> _______________________________________________ >>> [email protected]: X.Org support >>> Archives: http://lists.freedesktop.org/archives/xorg >>> Info: http://lists.x.org/mailman/listinfo/xorg >>> Your subscription address: [email protected] >> _______________________________________________ >> [email protected]: X.Org support >> Archives: http://lists.freedesktop.org/archives/xorg >> Info: http://lists.x.org/mailman/listinfo/xorg >> Your subscription address: [email protected] >> >> !DSPAM:4fdf4365245151290716676! >> _______________________________________________ >> [email protected]: X.Org support >> Archives: http://lists.freedesktop.org/archives/xorg >> Info: http://lists.x.org/mailman/listinfo/xorg >> Your subscription address: [email protected] >> >> !DSPAM:4fdf4365245151290716676! > -- > Q: How can you tell Spring is here in Oregon? > A: The rain is warmer. > > My daughter is racing a triathlon to raise money for her swim team. > Please donate and keep kids off the sofa! > > http://www.facebook.com/RiverRoadKids4Kids > > _______________________________________________ > [email protected]: X.Org support > Archives: http://lists.freedesktop.org/archives/xorg > Info: http://lists.x.org/mailman/listinfo/xorg > Your subscription address: [email protected] _______________________________________________ [email protected]: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: [email protected]
