asteroid icon indicating copy to clipboard operation
asteroid copied to clipboard

[dory] Bluetooth does not turn on

Open MrRocketFX opened this issue 5 years ago • 10 comments

Bluetooth doesnt work at all and the toggle for it sometimes crashes the entire OS

MrRocketFX avatar Sep 17 '20 22:09 MrRocketFX

I just flashed the latest nightly on dory and I can not reproduce your issue.

Please provide more information such as:

  • Which nightly/stable do you run on your watch
  • can you still connect via ssh after a "crash"?
    • if yes: what does journalctl say?
    • does long pressing the display resolve the issue?
  • have you tried rebooting/reflashing the watch?

Possibly related: AsteroidOS/meta-smartwatch#47

jrtberlin avatar Sep 18 '20 09:09 jrtberlin

I have just build a dory image and the Bluetooth is working for me too.

romainreignier avatar Sep 23 '20 22:09 romainreignier

Actually, last night, I have shutdown my watch and this morning, this morning, I have the same issue, as described in AsteroidOS/meta-smartwatch#47 Even after several power cycles, the Settings/Bluetooth button does not do anything. In SSH shell, bluetoothctl reports no controller available:

ceres@dory:~$ bluetoothctl
Agent registered
[bluetooth]# list
[bluetooth]# scan on
No default controller available
[bluetooth]# 

Nothing special in dmesg about Bluetooth:

ceres@dory:~$ dmesg | grep -i Bluetooth
[    0.281819] Bluetooth: Core ver 2.20
[    0.281898] Bluetooth: HCI device and connection manager initialized
[    0.281935] Bluetooth: HCI socket layer initialized
[    0.281966] Bluetooth: L2CAP socket layer initialized
[    0.282022] Bluetooth: SCO socket layer initialized
[    0.639726] rfkill: bluetooth_rfkill_probe: entry
[    0.639820] rfkill: bluetooth_set_power: set blocked 1
[    0.639849] rfkill: bluetooth_set_power: Bluetooth OFF!!
[    0.938196] Bluetooth: HCI UART driver ver 2.3
[    0.938224] Bluetooth: HCI UART protocol H4 registered
[    0.938872] Bluetooth: BlueSleep Mode Driver Ver 1.1
[    0.939239] Bluetooth: bt_host_wake 48, bt_ext_wake 47
[    0.939283] Bluetooth: host_wake_irq 326, polarity 0
[    1.269977] Bluetooth: RFCOMM TTY layer initialized
[    1.270022] Bluetooth: RFCOMM socket layer initialized
[    1.270065] Bluetooth: RFCOMM ver 1.11
[    1.270096] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.270123] Bluetooth: BNEP filters: protocol multicast
[    1.270156] Bluetooth: BNEP socket layer initialized
[    1.270182] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.270217] Bluetooth: HIDP socket layer initialized
[    8.772339] rfkill: bluetooth_set_power: set blocked 0
[    8.833274] rfkill: bluetooth_set_power: Bluetooth ON!!
[   15.760616] rfkill: bluetooth_set_power: set blocked 0
[   15.813408] rfkill: bluetooth_set_power: Bluetooth ON!!
ceres@dory:~$ 

romainreignier avatar Sep 25 '20 08:09 romainreignier

@romainreignier

  1. can you try to add a delay of a few seconds to the patchram service unit?
  2. you can try to disable the service unit and execute it manually including the debug flag

jrtberlin avatar Sep 25 '20 09:09 jrtberlin

Thanks @jrtberlin

I have replaced the 8 seconds sleep by 20 seconds, reboot and Bluetooth worked! On 3 shutdown - power on cycles, the Bluetooth works at each boot. So let's see...

romainreignier avatar Sep 25 '20 09:09 romainreignier

Great to hear! Still is is just a workaround (and we don't know if that fixes it for @FurryFan2003) would be great to get to the bottom of it and find out what it actually depends on and define it in the unit.

jrtberlin avatar Sep 25 '20 10:09 jrtberlin

Hi Everyone,

I am new to all this, and am trying this OS on my old LG G. I too have been having the problem that bluetooth is not turning on. I believe that I tried the @jrtberlin's fix that I changed:

ExecStartPre=/bin/sleep 8

to

ExecStartPre=/bin/sleep 20

in /lib/systemd/system/patchram.service. Is that what I was suppose to do? If so, it did not help. Any other suggestions?

ghost avatar Oct 28 '20 18:10 ghost

Thanks @jrtberlin

I have replaced the 8 seconds sleep by 20 seconds, reboot and Bluetooth worked! On 3 shutdown - power on cycles, the Bluetooth works at each boot. So let's see...

On a fresh nightly this seems to have worked for me so far as well

megamaced avatar Jan 30 '21 22:01 megamaced

I know this is ultra late but even with the latest nightly (14-Aug-2021 11:57) bluetooth is still busted for me and after a reboot it just doesn't boot up

MrRocketFX avatar Aug 28 '21 03:08 MrRocketFX

For me bluetooth has been a non issue since the fix. Also flashed the latest nightly and Bluetooth still working fine every time

megamaced avatar Nov 27 '21 14:11 megamaced

Tested recent dory nightly and found no BT issues. Solved.

moWerk avatar Feb 23 '23 12:02 moWerk