Linux Mint의 alsamixer에서 기본 마스터 볼륨 컨트롤을 "PCM"으로 변경

Linux Mint의 alsamixer에서 기본 마스터 볼륨 컨트롤을 "PCM"으로 변경

저는 Linux Mint를 실행하고 있으며 시스템의 하드웨어 볼륨 컨트롤(예: 볼륨 높이기/낮추기 버튼)을 사용할 때마다 alsamixer에서 "PCM 1" 레벨을 조정합니다. 하지만 대신 "PCM" 레벨을 조정하고 싶습니다.

amixer -c 1사용 가능한 컨트롤을 보여주는 출력은 다음과 같습니다.

Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 74
  Mono:
  Front Left: Playback 74 [100%] [0.00dB] [on]
  Front Right: Playback 74 [100%] [0.00dB] [on]
Simple mixer control 'PCM',1
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 74
  Mono:
  Front Left: Playback 74 [100%] [0.00dB] [on]
  Front Right: Playback 74 [100%] [0.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 74
  Mono: Capture 74 [100%] [0.00dB] [on]

PulseAudio의 default.pa 구성을 수정하려고 시도했지만 이로 인해 오디오가 손실되었습니다.

맞춤 스크립트나 키 바인딩이 포함되지 않은 솔루션을 찾고 있습니다. 나는 표준 마스터 볼륨을 "PCM"으로 직접 변경하는 것을 선호합니다.

어떤 제안이나 통찰력이라도 대단히 감사하겠습니다!

요청에 따라 출력은 다음과 같습니다 cat ~/.xbindkeysrc.

## For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.7
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# To specify a key, you can use 'xbindkeys --key' or
# 'xbindkeys --multikey' and put one of the two lines in this file.
#
# The format of a command line is:
#    "command to start"
#       associated key
#
#
# A list of keys is in /usr/include/X11/keysym.h and in
# /usr/include/X11/keysymdef.h
# The XK_ is not needed.
#
# List of modifier:
#   Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
#   Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#

# The release modifier is not a standard X modifier, but you can
# use it if you want to catch release events instead of press events

# By defaults, xbindkeys does not pay attention with the modifiers
# NumLock, CapsLock and ScrollLock.
# Uncomment the lines above if you want to pay attention to them.

#keystate_numlock = enable
#keystate_capslock = enable
#keystate_scrolllock= enable

# Examples of commands:

"xbindkeys_show" 
  control+shift + q

# set directly keycode (here control + f with my keyboard)
#"xterm"
#  c:41 + m:0x4

# specify a mouse button
#"xterm"
#  control + b:2

#"xterm -geom 50x20+20+20"
#   Shift+Mod2+alt + s
#
## set directly keycode (here control+alt+mod2 + f with my keyboard)
#"xterm"
#  alt + c:0x29 + m:4 + mod2
#
## Control+Shift+a  release event starts rxvt
#"rxvt"
#  release+control+shift + a
#
## Control + mouse button 2 release event starts rxvt
#"rxvt"
#  Control + b:2 + Release

##################################
# End of xbindkeys configuration #
##################################

#"xdotool type 'r'"
#Control+Alt + Right

출력 pacmd list-cards:

4 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_01_00.1>
    driver: <module-alsa-card.c>
    owner module: 7
    properties:
        alsa.card = "2"
        alsa.card_name = "HDA NVidia"
        alsa.long_card_name = "HDA NVidia at 0xdc080000 irq 17"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:01:00.1"
        sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2"
        device.bus = "pci"
        device.vendor.id = "10de"
        device.vendor.name = "NVIDIA Corporation"
        device.product.id = "10f0"
        device.product.name = "GP104 High Definition Audio Controller"
        device.string = "2"
        device.description = "GP104 High Definition Audio Controller"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        output:hdmi-stereo: Digital Stereo (HDMI)-Ausgabe (priority 38668, available: unknown)
        output:hdmi-stereo-extra1: Digital Stereo (HDMI 2)-Ausgabe (priority 38468, available: unknown)
        output:hdmi-stereo-extra2: Digital Stereo (HDMI 3)-Ausgabe (priority 38468, available: unknown)
        output:hdmi-stereo-extra3: Digital Stereo (HDMI 4)-Ausgabe (priority 5700, available: no)
        output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4)-Ausgabe (priority 600, available: no)
        output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4)-Ausgabe (priority 600, available: no)
        off: Aus (priority 0, available: unknown)
    active profile: <output:hdmi-stereo>
    sinks:
        alsa_output.pci-0000_01_00.1.hdmi-stereo/#11: GP104 High Definition Audio Controller Digital Stereo (HDMI)
    sources:
        alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor/#14: Monitor of GP104 High Definition Audio Controller Digital Stereo (HDMI)
    ports:
        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
            properties:
                device.icon_name = "video-display"
                device.product.name = "LG HDR 4K
   "
        hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
            properties:
                device.icon_name = "video-display"
                device.product.name = "27GL650F
    "
        hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: yes)
            properties:
                device.icon_name = "video-display"
                device.product.name = "27GL650F
    "
        hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
    index: 1
    name: <alsa_card.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00>
    driver: <module-alsa-card.c>
    owner module: 8
    properties:
        alsa.card = "1"
        alsa.card_name = "SteelSeries Arctis 9"
        alsa.long_card_name = "SteelSeries SteelSeries Arctis 9 at usb-0000:00:14.0-3.1, full speed"
        alsa.driver_name = "snd_usb_audio"
        device.bus_path = "pci-0000:00:14.0-usb-0:3.1:1.0"
        sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1:1.0/sound/card1"
        udev.id = "usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00"
        device.bus = "usb"
        device.vendor.id = "1038"
        device.vendor.name = "SteelSeries ApS"
        device.product.id = "12c4"
        device.product.name = "SteelSeries Arctis 9"
        device.serial = "SteelSeries_SteelSeries_Arctis_9_000000000000"
        device.string = "1"
        device.description = "SteelSeries Arctis 9"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-usb"
    profiles:
        output:stereo-game+output:stereo-chat+input:mono-chat: Spiel-Ausgabe + Chat-Ausgabe + Chat-Eingabe (priority 5100, available: unknown)
        input:mono-chat: Chat-Eingabe (priority 1, available: unknown)
        output:stereo-chat: Chat-Ausgabe (priority 5000, available: unknown)
        output:stereo-chat+input:mono-chat: Chat-Ausgabe + Chat-Eingabe (priority 5000, available: unknown)
        output:stereo-game: Spiel-Ausgabe (priority 5000, available: unknown)
        output:stereo-game+input:mono-chat: Spiel-Ausgabe + Chat-Eingabe (priority 5000, available: unknown)
        off: Aus (priority 0, available: unknown)
    active profile: <output:stereo-game+output:stereo-chat+input:mono-chat>
    sinks:
        alsa_output.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00.stereo-game/#1: SteelSeries Arctis 9 Spiel
        alsa_output.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00.stereo-chat/#2: SteelSeries Arctis 9 Chat
    sources:
        alsa_output.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00.stereo-game.monitor/#1: Monitor of SteelSeries Arctis 9 Spiel
        alsa_output.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00.stereo-chat.monitor/#2: Monitor of SteelSeries Arctis 9 Chat
        alsa_input.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00.mono-chat/#3: SteelSeries Arctis 9 Chat
    ports:
        usb-gaming-headset-output-stereo: Headphones (priority 0, latency offset 0 usec, available: unknown)
            properties:
                
        usb-gaming-headset-input: Headset Microphone (priority 0, latency offset 0 usec, available: unknown)
            properties:
                
    index: 2
    name: <alsa_card.usb-046d_081b_61151E20-02>
    driver: <module-alsa-card.c>
    owner module: 9
    properties:
        alsa.card = "3"
        alsa.card_name = "USB Device 0x46d:0x81b"
        alsa.long_card_name = "USB Device 0x46d:0x81b at usb-0000:00:14.0-6, high speed"
        alsa.driver_name = "snd_usb_audio"
        device.bus_path = "pci-0000:00:14.0-usb-0:6:1.2"
        sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.2/sound/card3"
        udev.id = "usb-046d_081b_61151E20-02"
        device.bus = "usb"
        device.vendor.id = "046d"
        device.vendor.name = "Logitech, Inc."
        device.product.id = "081b"
        device.product.name = "Webcam C310"
        device.serial = "046d_081b_61151E20"
        device.form_factor = "webcam"
        device.string = "3"
        device.description = "Webcam C310"
        module-udev-detect.discovered = "1"
        device.icon_name = "camera-web-usb"
    profiles:
        input:mono-fallback: Mono-Eingabe (priority 1, available: unknown)
        off: Aus (priority 0, available: unknown)
    active profile: <input:mono-fallback>
    sources:
        alsa_input.usb-046d_081b_61151E20-02.mono-fallback/#4: Webcam C310 Mono
    ports:
        analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-input-microphone"
    index: 3
    name: <alsa_card.pci-0000_00_1f.3>
    driver: <module-alsa-card.c>
    owner module: 10
    properties:
        alsa.card = "0"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0x2ffff20000 irq 139"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1f.3"
        sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "a2f0"
        device.product.name = "200 Series PCH HD Audio"
        device.form_factor = "internal"
        device.string = "0"
        device.description = "Eingebautes Tongerät"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        input:analog-stereo: Analog Stereo-Eingabe (priority 32833, available: unknown)
        output:analog-stereo: Analog Stereo-Ausgabe (priority 6500, available: no)
        output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
        output:analog-surround-21: Analog Surround 2.1-Ausgabe (priority 1300, available: no)
        output:analog-surround-21+input:analog-stereo: Analog Surround 2.1-Ausgabe + Analog Stereo-Eingabe (priority 1365, available: unknown)
        output:analog-surround-40: Analog Surround 4.0-Ausgabe (priority 1200, available: no)
        output:analog-surround-40+input:analog-stereo: Analog Surround 4.0-Ausgabe + Analog Stereo-Eingabe (priority 1265, available: unknown)
        output:analog-surround-41: Analog Surround 4.1-Ausgabe (priority 1300, available: no)
        output:analog-surround-41+input:analog-stereo: Analog Surround 4.1-Ausgabe + Analog Stereo-Eingabe (priority 1365, available: unknown)
        output:analog-surround-50: Analog Surround 5.0-Ausgabe (priority 1200, available: no)
        output:analog-surround-50+input:analog-stereo: Analog Surround 5.0-Ausgabe + Analog Stereo-Eingabe (priority 1265, available: unknown)
        output:analog-surround-51: Analog Surround 5.1-Ausgabe (priority 1300, available: no)
        output:analog-surround-51+input:analog-stereo: Analog Surround 5.1-Ausgabe + Analog Stereo-Eingabe (priority 1365, available: unknown)
        output:analog-surround-71: Analog Surround 7.1-Ausgabe (priority 1200, available: no)
        output:analog-surround-71+input:analog-stereo: Analog Surround 7.1-Ausgabe + Analog Stereo-Eingabe (priority 1265, available: unknown)
        output:iec958-stereo: Digital Stereo (IEC958)-Ausgabe (priority 38268, available: unknown)
        output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958)-Ausgabe + Analog Stereo-Eingabe (priority 38333, available: unknown)
        off: Aus (priority 0, available: unknown)
    active profile: <output:iec958-stereo+input:analog-stereo>
    sinks:
        alsa_output.pci-0000_00_1f.3.iec958-stereo/#3: Eingebautes Tongerät Digital Stereo (IEC958)
    sources:
        alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor/#5: Monitor of Eingebautes Tongerät Digital Stereo (IEC958)
        alsa_input.pci-0000_00_1f.3.analog-stereo/#6: Eingebautes Tongerät Analog Stereo
    ports:
        analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: yes)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
            properties:
                
        analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
            properties:
                
        analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-headphones"
        iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
            properties:

