[pulseaudio-discuss] set volume all sinks

Colin Guthrie gmane at colin.guthr.ie
Mon Feb 15 12:22:26 PST 2010


'Twas brillig, and poort at 15/02/10 19:32 did gyre and gimble:
> It's about public multiseat computer.That's one computer(ubuntu) with several 
> users.
> Each screen or display or seat has an usb soundcard.Every user always logs in 
> on the same seat/display.No problem there.
> So let's say that a person logs in on screen1(seat1) ,mutes the sound.
> A next person logs in at same screen1(seat1) with same username/passwd(these 
> are public computers), but founds no sound(sound is muted by last person 
> before him), so usualy than i get a phone call about the no sound and have to 
> tell to the person to unmute the sound.
> So I have to make sure that the sound volume gets unmuted again at login.
> So I am thinking to write a script with:
> set-sink-volume 0 55000
> to be called with gdm postlogin default.
> But as there are for example six soundcards, I cannot determine the default 
> sink for the users (so i could set the script per user),

Hmm I'm a bit confused here. Each seat should only see one USB audio
card each. Perhaps you should look to console-kit here to make sure the
ACLs are written on the USB devices appropriately. If this is setup
right each seat would only see one card.

I'm beginning to think that you are running PA in system wide mode
here.... which is really not the right way to do things for such a setup.


i have to put all the
> sinks outputs set-sink-volume at login:
> set-sink-volume 0 55000
> set-sink-volume 1 55000
> set-sink-volume 2 55000
> set-sink-volume 3 55000
> and so on..
> This works ok because the default sinks changing sometimes also:
> when one usb-soundcards fails or did not wake up in time, the sinks order is 
> changing, so I have to re-assign the correct sinks to the correct 
> screen/user.(i have also a script for this however).

Assuming you run in the default per-user mode:

Is there any reason not to clear out the user's home directory after
logout? I'd have thought that if the data was kept then one user could
leave things in a pretty nasty state for the next user generally? (i.e.
homepage reset, desktop background changed to an inappropriate image etc.).

If this was done then the user's choice of muted audio should be reset
(assuming that the aforementioned bug is fixed), and the gdm default
should take over and be applied for the "first" login of the user.

So with that in mind, I still maintain that fixing the bug will solve
your problem with the GDM user's volume being the reference.

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]




More information about the pulseaudio-discuss mailing list