[pulseaudio-discuss] How manage volume remotely on pulseaudio

guest271314 guest271314 at gmail.com
Wed Jan 20 01:07:28 UTC 2021


It should be possible to write a shell script which monitors the decibels
of the specific browser e.g., "Firefox": "AudioStream", "Chrome",
"Chromium" "Playback" output to speakers or headphone

  pactl list sink-inputs

and dynamically set the volume

  pactl [options] set-(sink-input|source-output)-volume #N VOLUME [VOLUME
...]

On Tue, Jan 19, 2021 at 6: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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20210120/0d07336a/attachment.htm>


More information about the pulseaudio-discuss mailing list