alsamixer 개요

답변1

pulseaudio를 업데이트(또는 재설치)할 때마다 또는 예비 테스트로 이 파일을 변경해도 괜찮다면 이 파일을 직접 변경할 수 있습니다.

/usr/share/pulseaudio/alsa-mixer/paths/usb-gaming-headset-output-stereo.conf

파일을 삭제한 ,1Element PCM. (내 생각에는 그런 것이 필요하지 않을 것 같습니다 ,0.) 파일을 변경한 후 다음을 사용하여 pulseaudio 서버를 다시 시작하십시오.

systemctl --user restart pulseaudio

파일이 지속적으로 변경되는 것을 방지하려면 다음 파일을 복사해야 합니다.

/usr/share/pulseaudio/alsa-mixer/paths/usb-gaming-headset-output-stereo.conf
/usr/share/pulseaudio/alsa-mixer/profile-sets/usb-gaming-headset.conf

동일한 이름의 모든 이름으로(다른 기존 파일과 충돌/대체하지 않음)각각의예를 들면 다음과 같습니다.

/usr/share/pulseaudio/alsa-mixer/paths/usb-gaming-headset-output-stereo-0.conf
/usr/share/pulseaudio/alsa-mixer/profile-sets/usb-gaming-headset-0.conf

그런 다음 새 프로파일 세트 파일( usb-gaming-headset-0.conf) 에서모두에스믹서 경로가 포함된 파일의 복사본 이름 usb-gaming-headset-output-stereo(없음)입니다..confusb-gaming-headset-output-stereo-0

