[pulseaudio-discuss] How manage volume remotely on pulseaudio
Christian Schmitz
list at schweb.com.ar
Wed Jan 20 13:24:05 UTC 2021
Dear Matt.
Yes I install the pavucontrol on the kid computer. Inside SSH session if i
open Chromium it open en kid screen, but if i open pavucontrol then open in
my screen and cant connect with kid pulseaudio.
Dear guest271314
Is not bad the script solution, dont solve all office issues as require
volume low because a customer phone call, but is a good approach. Maybe a
small script that read volume and set with cursor key ( or another key), and
can be part of pulseaudio for the future.
I can do the script in perl to collaborate to the project, but i dont know
how read the actual mastervolume.
Dear guest271314
About WebRTC solution, is so complex. Is more simple uninstall pulseaudio and
back to alsa, is more easy get the volume control. I understand that some
tools have complex funcionality, but i think that never loose the focus of
the origint and maintain a simple usage.
Best Regards
Christian
On Tuesday 19 January 2021 18:45:00 Matt Garman wrote:
> To be clear, you want pavucontrol installed on your kid's machine, and
> you will run it directly from her machine. (In theory, you can run
> pavucontrol on your machine, but control volumes on your kid's
> machine. But I expect that to be even more complicated.)
>
> So, the first step is to make sure X forwarding is working as
> expected. Ssh into your kid's machine, then try to run a familiar
> graphical program. I always use "xlogo" for this, it's about the
> simplest X11 program possible. But, in my experience, many modern
> Linux distributions do not install this by default. If xlogo is not
> installed, and you can't figure out how to get it installed, try
> running something you know works, like an xterm (or gnome-terminal,
> Konsole, rxvt, etc), or even a browser. This is just a sanity check
> that you can run graphical X11 programs on your kid's computer, but
> have them display on yours.
>
> As I wrote that, I thought of something: do you know, does your
> distribution use Wayland instead of X11? If so, that complicates
> things, as I am not familiar with getting Wayland to do remote display
> the way X11 does.
>
> Let us know how it goes!
>
> On Tue, Jan 19, 2021 at 3:04 PM Christian Schmitz <list at schweb.com.ar>
wrote:
> > Dear Matt:
> > Thanks for the patience. I install pavucontrol and do
> > "ssh -Y user at kid"
> > I get an error, you can see in the image.
> > if i run pavucontrol in the same machine of my kid goes to bacground and
> > none is open.
> >
> > Best Regards
> > Christian
> >
> > On Tuesday 19 January 2021 16:58:32 Matt Garman wrote:
> > > Ssh with X forwarding: "ssh -Y user at kid". The "-Y" is what does the X
> > > forwarding. Hopefully, with that you can run "pavucontrol", which is
> > > a GUI that is loosely similar to alsamixer.
> > >
> > > On Tue, Jan 19, 2021 at 1:52 PM Christian Schmitz <list at schweb.com.ar>
> >
> > wrote:
> > > > Dear Matt
> > > > I have full access to the machine, ( i install it for my wife
> > > > and kid). Sadly i dont know how do ssh with X forwarding. So i go for
> > > > pactl.
> > > >
> > > > user at kid > pactl
> > > > no valid comand
> > > > user at kid > pactl
> > > > Big big list of things.
> > > >
> > > > i get some of sucess doing:
> > > > pactl set-sink-volume 0 32768
> > > >
> > > > There are some tool more friendly that pactl, with look similar to
> > > > alsamixer or etc?
> > > >
> > > > Best Regards
> > > > Christian
> > > >
> > > > On Tuesday 19 January 2021 15:53:03 Matt Garman wrote:
> > > > > If you can login as your child (i.e., same user account as him) on
> > > > > his Linux system (ssh with X forwarding), then you should be able
> > > > > to run "pavucontrol". Loosely speaking, pavucontrol is to Pulse
> > > > > Audio as alsamixer is to ALSA. It's a GUI app. I'm not sure if
> > > > > there exists a strictly text equivalent of pavucontrol.
> > > > >
> > > > > There is also a commandline tool call "pactl". This would allow
> > > > > you to control the Pulse Audio daemon on your child's computer
> > > > > without a GUI (though there is a bit of a learning curve).
> > > > >
> > > > > On Tue, Jan 19, 2021 at 12:13 PM Christian Schmitz
> > > > > <list at schweb.com.ar>
> > > >
> > > > wrote:
> > > > > > Hi everyone:
> > > > > >
> > > > > > I am in the office with my computer ( Linux tumbleweed), and my
> > > > > > kid of 3 years old is in another computer showing videos from
> > > > > > youtube. Both computer have a normal user sound configuration (
> > > > > > each computer playing their own sound).
> > > > > >
> > > > > > Some videos are quieter and another are very loudness. With my
> > > > > > first kid (10 years back) i do:
> > > > > > 1)SSH as root
> > > > > > 2)amixer and upper or lower the volume.
> > > > > >
> > > > > > Now i cant find a way to do this with pulseaudio. If i do
> > > > > > 1)I do ssh as root successfully
> > > > > > 2)
> > > > > > 2.1) # amixer
> > > > > > ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to
> > > > > > connect: Connection refused
> > > > > >
> > > > > > 2.2) # alsamixer
> > > > > > ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to
> > > > > > connect: Conexión negada (Connection refused in spanish)
> > > > > >
> > > > > >
> > > > > > 2.3) if i do sudo to the same linux user that is showing the
> > > > > > video:
> > > > > >
> > > > > > user at computer> amixer
> > > > > > XDG_RUNTIME_DIR (/run/user/0) is not owned by us (uid 1001), but
> > > > > > by uid 0! (This could e.g. happen if you try to connect to a
> > > > > > non-root PulseAudio as a root user, over the native protocol.
> > > > > > Don't do that.) ALSA lib pulse.c:242:(pulse_connect) PulseAudio:
> > > > > > Unable to connect: Connection refused
> > > > > >
> > > > > > How i can control the sound volume of my kid from my computer?
> > > > > >
> > > > > > Thanks all
> > > > > > Christian Schmitz
> > > > > >
> > > > > > --
> > > > > > Be Free, Be Linux
> > > > > > _______________________________________________
> > > > > > pulseaudio-discuss mailing list
> > > > > > pulseaudio-discuss at lists.freedesktop.org
> > > > > > https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> > > > >
> > > > > _______________________________________________
> > > > > pulseaudio-discuss mailing list
> > > > > pulseaudio-discuss at lists.freedesktop.org
> > > > > https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> > > >
> > > > --
> > > > Be Free, Be Linux
> > > > _______________________________________________
> > > > pulseaudio-discuss mailing list
> > > > pulseaudio-discuss at lists.freedesktop.org
> > > > https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> > >
> > > _______________________________________________
> > > pulseaudio-discuss mailing list
> > > pulseaudio-discuss at lists.freedesktop.org
> > > https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> >
> > --
> > Be Free, Be Linux
> > _______________________________________________
> > pulseaudio-discuss mailing list
> > pulseaudio-discuss at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
--
Be Free, Be Linux
More information about the pulseaudio-discuss
mailing list