We are trying to wake the Colibri imx6ull from standby by sending it a bluetooth connection request. After setting the wakeup entry to enabled it works from command line. However, when using bluepy to manage connections with BLE devices, it does not work anymore. It is possible to suspend the device, however connection requests do not wake it up anymore. We would be happy if you could point us in a direction where to look for the error. Used kernel version is: 4.14.117-3.0.2+ge43e3a26e1b7
Sending the Board to standby with
rtcwake -m standby -d rtc0 -s 120
On a separate machine: use bluetoothctl to connect to the imx6ull (in bluetoothctl: 'connect ')
The connect request successfully wakes up the board from sleep.
Not working BT wakeup
We want our Board to communicate with a Bluetooth Low Energy device. This communication is handled by bluepy. After receiving a packet, we send the board to standby from within a python script.
Again we try to wakeup the board with a connect request from bluetoothctl on a second machine. However in this case it does not wake up the board. We are unsure on where to look for the error.
Where is the wakeup be processed?
In the meantime we found a solution for our problem.
Bluepy uses a helper binary based on bluez to maintain connections and also process events. It does not seem to work for wakeup events.
If the helper binary is terminated before going to standby, wakeup on bluetooth works again.