Управление питанием повреждает Bluetooth на KDE

Я использую Ubuntu 16.10 с Единицей и установленный 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. Ошибка. Неудавшийся

После многих много часов экспериментирования я узнал, что bluedevil является частью проблемы. После sudo apt remove bluedevil и перезагрузка, все хорошо работает (кроме недостающего апплета Bluetooth, конечно).

Вот хвост моего системного журнала, сразу после входа в систему 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 состояние 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-устройство (и зафиксируйте это)?

Обновление: Я установил blueman как альтернативный менеджер, но я узнал, что просто установка blueman 'решает' проблему.

Обновление 2: Blueman только временно решил проблему. Отключение управления питанием решает проблему теперь, но это - просто обходное решение. Все еще ища решение и объяснение, почему эта проблема не происходит на Единице.

0
задан 3 April 2017 в 06:32

1 ответ

Я отключил TLP, и это решило проблему. Для отключения TLP установите TLP_ENABLE=0 в /etc/default/tlp.

Это решило две других проблемы также:

0
ответ дан 3 November 2019 в 12:47

Другие вопросы по тегам:

Похожие вопросы: