Как настроить переменную DISPLAY по умолчанию в gdm для работы x11vnc (изменено в CentOS 8 по сравнению с CentOS 7)

Я считаю, что вы можете сделать это, используя ряд инструментов, таких как amixer, или pamd, или pactl.

ПРИМЕЧАНИЕ.:Ваше предположение — это то, как я понимаю вещи. Sinks я приравниваю к реальным звуковым картам (output ), а выходы на них называются портами.

Фактическое определение из этого руководства под названием PulseAudio под капотом:

Sink

A sink is an output device. It is an active unit that consumes samples.

Sink usually runs a thread with its own event loop, peeks sample chunks from connected sink inputs, and mixes them. It also implements clocking and maintains latency. The rest of the world usually communicates with a sink using messages.

The typical sink represents an output sound device, e.g. headphones connected to a sound card line output or on a Bluetooth headset. PulseAudio automatically creates a sink for every detected output device.

Пример

Вот пример, показывающий, как использоватьpactl:

$ pactl list sinks |& grep -E "Sink|Ports|analog-ou"
Sink #0
    Ports:
        analog-output-lineout: Line Out (priority: 9900, not available)
        analog-output-headphones: Headphones (priority: 9000, not available)
    Active Port: analog-output-lineout

Выше вы можете видеть, что Active Port:в настоящее время является линейкой моей звуковой карты. Давайте изменим это на наушники.

$ pactl set-sink-port 0 analog-output-headphones

А если еще раз проверим:

$ pactl list sinks |& grep -E "Sink|Ports|analog-ou"
X11 connection rejected because of wrong authentication.
Sink #0
    Ports:
        analog-output-lineout: Line Out (priority: 9900, not available)
        analog-output-headphones: Headphones (priority: 9000, not available)
    Active Port: analog-output-headphones

Изman pactl:

   set-sink-port SINK PORT
          Set the specified sink (identified by its symbolic name or
          numerical index) to the specified port (identified by its symbolic 
          name).

Что делать, если аудиоустройство исчезло?

В редких случаях я замечал, что устройство вывода звука таинственным образом исчезает из списка устройств. Если вы обнаружите, что это происходит, вы можете легко решить эту проблему, сказав Pulse Audio перезагрузить свои модули :

.

$ pactl load-module module-detect

Ссылки

0
11.06.2021, 02:44
0 ответов

Теги

Похожие вопросы