원본 파일에서 변경 사항을 적용하거나 되돌리지 않은 경우 ,1믹서 경로 파일( )의 복사본을 삭제하는 것을 잊지 마십시오.usb-gaming-headset-output-stereo-0.conf

마지막으로 접두사를 사용하여 udev 규칙 파일을 만듭니다 91-( override 관련 효과에 대해 90-pulseaudio.rules). 예:

/etc/udev/rules.d/91-pulse-pcm.rules

(확장자가 있는지 확인하세요 .rules)

다음 내용을 포함하는 줄(값은 ENV{PULSE_PROFILE_SET}프로파일 세트 파일의 복사본을 위해 선택한 이름이어야 함):

SUBSYSTEM=="sound", ACTION=="change", KERNEL=="card*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="12c4", ENV{PULSE_PROFILE_SET}="usb-gaming-headset-0.conf"

SUBSYSTEM( and 와 혼동하지 않도록 주의하세요 . 를 놓치지 SUBSYSTEMS마세요 . and 와 혼동하지 마세요 .)SATTRS===

모든 작업이 완료되면 다음 명령을 실행하거나 재부팅하여 적용하십시오.

sudo systemctl restart systemd-udevd
sudo systemctl restart systemd-udev-trigger
systemctl --user restart pulseaudio

PS 귀하의 배포판은 특정 시스템 업데이트/업그레이드 이후와 같이 특정 시점에 시스템이 파이프라인와이어를 사용하도록 암시적으로 활성화할 수 있습니다. Pipewire에도 문제가 있는지는 모르겠지만 어느 날 해킹이 더 이상 작동하지 않는다면 스위치가 원인일 수도 있습니다. ( pacmd list-sinks그러면 pulseaudio가 실행되고 있지 않으며 pactl list sinks"pipewire-pulse"에서 제공하는 사용 가능한 수신기가 나열된다는 메시지가 표시됩니다).

관련 정보