LINUX.ORG.RU

PulseAudio не видит наушники

 , ,


0

2

Несколько дней назад после перезагрузки внезапно отвалился звук. При подключении или отключении наушников PA не видит/продолжает видеть наушники (подключённые через mini-jack на передней панели).

Перезагрузка (с подключёнными наушниками) и pulseaudio -k исправляют ситуацию до следующего подключения/отключения. Нормального решения я не нашёл.

Проблема не связана с наушниками или разъёмом, конфиги не менял, звуковая карта и контроллер определяются нормально:

$ lspci | grep Audio
22:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
24:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller

Пробовал добавлять и менять последовательность загрузки модулей - безрезультатно, вернул дефолтный конфиг.

$ pacmd list-modules
22 module(s) loaded.
    index: 0
	name: <module-device-restore>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Automatically restore the volume/mute state of devices"
		module.version = "14.0"
    index: 1
	name: <module-stream-restore>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Automatically restore the volume/mute/device state of streams"
		module.version = "14.0"
    index: 2
	name: <module-card-restore>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Automatically restore profile of cards"
		module.version = "14.0"
    index: 3
	name: <module-augment-properties>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Augment the property sets of streams with additional static information"
		module.version = "14.0"
    index: 4
	name: <module-switch-on-port-available>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "David Henningsson"
		module.description = "Switches ports and profiles when devices are plugged/unplugged"
		module.version = "14.0"
    index: 5
	name: <module-udev-detect>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Detect available audio hardware and load matching drivers"
		module.version = "14.0"
    index: 6
	name: <module-alsa-card>
	argument: <device_id="0" name="pci-0000_22_00.1" card_name="alsa_card.pci-0000_22_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1">
	used: 0
	load once: no
	properties:
		module.author = "Lennart Poettering"
		module.description = "ALSA Card"
		module.version = "14.0"
    index: 7
	name: <module-alsa-card>
	argument: <device_id="1" name="pci-0000_24_00.3" card_name="alsa_card.pci-0000_24_00.3" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1">
	used: 1
	load once: no
	properties:
		module.author = "Lennart Poettering"
		module.description = "ALSA Card"
		module.version = "14.0"
    index: 8
	name: <module-dbus-protocol>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Tanu Kaskinen"
		module.description = "D-Bus interface"
		module.version = "14.0"
    index: 9
	name: <module-native-protocol-unix>
	argument: <>
	used: -1
	load once: no
	properties:
		module.author = "Lennart Poettering"
		module.description = "Native protocol (UNIX sockets)"
		module.version = "14.0"
    index: 10
	name: <module-gsettings>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Sylvain Baubeau"
		module.description = "GSettings Adapter"
		module.version = "14.0"
    index: 11
	name: <module-default-device-restore>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Automatically restore the default sink and source"
		module.version = "14.0"
    index: 12
	name: <module-always-sink>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Colin Guthrie"
		module.description = "Всегда оставлять хотя бы один аудиоприёмник загруженным, даже если он пустой."
		module.version = "14.0"
    index: 13
	name: <module-intended-roles>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Automatically set device of streams based on intended roles of devices"
		module.version = "14.0"
    index: 14
	name: <module-suspend-on-idle>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "When a sink/source is idle for too long, suspend it"
		module.version = "14.0"
    index: 15
	name: <module-console-kit>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Create a client for each ConsoleKit session of this user"
		module.version = "14.0"
    index: 16
	name: <module-systemd-login>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Create a client for each login session of this user"
		module.version = "14.0"
    index: 17
	name: <module-position-event-sounds>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
		module.version = "14.0"
    index: 18
	name: <module-role-cork>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Lennart Poettering"
		module.description = "Mute & cork streams with certain roles while others exist"
		module.version = "14.0"
    index: 19
	name: <module-filter-heuristics>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Colin Guthrie"
		module.description = "Detect when various filters are desirable"
		module.version = "14.0"
    index: 20
	name: <module-filter-apply>
	argument: <>
	used: -1
	load once: yes
	properties:
		module.author = "Colin Guthrie"
		module.description = "Load filter sinks automatically when needed"
		module.version = "14.0"
    index: 21
	name: <module-cli-protocol-unix>
	argument: <>
	used: -1
	load once: no
	properties:
		module.author = "Lennart Poettering"
		module.description = "Command line interface protocol (UNIX sockets)"
		module.version = "14.0"

