From fc3c59a59ef2521abbbab7a1185c0266e013100a Mon Sep 17 00:00:00 2001 From: Ihar Hancharenka Date: Sun, 26 Jan 2025 22:11:56 +0300 Subject: [PATCH] m --- .../clubs/streetoftruth/streetoftruth.txt | 4 +- os/unix/audio/alsa/cli/amixer.txt | 76 +++++++++++++++++++ os/unix/audio/pipewire/pipewire.txt | 9 +++ os/unix/audio/pipewire/pw-cli.txt | 2 + os/unix/audio/pipewire/wpctl.txt | 16 ++++ os/unix/audio/pulse/pactl.txt | 21 +++++ os/unix/audio/{ => pulse}/pulse.txt | 16 +--- 7 files changed, 130 insertions(+), 14 deletions(-) create mode 100644 os/unix/audio/pipewire/pw-cli.txt create mode 100644 os/unix/audio/pipewire/wpctl.txt create mode 100644 os/unix/audio/pulse/pactl.txt rename os/unix/audio/{ => pulse}/pulse.txt (75%) diff --git a/nontech/politics/clubs/streetoftruth/streetoftruth.txt b/nontech/politics/clubs/streetoftruth/streetoftruth.txt index 4a6b3956c..77d479d94 100644 --- a/nontech/politics/clubs/streetoftruth/streetoftruth.txt +++ b/nontech/politics/clubs/streetoftruth/streetoftruth.txt @@ -31,13 +31,15 @@ Michael Mann books: Fashism, Dark Side of Democracy 2025 -InRPC - Hazin - Gevorgyan - Ilnitskiy 01.24 - What Price US will exit from internal catastrofe 40:00 of 1:31:37 +InRPC - Hazin - Gevorgyan - Ilnitskiy 01.24 - What Price US will exit from internal catastrofe of 1:31:37 https://www.youtube.com/watch?v=aHQoJfKwmk0 InRPC - Gevorgyan - Zemskov - Sanyal - Revenge is of 1:06:28 https://www.youtube.com/watch?v=kvRyDIQ4hMI InRPC - Own Big Game 01.17 53:00 of 1:05:18 https://www.youtube.com/watch?v=8D3FD88tZlo 2024 +InRPC - Devyatov - III WW Will end in 2025 by New Currency Peace 15:00 of 1:26:43 + https://www.youtube.com/watch?v=EXTLaOuMB38 InRPC - Hazin - Kostenko - Nov 7 25:00 of 1:10:09 https://www.youtube.com/watch?v=ze2FA3dYupQ InRPC - Hazin - Vinnik - US Politics Madness of 1:21:18 diff --git a/os/unix/audio/alsa/cli/amixer.txt b/os/unix/audio/alsa/cli/amixer.txt index 196775977..2eecada55 100644 --- a/os/unix/audio/alsa/cli/amixer.txt +++ b/os/unix/audio/alsa/cli/amixer.txt @@ -1,3 +1,79 @@ #!/bin/bash vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')" echo "${vol}% volume " + +tui +$ alsamixer +F2 +/proc/asound/version +/proc/asound/cards + 0 HD-Audio Generic + ATI R6xx HDMI + pavucontrol: Renoir Radeon HD Audio Controller Digital Stereo (HDMI) + ??? monitor speakers + + 1 HD-Audio Generic + Realtec ALCS1200A + pavucontrol: Family 17h/19h/1ah HD Audio Controller Analog Stereo + ??? speakers + + 2 USB Audio - USB Audio Device + General Pulse USD Audio Device at usb-0000:06:00 + 3 HD WebCam C270 + USB Mixer +/proc/asound/devices +/proc/asound/oss/devices +/proc/asound/timers +/proc/asound/pcm + +F6, S - select sound card + +baeldung +https://www.baeldung.com/linux/volume-level-command-line + +$ amixer info +Card default 'pipewire'/'PipeWire' + Mixer name : 'PipeWire' + Components : '' + Controls : 4 + Simple ctrls : 2 + +$ amixer scontrols +Simple mixer control 'Master',0 +Simple mixer control 'Capture',0 + +$ amixer scontents +Simple mixer control 'Master',0 + Capabilities: pvolume pswitch pswitch-joined + Playback channels: Front Left - Front Right + Limits: Playback 0 - 65536 + Mono: + Front Left: Playback 28847 [44%] [on] + Front Right: Playback 28847 [44%] [on] +Simple mixer control 'Capture',0 + Capabilities: cvolume cswitch cswitch-joined + Capture channels: Front Left - Front Right + Limits: Capture 0 - 65536 + Front Left: Capture 21845 [33%] [on] + Front Right: Capture 21845 [33%] [on] + +$ amixer controls +numid=4,iface=MIXER,name='Master Playback Switch' +numid=3,iface=MIXER,name='Master Playback Volume' +numid=2,iface=MIXER,name='Capture Switch' +numid=1,iface=MIXER,name='Capture Volume' + +$ amixer contents +numid=4,iface=MIXER,name='Master Playback Switch' + ; type=BOOLEAN,access=rw------,values=1 + : values=on +numid=3,iface=MIXER,name='Master Playback Volume' + ; type=INTEGER,access=rw------,values=2,min=0,max=65536,step=1 + : values=28847,28847 +numid=2,iface=MIXER,name='Capture Switch' + ; type=BOOLEAN,access=rw------,values=1 + : values=on +numid=1,iface=MIXER,name='Capture Volume' + ; type=INTEGER,access=rw------,values=2,min=0,max=65536,step=1 + : values=21845,21845 + diff --git a/os/unix/audio/pipewire/pipewire.txt b/os/unix/audio/pipewire/pipewire.txt index 481fda964..be6af26f0 100644 --- a/os/unix/audio/pipewire/pipewire.txt +++ b/os/unix/audio/pipewire/pipewire.txt @@ -1,2 +1,11 @@ https://pipewire.org/ https://gitlab.freedesktop.org/pipewire/pipewire + +https://wiki.archlinux.org/title/PipeWire + +pwvucontrol +https://github.com/saivert/pwvucontrol + +no +pulseaudio.service +pipewire-pulse.service diff --git a/os/unix/audio/pipewire/pw-cli.txt b/os/unix/audio/pipewire/pw-cli.txt new file mode 100644 index 000000000..57381f102 --- /dev/null +++ b/os/unix/audio/pipewire/pw-cli.txt @@ -0,0 +1,2 @@ +https://docs.pipewire.org/page_man_pw-cli_1.html +https://manpages.ubuntu.com/manpages/focal/man1/pipewire-cli.1.html diff --git a/os/unix/audio/pipewire/wpctl.txt b/os/unix/audio/pipewire/wpctl.txt new file mode 100644 index 000000000..120d6dfd8 --- /dev/null +++ b/os/unix/audio/pipewire/wpctl.txt @@ -0,0 +1,16 @@ +https://wiki.archlinux.org/title/WirePlumber#Keyboard_volume_control + +wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ + +wpctl get-volume @DEFAULT_AUDIO_SINK@ +wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ +wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- +mute/unmute the volume +wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle + +mute/unmite microphone +wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle + +??? +https://kowalcj0.github.io/2022/01/09/handy-pipewire-commands-and-tools/ +/etc/wireplumber/wireplumber.conf.d diff --git a/os/unix/audio/pulse/pactl.txt b/os/unix/audio/pulse/pactl.txt new file mode 100644 index 000000000..3becf40b4 --- /dev/null +++ b/os/unix/audio/pulse/pactl.txt @@ -0,0 +1,21 @@ +https://www.baeldung.com/linux/boost-sound-volume-above-max +https://megamorf.gitlab.io/2018/12/16/set-audio-volume-from-command-line/ + +pactl list [short] sinks +54 alsa_output.pci-0000_06_00.1.hdmi-stereo PipeWire s32le 2ch 48000Hz SUSPENDED +59 alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo PipeWire s16le 2ch 48000Hz RUNNING +61 alsa_output.pci-0000_06_00.6.analog-stereo PipeWire s32le 2ch 48000Hz SUSPENDED + +https://linux.die.net/man/1/pactl +pactl [options] suspend-sink [SINK] 1|0 +pactl [options] suspend-source [SOURCE] 1|0 + +pactl list sinks | grep -B1 -A9 State: + ... + Driver: PipeWire + +pactl set-sink-volume @DEFAULT_SINK@ +5% +pactl set-sink-volume @DEFAULT_SINK@ -5% + +pamixer -i 5 #to increase 5% +pamixer -d 5 #to decrease 5% diff --git a/os/unix/audio/pulse.txt b/os/unix/audio/pulse/pulse.txt similarity index 75% rename from os/unix/audio/pulse.txt rename to os/unix/audio/pulse/pulse.txt index 45a9497e8..cca39b6e9 100644 --- a/os/unix/audio/pulse.txt +++ b/os/unix/audio/pulse/pulse.txt @@ -1,18 +1,12 @@ https://wiki.archlinux.org/title/PulseAudio +https://wiki.archlinux.org/title/PulseAudio/Examples https://wiki.gentoo.org/wiki/PulseAudio +https://wiki.ubuntu.com/PulseAudio + https://habr.com/ru/articles/106806/ /etc/asound.conf /etc/pulse/client.conf ~/.config/pulse/default.pa - pactl - https://www.baeldung.com/linux/boost-sound-volume-above-max - https://megamorf.gitlab.io/2018/12/16/set-audio-volume-from-command-line/ - -PulseAudio -https://wiki.archlinux.org/index.php/PulseAudio -https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting -https://wiki.archlinux.org/index.php/PulseAudio/Examples -https://wiki.ubuntu.com/PulseAudio https://bbs.archlinux.org/viewtopic.php?id=164868 @@ -32,10 +26,6 @@ and that's it. https://forum.manjaro.org/index.php?topic=4809.0 manjaro-pulse, pavucontrol, pulseaudio, pulseaudio-alsa - -pactl - list short sinks - /etc/pulse/default.pa ~/.config/pulse/default.pa ### Automatically load driver modules for Bluetooth hardware