Google
  Web www.spinics.net

Re: defining sound card in xorg.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


N ot really; I scrapped my alsa multiseat config for pulseaudio so I no
longer have the scripts.

On Mon, June 18, 2012 11:44 am, StompDagger1@xxxxxxxxx wrote:
> do you have a reference that might be a good stating point?
>
>  
> An wise Scandinavian old man once said: "in the end, everything is going
> to be alright"
>
>
> ________________________________
>  From: Yan Seiner <yan@xxxxxxxxxx>
> To: "StompDagger1@xxxxxxxxx" <stompdagger1@xxxxxxxxx>
> Cc: linux-service.be bvba <guy@xxxxxxxxxxxxxxxx>; "xorg@xxxxxxxxxxx"
> <xorg@xxxxxxxxxxx>
> Sent: Monday, June 18, 2012 6:45 PM
> Subject: Re: defining sound card in xorg.conf
>
> 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, StompDagger1@xxxxxxxxx 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 <guy@xxxxxxxxxxxxxxxx>
>> To: xorg@xxxxxxxxxxx
>> 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 "StompDagger1@xxxxxxxxx" <stompdagger1@xxxxxxxxx>:
>>> > 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 <giuspen@xxxxxxxxx>
>>> >
>>> > To: "StompDagger1@xxxxxxxxx" <stompdagger1@xxxxxxxxx>
>>> > Cc: "xorg@xxxxxxxxxxxxxxxxxxxxx" <xorg@xxxxxxxxxxxxxxxxxxxxx>
>>> > 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, StompDagger1@xxxxxxxxx
>>> > <stompdagger1@xxxxxxxxx> 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"
>>> >> _______________________________________________
>>> >> xorg@xxxxxxxxxxx: X.Org support
>>> >> Archives: http://lists.freedesktop.org/archives/xorg
>>> >> Info: http://lists.x.org/mailman/listinfo/xorg
>>> >> Your subscription address: giuspen@xxxxxxxxx
>>> >
>>> > _______________________________________________
>>> > xorg@xxxxxxxxxxx: X.Org support
>>> > Archives: http://lists.freedesktop.org/archives/xorg
>>> > Info: http://lists.x.org/mailman/listinfo/xorg
>>> > Your subscription address: stompdagger1@xxxxxxxxx
>>>
>>> _______________________________________________
>>> xorg@xxxxxxxxxxx: X.Org support
>>> Archives: http://lists.freedesktop.org/archives/xorg
>>> Info: http://lists.x.org/mailman/listinfo/xorg
>>> Your subscription address: guy@xxxxxxxxxxxxxxxx
>> _______________________________________________
>> xorg@xxxxxxxxxxx: X.Org support
>> Archives: http://lists.freedesktop.org/archives/xorg
>> Info: http://lists.x.org/mailman/listinfo/xorg
>> Your subscription address: stompdagger1@xxxxxxxxx
>>
>>
>> _______________________________________________
>> xorg@xxxxxxxxxxx: X.Org support
>> Archives: http://lists.freedesktop.org/archives/xorg
>> Info: http://lists.x.org/mailman/listinfo/xorg
>> Your subscription address: yan@xxxxxxxxxx
>>
>> !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
>
> _______________________________________________
> xorg@xxxxxxxxxxx: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.x.org/mailman/listinfo/xorg
> Your subscription address: stompdagger1@xxxxxxxxx
>
> !DSPAM:4fdf77e1167899031758699!
>


-- 
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

_______________________________________________
xorg@xxxxxxxxxxx: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: list-xorg@xxxxxxxxxxx



[X Forum]     [Nouveau Driver]     [Devices]     [XFree86]     [XFree86 Newbie]     [Site Home]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Video for Linux]     [Linux RAID]     [Linux Resources]

Powered by Linux