Так наушники определяются после перезапуска:

$ pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_24_00.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 13099 /  20% / -41,95 dB,   front-right: 13099 /  20% / -41,95 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 100,13 ms
	max request: 17 KiB
	max rewind: 17 KiB
	monitor source: 0
	sample spec: s16le 2-канальный 4410
	channel map: front-left,front-right
	             Стерео
	used by: 1
	linked by: 1
	fixed latency: 100,14 ms
	card: 1 <alsa_card.pci-0000_24_00.3>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC892 Analog"
		alsa.id = "ALC892 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfe800000 irq 53"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:24:00.3"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:24:00.3/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1457"
		device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
		device.string = "front:1"
		device.buffering.buffer_size = "17664"
		device.buffering.fragment_size = "2944"
		device.access_mode = "mmap"
		device.profile.name = "analog-stereo"
		device.profile.description = "Аналоговый стерео"
		device.description = "Family 17h (Models 00h-0fh) HD Audio Controller Аналоговый стерео"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		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: yes)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-headphones>

Перезагрузка (с подключёнными наушниками) и pulseaudio -k исправляют ситуацию до следующего подключения/отключения.

pulseaudio -k помогает? (Без перезагрузки).

Когда возникает проблема и наушники не видно, то в «pacmd list-sinks» в разделе ports какие состояния портов отображаются (available: no/yes)?

p.s.: в пульсе не так давно что-то правили в этом функционале, возможно что-то сломали на некоторых железках.

altwazar ★★ ()
Последнее исправление: altwazar (всего исправлений: 1)

При подключении и отключении устройства ядро должно генерировать uevent. Его должен поймать демон udevd, обогатить атрибутами и разослать подписчикам. Pulseaudio один из подписчиков.

Какие ивенты генерирует у тебя ядро? Запусти udevadm monitor -k, подключи наушники, покажи, что написал udevadm.

iliyap ★★★★★ ()
Ответ на: комментарий от altwazar

pulseaudio -k помогает и без перезагрузки, ports нет от слова совсем. Когда наушники не определяются:

$ pacmd list-sinks
1 sink(s) available.
  * index: 1
	name: <auto_null>
	driver: <module-null-sink.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: IDLE
	suspend cause: (none)
	priority: 1000
	volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 22,55 ms
	max request: 15 KiB
	max rewind: 15 KiB
	monitor source: 1
	sample spec: s16le 2-канальный 4410
	channel map: front-left,front-right
	             Стерео
	used by: 0
	linked by: 1
	configured latency: 90,00 ms; range is 0,50 .. 2000,00 ms
	module: 22
	properties:
		device.description = "Фиктивный выход"
		device.class = "abstract"
		device.icon_name = "audio-card"

Когда определяются:

$ pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_24_00.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9039
	volume: front-left: 13099 /  20% / -41,95 dB,   front-right: 13099 /  20% / -41,95 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 0,00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2-канальный 4410
	channel map: front-left,front-right
	             Стерео
	used by: 0
	linked by: 0
	fixed latency: 100,14 ms
	card: 1 <alsa_card.pci-0000_24_00.3>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC892 Analog"
		alsa.id = "ALC892 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfe800000 irq 52"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:24:00.3"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:24:00.3/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1457"
		device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
		device.string = "front:1"
		device.buffering.buffer_size = "17664"
		device.buffering.fragment_size = "2944"
		device.access_mode = "mmap"
		device.profile.name = "analog-stereo"
		device.profile.description = "Аналоговый стерео"
		device.description = "Family 17h (Models 00h-0fh) HD Audio Controller Аналоговый стерео"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		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: yes)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-headphones>

