Thank you for reading this post, don't forget to subscribe!
после обновления убунты с 22 на 24 версию возникли проблемы со звуком и с блютус.
устройства в системе находятся:
lspci -v
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
lspci -v 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex Subsystem: Lenovo Renoir/Cezanne Root Complex Flags: fast devsel 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU Subsystem: Lenovo Renoir/Cezanne IOMMU Flags: bus master, fast devsel, latency 0, IRQ 255 Capabilities: <access denied> 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge Flags: fast devsel, IOMMU group 0 00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode]) Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge Flags: bus master, fast devsel, latency 0, IRQ 28, IOMMU group 1 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 I/O behind bridge: 3000-3fff [size=4K] [16-bit] Memory behind bridge: d0000000-d0ffffff [size=16M] [32-bit] Prefetchable memory behind bridge: fb00000000-fc01ffffff [size=4128M] [32-bit] Capabilities: <access denied> Kernel driver in use: pcieport 00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode]) Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge Flags: bus master, fast devsel, latency 0, IRQ 29, IOMMU group 2 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 I/O behind bridge: 2000-2fff [size=4K] [16-bit] Memory behind bridge: d1600000-d16fffff [size=1M] [32-bit] Prefetchable memory behind bridge: [disabled] [64-bit] Capabilities: <access denied> Kernel driver in use: pcieport 00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode]) Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge Flags: bus master, fast devsel, latency 0, IRQ 30, IOMMU group 3 Bus: primary=00, secondary=03, subordinate=03, sec-latency=0 I/O behind bridge: [disabled] [32-bit] Memory behind bridge: [disabled] [32-bit] Prefetchable memory behind bridge: fc02000000-fc021fffff [size=2M] [32-bit] Capabilities: <access denied> Kernel driver in use: pcieport 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge Flags: fast devsel, IOMMU group 4 00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode]) Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge Flags: bus master, fast devsel, latency 0, IRQ 31, IOMMU group 5 Bus: primary=00, secondary=04, subordinate=04, sec-latency=0 I/O behind bridge: [disabled] [32-bit] Memory behind bridge: d1500000-d15fffff [size=1M] [32-bit] Prefetchable memory behind bridge: [disabled] [64-bit] Capabilities: <access denied> Kernel driver in use: pcieport 00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode]) Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge Flags: bus master, fast devsel, latency 0, IRQ 32, IOMMU group 6 Bus: primary=00, secondary=05, subordinate=05, sec-latency=0 I/O behind bridge: [disabled] [32-bit] Memory behind bridge: d1400000-d14fffff [size=1M] [32-bit] Prefetchable memory behind bridge: [disabled] [64-bit] Capabilities: <access denied> Kernel driver in use: pcieport 00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge Flags: fast devsel, IOMMU group 7 00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus (prog-if 00 [Normal decode]) Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus Flags: bus master, fast devsel, latency 0, IRQ 33, IOMMU group 8 Bus: primary=00, secondary=06, subordinate=06, sec-latency=0 I/O behind bridge: 1000-1fff [size=4K] [16-bit] Memory behind bridge: d1000000-d13fffff [size=4M] [32-bit] Prefetchable memory behind bridge: fc10000000-fc201fffff [size=258M] [32-bit] Capabilities: <access denied> Kernel driver in use: pcieport 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51) Subsystem: Lenovo FCH SMBus Controller Flags: 66MHz, medium devsel, IOMMU group 9 Kernel driver in use: piix4_smbus Kernel modules: i2c_piix4, sp5100_tco 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51) Subsystem: Lenovo FCH LPC Bridge Flags: bus master, 66MHz, medium devsel, latency 0, IOMMU group 9 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0 Flags: fast devsel, IOMMU group 10 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1 Flags: fast devsel, IOMMU group 10 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2 Flags: fast devsel, IOMMU group 10 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3 Flags: fast devsel, IOMMU group 10 Kernel driver in use: k10temp Kernel modules: k10temp 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4 Flags: fast devsel, IOMMU group 10 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5 Flags: fast devsel, IOMMU group 10 00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6 Flags: fast devsel, IOMMU group 10 00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7 Flags: fast devsel, IOMMU group 10 01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1) Subsystem: Lenovo GA107M [GeForce RTX 3050 Mobile] Flags: bus master, fast devsel, latency 0, IRQ 93, IOMMU group 11 Memory at d0000000 (32-bit, non-prefetchable) [size=16M] Memory at fb00000000 (64-bit, prefetchable) [size=4G] Memory at fc00000000 (64-bit, prefetchable) [size=32M] I/O ports at 3000 [size=128] Capabilities: <access denied> Kernel driver in use: nvidia Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15) Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller Flags: bus master, fast devsel, latency 0, IRQ 44, IOMMU group 12 I/O ports at 2000 [size=256] Memory at d1604000 (64-bit, non-prefetchable) [size=4K] Memory at d1600000 (64-bit, non-prefetchable) [size=16K] Capabilities: <access denied> Kernel driver in use: r8169 Kernel modules: r8169 03:00.0 Network controller: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter DeviceName: Realtek RTL8111E Ethernet LOM Subsystem: Lenovo MT7921 802.11ax PCI Express Wireless Network Adapter Flags: bus master, fast devsel, latency 0, IRQ 88, IOMMU group 13 Memory at fc02000000 (64-bit, prefetchable) [size=1M] Memory at fc02100000 (64-bit, prefetchable) [size=16K] Memory at fc02104000 (64-bit, prefetchable) [size=4K] Capabilities: <access denied> Kernel driver in use: mt7921e Kernel modules: mt7921e 04:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. A2000 NVMe SSD SM2263EN (rev 03) (prog-if 02 [NVM Express]) Subsystem: Kingston Technology Company, Inc. A2000 NVMe SSD SM2263EN Flags: bus master, fast devsel, latency 0, IRQ 54, IOMMU group 14 Memory at d1500000 (64-bit, non-prefetchable) [size=16K] Capabilities: <access denied> Kernel driver in use: nvme Kernel modules: nvme 05:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller 980 (DRAM-less) (prog-if 02 [NVM Express]) Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller 980 (DRAM-less) Flags: bus master, fast devsel, latency 0, IRQ 55, IOMMU group 15 Memory at d1400000 (64-bit, non-prefetchable) [size=16K] Capabilities: <access denied> Kernel driver in use: nvme Kernel modules: nvme 06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c6) (prog-if 00 [VGA controller]) Subsystem: Lenovo Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] Flags: bus master, fast devsel, latency 0, IRQ 45, IOMMU group 16 Memory at fc10000000 (64-bit, prefetchable) [size=256M] Memory at fc20000000 (64-bit, prefetchable) [size=2M] I/O ports at 1000 [size=256] Memory at d1300000 (32-bit, non-prefetchable) [size=512K] Capabilities: <access denied> Kernel driver in use: amdgpu Kernel modules: amdgpu 06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller Subsystem: Lenovo Renoir Radeon High Definition Audio Controller Flags: bus master, fast devsel, latency 0, IRQ 90, IOMMU group 17 Memory at d13c8000 (32-bit, non-prefetchable) [size=16K] Capabilities: <access denied> Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel 06:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor Subsystem: Lenovo Family 17h (Models 10h-1fh) Platform Security Processor Flags: bus master, fast devsel, latency 0, IRQ 54, IOMMU group 18 Memory at d1200000 (32-bit, non-prefetchable) [size=1M] Memory at d13cc000 (32-bit, non-prefetchable) [size=8K] Capabilities: <access denied> Kernel driver in use: ccp Kernel modules: ccp 06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 (prog-if 30 [XHCI]) Subsystem: Lenovo Renoir/Cezanne USB 3.1 Flags: bus master, fast devsel, latency 0, IRQ 35, IOMMU group 19 Memory at d1000000 (64-bit, non-prefetchable) [size=1M] Capabilities: <access denied> Kernel driver in use: xhci_hcd Kernel modules: xhci_pci 06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 (prog-if 30 [XHCI]) Subsystem: Lenovo Renoir/Cezanne USB 3.1 Flags: bus master, fast devsel, latency 0, IRQ 45, IOMMU group 20 Memory at d1100000 (64-bit, non-prefetchable) [size=1M] Capabilities: <access denied> Kernel driver in use: xhci_hcd Kernel modules: xhci_pci 06:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01) Subsystem: Lenovo ACP/ACP3X/ACP6x Audio Coprocessor Flags: fast devsel, IRQ 88, IOMMU group 21 Memory at d1380000 (32-bit, non-prefetchable) [size=256K] Capabilities: <access denied> Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh, snd_sof_amd_acp63 06:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller Subsystem: Lenovo Family 17h/19h HD Audio Controller Flags: bus master, fast devsel, latency 0, IRQ 91, IOMMU group 22 Memory at d13c0000 (32-bit, non-prefetchable) [size=32K] Capabilities: <access denied> Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel |
если мы запустим
alsamixer
нажмём F6 и выберем нашу карту
увеличивая эти ползунки ничего не меняется
при попытки подключить bluetooth гарнитуру сопряжение проходит но потом идёт дисконнект
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[bluetooth]# [CHG] Controller B4:B5:B6:74:44:A4 Discovering: yes [bluetooth]# [NEW] Device 95:05:BB:22:C2:5D Soundcore Life Q20+ [bluetooth]# [CHG] Device 95:05:BB:22:C2:5D RSSI is nil [bluetooth]# [CHG] Controller B4:B5:B6:74:44:A4 Discovering: no [CHG] Device 95:05:BB:22:C2:5D Connected: yes [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D Bonded: yes [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D UUIDs: 00000001-0000-1000-8000-00805f9b34fb [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D UUIDs: 00001101-0000-1000-8000-00805f9b34fb [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D UUIDs: 0000110b-0000-1000-8000-00805f9b34fb [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D UUIDs: 0000110c-0000-1000-8000-00805f9b34fb [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D UUIDs: 0000110e-0000-1000-8000-00805f9b34fb [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D UUIDs: 0000110f-0000-1000-8000-00805f9b34fb [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D UUIDs: 0000111e-0000-1000-8000-00805f9b34fb [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D UUIDs: 00001203-0000-1000-8000-00805f9b34fb [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D UUIDs: 0cf12d31-fac3-4553-bd80-d6832e7b3025 [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D UUIDs: 66666666-6666-6666-6666-666666666666 [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D ServicesResolved: yes [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D Paired: yes [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D Trusted: yes [Soundcore Life Q20+]# [CHG] Device 95:05:BB:22:C2:5D ServicesResolved: no [CHG] Device 95:05:BB:22:C2:5D Connected: no |
проблема в аудио драйверах а именно pipewire и pulseaudio
я сначала попробовал удалить всё что касается pulseaudio и оставить только pipewire но мне это не помогло.
тогда я поставил обратно pulseaudio
1 |
sudo apt install pulseaudio pulseaudio-module-bluetooth pulseaudio-utils |
после перезагрузки пульс и пайп мешаются друг другу, нужно выключить пайп - удалить не вариант так как тащит очень много зависимостей
проверяем юиты чтоб их выключить - НЕ из под root а ПОД своим ПОЛЬЗОВАТЕЛЕМ
1 2 3 4 5 6 7 |
systemctl --user list-unit-files | grep pipewire pipewire-media-session.service enabled enabled pipewire-pulse.service enabled enabled pipewire-session-manager.service enabled enabled pipewire.service enabled enabled pipewire-pulse.socket enabled enabled pipewire.socket enabled enabled |
выключить эти юниты у меня не получилось:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
systemctl --user disable pipewire.service The following unit files have been enabled in global scope. This means they will still be started automatically after a successful disablement in user scope: pipewire.service sudo systemctl --user disable pipewire.service Failed to connect to bus: Носитель не найден sudo systemctl disable pipewire.service Failed to disable unit: Unit file pipewire.service does not exist. |
хотя вот это должно было помочь
1 2 3 |
systemctl --user --now disable pipewire-media-session.service systemctl --user --now disable pipewire pipewire-pulse systemctl --user --now enable pulseaudio.service pulseaudio.socket |
поэтому сделал следующее:
1 |
systemctl --user mask pipewire-media-session.service pipewire-pulse.service pipewire-session-manager.service pipewire.service pipewire-pulse.socket pipewire.socket |
и для надёжности посмотрел где расположены юнит файлы
1 2 3 4 5 6 7 8 9 10 11 12 |
ls -la /etc/systemd/user/default.target.wants/ итого 12 drwxr-xr-x 2 root root 4096 ноя 12 15:08 . drwxr-xr-x 13 root root 4096 ноя 12 15:08 .. lrwxrwxrwx 1 root root 54 ноя 12 15:08 drkonqi-coredump-cleanup.service -> /usr/lib/systemd/user/drkonqi-coredump-cleanup.service lrwxrwxrwx 1 root root 42 ноя 12 15:08 filter-chain.service -> /usr/lib/systemd/user/filter-chain.service lrwxrwxrwx 1 root root 44 авг 21 2022 pipewire-pulse.service -> /usr/lib/systemd/user/pipewire-pulse.service lrwxrwxrwx 1 root root 38 авг 21 2022 pipewire.service -> /usr/lib/systemd/user/pipewire.service lrwxrwxrwx 1 root root 40 ноя 24 2021 pulseaudio.service -> /usr/lib/systemd/user/pulseaudio.service lrwxrwxrwx 1 root root 82 окт 14 13:35 snap.snapd-desktop-integration.snapd-desktop-integration.service -> /etc/systemd/user/snap.snapd-desktop-integration.snapd-desktop-integration.service lrwxrwxrwx 1 root root 40 окт 24 06:39 ubuntu-report.path -> /usr/lib/systemd/user/ubuntu-report.path |
и переименовал их
1 2 3 |
sudo mv /usr/lib/systemd/user/pipewire-pulse.service /usr/lib/systemd/user/pipewire-pulse.service.old sudo mv /usr/lib/systemd/user/pipewire.service /usr/lib/systemd/user/pipewire.service.old |
проверяем:
1 2 3 4 5 6 7 |
systemctl --user list-unit-files | grep pipewire pipewire-media-session.service masked enabled pipewire-pulse.service masked enabled pipewire-session-manager.service masked enabled pipewire-pulse.socket masked enabled pipewire.socket masked enabled |
ну и смотрим что сам pulsaudio работает:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
systemctl --user status pulseaudio ● pulseaudio.service - Sound Service Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; preset: enabled) Active: active (running) since Wed 2024-11-13 10:59:33 +06; 4h 3min ago TriggeredBy: ● pulseaudio.socket Main PID: 2861 (pulseaudio) Tasks: 9 (limit: 18318) Memory: 15.4M (peak: 17.1M) CPU: 24.586s CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pulseaudio.service ├─2861 /usr/bin/pulseaudio --daemonize=no --log-target=journal └─2923 /usr/libexec/pulse/gsettings-helper ноя 13 10:59:32 work systemd[2842]: Starting pulseaudio.service - Sound Service… ноя 13 10:59:33 work systemd[2842]: Started pulseaudio.service - Sound Service. |
мне это помогло звук заработал, блютус тоже нормально подключается.