[pulseaudio-discuss] set volume all sinks

poort poort at telenet.be
Mon Feb 15 11:32:07 PST 2010


On Monday 15 February 2010 18:04:05 Michał Sawicz wrote:
> Dnia 2010-02-15, pon o godzinie 16:38 +0000, Colin Guthrie pisze:
> > But that wont be needed if the bug is fixed. The GDM volume will
> > ultimately always be fixed at <initial volume> set by alsa on first
> > boot, and all new user volumes will be based from this.
> >
> > What you describe is not really something we would want to entertain.
> > If
> > the GDM developers want to force the volume then they should code
> > specific support for it.
> >
> > What I described will achieve a standard result once this remaining
> > feature is implemented, so it shouldn't be a practical problem
> > overall.
>
> I think what poort failed to mention is that this 'another' user that
> logs in is the same one in terms of accounts, another user in terms of
> people. @poort, is that the case?
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),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).

Last quick note about ubuntu 9.10 and pulseaudio:only one or two usb 
soundcards are detected , still due to the module-udev-detect bug.

poort



More information about the pulseaudio-discuss mailing list