Пробовал добавлять set-sink-port 0 analog-output-headphones в конфиг - не помогает.

ArchLurker ()
Ответ на: комментарий от altwazar

Я сделал несколько откатов по датам перед последними обновлениями systemd, evdev и pulseaudio – до 31 декабря всё работает. Проблемы возникают между 30 декабря и 1 января, обновляется только ядро (linux-5.10.3.arch1-1) и вчерашнее обновление до linux-5.10.5.arch1-1 проблему не исправляет.

ArchLurker ()
Ответ на: комментарий от iliyap

Проверил вывод udevadm по датам обновления.

15.12.2020 (libevdev-1.10.0-1):

$ udevadm monitor -k
monitor will print the received events for:
KERNEL - the kernel uevent

KERNEL[60.754343] change   /devices/platform/regulatory.0 (platform)
KERNEL[60.799080] add      /module/ccm (module)
KERNEL[64.050609] change   /devices/platform/regulatory.0
...

25.12.2020 (libevdev-1.10.0-1, systemd-247.2-1)

$ udevadm monitor -k
monitor will print the received events for:
KERNEL - the kernel uevent

KERNEL[116.290531] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001/input/input14/event14 (input)
KERNEL[116.367140] change   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001/input/input14/input14::numlock (leds)
KERNEL[116.367171] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001/input/input14/input14::numlock (leds)
KERNEL[116.367191] change   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001/input/input14/input14::capslock (leds)
KERNEL[116.367202] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001/input/input14/input14::capslock (leds)
KERNEL[116.367212] change   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001/input/input14/input14::scrolllock (leds)
KERNEL[116.367220] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001/input/input14/input14::scrolllock (leds)
KERNEL[116.410157] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001/input/input14 (input)
KERNEL[116.410196] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001/hidraw/hidraw0 (hidraw)
KERNEL[116.410218] unbind   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001 (hid)
KERNEL[116.410244] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0001 (hid)
KERNEL[116.410265] unbind   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0 (usb)
KERNEL[116.410292] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0 (usb)
KERNEL[116.450520] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0002/input/input15/event15 (input)
KERNEL[116.503859] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0002/input/input15 (input)
KERNEL[116.530398] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0002/input/input16/event16 (input)
KERNEL[116.597210] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0002/input/input16 (input)
KERNEL[116.597262] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/usbmisc/hiddev0 (usbmisc)
KERNEL[116.597285] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0002/hidraw/hidraw1 (hidraw)
KERNEL[116.597307] unbind   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0002 (hid)
KERNEL[116.597333] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0002 (hid)
KERNEL[116.597355] unbind   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1 (usb)
KERNEL[116.597376] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1 (usb)
KERNEL[116.606754] unbind   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3 (usb)
KERNEL[116.606801] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/wakeup/wakeup32 (wakeup)
KERNEL[116.606838] remove   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3 (usb)
KERNEL[117.016352] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3 (usb)
KERNEL[117.037991] change   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3 (usb)
KERNEL[117.040402] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0 (usb)
KERNEL[117.045235] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005 (hid)
KERNEL[117.045341] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/wakeup/wakeup32 (wakeup)
KERNEL[117.045440] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005/input/input23 (input)
KERNEL[117.100752] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005/input/input23/event14 (input)
KERNEL[117.100786] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005/input/input23/input23::numlock (leds)
KERNEL[117.100804] change   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005/input/input23/input23::numlock (leds)
KERNEL[117.100817] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005/input/input23/input23::capslock (leds)
KERNEL[117.100833] change   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005/input/input23/input23::capslock (leds)
KERNEL[117.100847] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005/input/input23/input23::scrolllock (leds)
KERNEL[117.100866] change   /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005/input/input23/input23::scrolllock (leds)
KERNEL[117.100883] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005/hidraw/hidraw0 (hidraw)
KERNEL[117.100904] bind     /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0/0003:046D:C328.0005 (hid)
KERNEL[117.100926] bind     /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.0 (usb)
KERNEL[117.100945] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1 (usb)
KERNEL[117.107301] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0006 (hid)
KERNEL[117.107460] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0006/input/input24 (input)
KERNEL[117.164015] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0006/input/input24/event15 (input)
KERNEL[117.164062] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0006/input/input25 (input)
KERNEL[117.164086] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0006/input/input25/event16 (input)
KERNEL[117.164108] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/usbmisc/hiddev0 (usbmisc)
KERNEL[117.164136] add      /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0006/hidraw/hidraw1 (hidraw)
KERNEL[117.164159] bind     /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1/0003:046D:C328.0006 (hid)
KERNEL[117.164182] bind     /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3/3-3:1.1 (usb)
KERNEL[117.164204] bind     /devices/pci0000:00/0000:00:07.1/0000:23:00.3/usb3/3-3 (usb)

