Я использую Ubuntu 16.10 с Unity и KDE Plasma. Я установил Ubuntu 16.04 (из образа восстановления Dell моего XPS 13 9360 Developer Edition), обновлен до 16.10 и установлен kubuntu-desktop.
На моем экране входа (как sddm, так и lightdm) моя мышь bluetooth за работой. Но после входа в систему с плазмой мое устройство Bluetooth перестает работать, когда Bluedevil установлен. Апплет bluetooth говорит, что bluetooth отключен, и галочка выключена.
Команда power on в bluetoothctl дает
Не удалось установить мощность: org.bluez. Error.FailedПосле многих часов экспериментов я узнал, что bluedevil является частью проблемы. После sudo apt remove bluedevil и перезагрузки все работает нормально (помимо отсутствующего аплета bluetooth, конечно).
Вот хвост моего syslog, сразу после входа в систему с использованием KDE Plasma:
Apr 1 22:41:27 stephan-XPS-13-9360 bluetoothd[950]: Starting SDP server
Apr 1 22:41:28 stephan-XPS-13-9360 bluetoothd[950]: Bluetooth management interface 1.13 initialized
Apr 1 22:41:28 stephan-XPS-13-9360 bluetoothd[950]: Failed to obtain handles for "Service Changed" characteristic
Apr 1 22:41:28 stephan-XPS-13-9360 bluetoothd[950]: Sap driver initialization failed.
Apr 1 22:41:28 stephan-XPS-13-9360 bluetoothd[950]: sap-server: Operation not permitted (1)
Apr 1 22:41:28 stephan-XPS-13-9360 NetworkManager[942]: <info> [1491079288.2767] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-device-plugin-bluetooth.so)
Apr 1 22:41:28 stephan-XPS-13-9360 NetworkManager[942]: <info> [1491079288.2915] bluez: use BlueZ version 5
Apr 1 22:41:29 stephan-XPS-13-9360 bluetoothd[950]: Endpoint registered: sender=:1.66 path=/MediaEndpoint/A2DPSource
Apr 1 22:41:30 stephan-XPS-13-9360 bluetoothd[950]: Endpoint registered: sender=:1.66 path=/MediaEndpoint/A2DPSink
Apr 1 22:41:46 stephan-XPS-13-9360 bluetoothd[950]: GATT service objects disabled
Apr 1 22:41:46 stephan-XPS-13-9360 bluetoothd[950]: bt_uhid_send: Invalid argument (22)
Apr 1 22:41:46 stephan-XPS-13-9360 bluetoothd[950]: message repeated 8 times: [ bt_uhid_send: Invalid argument (22)]
Apr 1 22:41:55 stephan-XPS-13-9360 bluetoothd[950]: Endpoint registered: sender=:1.96 path=/MediaEndpoint/A2DPSource
Apr 1 22:41:55 stephan-XPS-13-9360 bluetoothd[950]: Endpoint registered: sender=:1.96 path=/MediaEndpoint/A2DPSink
Apr 1 22:41:55 stephan-XPS-13-9360 bluetoothd[950]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Apr 1 22:41:58 stephan-XPS-13-9360 blueproximity[2416]: started.
Apr 1 22:41:58 stephan-XPS-13-9360 dbus-daemon[2062]: Activating via systemd: service name='org.bluez.obex' unit='dbus-org.bluez.obex.service'
Apr 1 22:41:58 stephan-XPS-13-9360 dbus-daemon[2062]: Successfully activated service 'org.bluez.obex'
Apr 1 22:42:13 stephan-XPS-13-9360 bluetoothd[950]: Endpoint unregistered: sender=:1.66 path=/MediaEndpoint/A2DPSource
Apr 1 22:42:13 stephan-XPS-13-9360 bluetoothd[950]: Endpoint unregistered: sender=:1.66 path=/MediaEndpoint/A2DPSink
и
sudo systemctl status dbus-org.bluez.service:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since za 2017-04-01 22:41:28 CEST; 1min 45s ago
Docs: man:bluetoothd(8)
Main PID: 950 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
└─950 /usr/lib/bluetooth/bluetoothd
apr 01 22:41:46 stephan-XPS-13-9360 bluetoothd[950]: bt_uhid_send: Invalid argument (22)
apr 01 22:41:46 stephan-XPS-13-9360 bluetoothd[950]: bt_uhid_send: Invalid argument (22)
apr 01 22:41:46 stephan-XPS-13-9360 bluetoothd[950]: bt_uhid_send: Invalid argument (22)
apr 01 22:41:46 stephan-XPS-13-9360 bluetoothd[950]: bt_uhid_send: Invalid argument (22)
apr 01 22:41:46 stephan-XPS-13-9360 bluetoothd[950]: bt_uhid_send: Invalid argument (22)
apr 01 22:41:55 stephan-XPS-13-9360 bluetoothd[950]: Endpoint registered: sender=:1.96 path=/MediaEndpoint/A2DPSource
apr 01 22:41:55 stephan-XPS-13-9360 bluetoothd[950]: Endpoint registered: sender=:1.96 path=/MediaEndpoint/A2DPSink
apr 01 22:41:55 stephan-XPS-13-9360 bluetoothd[950]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
apr 01 22:42:13 stephan-XPS-13-9360 bluetoothd[950]: Endpoint unregistered: sender=:1.66 path=/MediaEndpoint/A2DPSource
apr 01 22:42:13 stephan-XPS-13-9360 bluetoothd[950]: Endpoint unregistered: sender=:1.66 path=/MediaEndpoint/A2DPSink
Как узнать, почему управление питанием убивает мое устройство Bluetooth (и исправляет это)?
После многих часов экспериментов я узнал, что bluedevil является частью проблемы. После sudo apt remove bluedevil и перезагрузки все работает нормально (помимо отсутствующего аплета bluetooth, конечно).
Обновление 2: Blueman только временно устранил проблему. Отключение управления питанием решает проблему сейчас, но это всего лишь обходной путь. Все еще ищете решение и объяснение, почему эта проблема не возникает в Unity.
Я отключил TLP, и это решило проблему. Чтобы отключить TLP, установите TLP_ENABLE=0 в /etc/default/tlp.
Он также решил две другие проблемы:
нестабильное соединение Ethernet с адаптером USB-C DA200: http: // en.community.dell.com/support-forums/laptop/f/3518/p/19999580/20989413 медленный перенос USB (35 МБ / с на левом USB, 110 МБ / с на правом USB) и очень малая мощность (~ 0,01 А ) на левом порту USB-A): http://en.community.dell.com/support-forums/laptop/f/3518/t/20003839Я отключил TLP, и это решило проблему. Чтобы отключить TLP, установите TLP_ENABLE=0 в /etc/default/tlp.
Он также решил две другие проблемы:
нестабильное соединение Ethernet с адаптером USB-C DA200: http: // en.community.dell.com/support-forums/laptop/f/3518/p/19999580/20989413 медленный перенос USB (35 МБ / с на левом USB, 110 МБ / с на правом USB) и очень малая мощность (~ 0,01 А ) на левом порту USB-A): http://en.community.dell.com/support-forums/laptop/f/3518/t/20003839Я отключил TLP, и это решило проблему. Чтобы отключить TLP, установите TLP_ENABLE=0 в /etc/default/tlp.
Он также решил две другие проблемы:
нестабильное соединение Ethernet с адаптером USB-C DA200: http: // en.community.dell.com/support-forums/laptop/f/3518/p/19999580/20989413 медленный перенос USB (35 МБ / с на левом USB, 110 МБ / с на правом USB) и очень малая мощность (~ 0,01 А ) на левом порту USB-A): http://en.community.dell.com/support-forums/laptop/f/3518/t/20003839