Xubuntu 23.04 蓝牙 - br-连接配置文件不可用

Xubuntu 23.04 蓝牙 - br-连接配置文件不可用

我有类似的问题: Ubuntu 23.04 的蓝牙问题 但没有解决方案

我有蓝牙耳机 Marshall Major III Bluetooth。

在 Xubuntu 22.04 中运行完美,但是升级到 xubuntu 23.04 后就不行了。

它已配对,并且在计算机启动后连接并立即断开连接,并且连接和断开了几次......

蓝牙管理器回答我:连接不成功:br-connection-profile-unavailable。

通过这条消息,我在 arch 论坛上找到了一些答案: https://bbs.archlinux.org/viewtopic.php?id=270465

所以我在 /etc/bluetooth/main.conf 中设置了“ControllerMode = bredr”,但它没有帮助(计算机重启后出现相同的行为) - 并且其他建议我不明白 :-(。

在 dmseg 输出中我(我认为)没有发现任何有用的东西。

但是在 journalctl 中有一些内容:

    čec 16 15:59:27 lenovo-xubuntu-22-04 dbus-daemon[2075]: [session uid=1000 pid=2075] Activating via systemd: service name='org.blueman.Manager' unit='blueman-manager.service' requested by ':1.475' (uid=1000 pid=22636 comm="/usr/bin/python3 /usr/bin/blueman-applet" label="unconfined")
čec 16 15:59:27 lenovo-xubuntu-22-04 systemd[2046]: Starting blueman-manager.service - Bluetooth Manager...
čec 16 15:59:29 lenovo-xubuntu-22-04 dbus-daemon[2075]: [session uid=1000 pid=2075] Successfully activated service 'org.blueman.Manager'
čec 16 15:59:29 lenovo-xubuntu-22-04 systemd[2046]: Started blueman-manager.service - Bluetooth Manager.
čec 16 15:59:30 lenovo-xubuntu-22-04 blueman-applet[22636]: Traceback (most recent call last):
čec 16 15:59:30 lenovo-xubuntu-22-04 blueman-applet[22636]:   File "/usr/lib/python3/dist-packages/blueman/main/DBusProxies.py", line 52, in call_finish
čec 16 15:59:30 lenovo-xubuntu-22-04 blueman-applet[22636]:     proxy.call_finish(resp)
čec 16 15:59:30 lenovo-xubuntu-22-04 blueman-applet[22636]: gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Unknown action ‘Activate’ (16)
čec 16 15:59:30 lenovo-xubuntu-22-04 systemd[1]: Started whoopsie.service - crash report submission.
čec 16 15:59:31 lenovo-xubuntu-22-04 whoopsie[23838]: [15:59:31] Using lock path: /var/lock/whoopsie/lock
čec 16 15:59:31 lenovo-xubuntu-22-04 systemd[1]: whoopsie.service: Deactivated successfully.
čec 16 15:59:56 lenovo-xubuntu-22-04 dbus-daemon[1261]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.254' (uid=1000 pid=23807 comm="xfce4-screenshooter" label="unconfined")
čec 16 15:59:56 lenovo-xubuntu-22-04 systemd[1]: Starting systemd-hostnamed.service - Hostname Service...
čec 16 15:59:57 lenovo-xubuntu-22-04 dbus-daemon[1261]: [system] Successfully activated service 'org.freedesktop.hostname1'
čec 16 15:59:57 lenovo-xubuntu-22-04 systemd[1]: Started systemd-hostnamed.service - Hostname Service.
čec 16 15:59:57 lenovo-xubuntu-22-04 audit[1261]: USER_AVC pid=1261 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.255" pid=2989 label="snap.firefox.firefox" peer_pid=23867 peer_label="unconfined"
                                                    exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
čec 16 15:59:57 lenovo-xubuntu-22-04 kernel: audit: type=1107 audit(1689515997.255:2052): pid=1261 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.255" pid=2989 label="snap.firefox.firefox" peer_pid=23867 peer_label="unconfined"
                                               exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
čec 16 16:00:27 lenovo-xubuntu-22-04 systemd[1]: systemd-hostnamed.service: Deactivated successfully.

请问有人能给我一些建议如何解决这个问题吗?

非常感谢

答案1

这对我有用:

service bluetooth start
systemctl status bluetooth
systemctl --user enable pulseaudio
systemctl --user start pulseaudio

由于某种原因,需要这样做才能正确启动模块。

答案2

谢谢 Babs!它部分起作用了。

对我来说运行命令就足够了:

systemctl --user start pulseaudio

连接后耳机保持连接状态

但我必须在每次重启计算机后运行它...所以我想自动执行它

开启命令后:

systemctl --user status pulseaudio

● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; preset: enabled)
     Active: active (running) since Tue 2023-07-18 16:05:23 CEST; 5s ago
TriggeredBy: ● pulseaudio.socket
   Main PID: 3140 (pulseaudio)
      Tasks: 4 (limit: 9248)
     Memory: 11.5M
        CPU: 183ms
     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pulseaudio.service
             └─3140 /usr/bin/pulseaudio --daemonize=no --log-target=journal

čec 18 16:05:22 lenovo-xubuntu-22-04 systemd[2074]: Starting pulseaudio.service - Sound Service...
čec 18 16:05:22 lenovo-xubuntu-22-04 pulseaudio[3140]: Stale PID file, overwriting.
čec 18 16:05:23 lenovo-xubuntu-22-04 systemd[2074]: Started pulseaudio.service - Sound Service.
čec 18 16:05:23 lenovo-xubuntu-22-04 pulseaudio[3140]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bl>
lines 1-15/15 (END)

所以我想自动运行它。我创建了文件 ~/.local/share/systemd/user/sluchatkaBT.service

内容:

[Unit]
Description=startuje pulseaudio

[Service]
ExecStart=pulseaudio

[Install]
WantedBy=multi-user.target

但下次重启计算机后:

systemctl --user status sluchatkaBT.service 

○ sluchatkaBT.service - startuje pulseaudio
     Loaded: loaded (/home/fik236/.local/share/systemd/user/sluchatkaBT.service; enabled; preset: enabled)
     Active: inactive (dead)

systemctl --user status pulseaudio

○ pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; preset: enabled)
     Active: inactive (dead)
TriggeredBy: ○ pulseaudio.socket

连接后耳机再次断开连接,请问有人能帮我一下,出了什么问题吗?

相关内容