28.12.2020 (libevdev-1.10.0-2):

$ udevadm monitor -k
monitor will print the received events for:
KERNEL - the kernel uevent

KERNEL[60.423924] change   /devices/platform/regulatory.0 (platform)
...

08.01.2021 (linux-5.10.5.arch1-1): ничего

Похоже ядро слишком свежее - буду ждать обновлений, спасибо.

ArchLurker ()
Ответ на: комментарий от ArchLurker

Похоже я соврал. У меня тоже нет uevent-ов о подключении гарнитуры. Оказывается ивенты об этом идут в libevdev:

[iliyap@saturn ~]$ grep -i headphone /sys/class/input/*/name
/sys/class/input/input8/name:HDA Intel PCH Headphone
[iliyap@saturn ~]$ evtest /dev/input/event8 
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "HDA Intel PCH Headphone"
Supported events:
  Event type 0 (EV_SYN)
  Event type 5 (EV_SW)
    Event code 2 (SW_HEADPHONE_INSERT) state 0
Properties:
Testing ... (interrupt to exit)
Event: time 1610103163.900436, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1
Event: time 1610103163.900436, -------------- SYN_REPORT ------------
Event: time 1610103173.860830, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 1610103173.860830, -------------- SYN_REPORT ------------
iliyap ★★★★★ ()
Ответ на: комментарий от altwazar

diff подсказывает, что между неопределёнными и отключёнными разницы нет.

$ pacmd list-cards
2 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_22_00.1>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA ATI HDMI"
		alsa.long_card_name = "HDA ATI HDMI at 0xfe960000 irq 52"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:22:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:22:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.product.id = "aaf0"
		device.product.name = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
		device.string = "0"
		device.description = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) выход (priority 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) выход (priority 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) выход (priority 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) выход (priority 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) выход (priority 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) выход (priority 600, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) выход (priority 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) выход (priority 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) выход (priority 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) выход (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) выход (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) выход (priority 600, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) выход (priority 5700, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) выход (priority 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) выход (priority 600, available: no)
		output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) выход (priority 5700, available: no)
		output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) выход (priority 600, available: no)
		output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) выход (priority 600, available: no)
		off: Выключено (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.pci-0000_24_00.3>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfe800000 irq 54"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:24:00.3"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:24:00.3/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1457"
		device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
		device.string = "1"
		device.description = "Family 17h (Models 00h-0fh) HD Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Аналоговый стерео вход (priority 65, available: no)
		output:analog-stereo: Аналоговый стерео выход (priority 6500, available: no)
		output:analog-stereo+input:analog-stereo: Аналоговый стерео дуплекс (priority 6565, available: no)
		off: Выключено (priority 0, available: unknown)
	active profile: <off>
	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: no)
			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"
ArchLurker ()
Ответ на: комментарий от anonymous

Вряд ли - наушники проводные, контроллер realtek alc892, свежее ядро (5.10.5) проблему не исправляет, проблемы начались с 5.10.3, а не 5.10.2.

Впрочем, лучше бы это был косяк сборщика.

ArchLurker ()