Hi, i’m running latest jessie image (25/05) and the syslog is filled with the error sunxi-bt bt: block state already is 0.
This message comes every 5 seconds. I think it is related to bluetooth.
the command rfkill list all returns:
0: sunxi-bt: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: brcmfmac-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
4: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
I’m not sure what this means but it looks like there are 2 bluetooth devices hci0 and sunxi-bt.
I am not using bluetooth or the raspbian GUI as i am running headless as a NAS.
How can i configure sunxi-bt so that it does not start or fix the error block state already is 0?
@jata - rfkill is used to enable/disable wireless devices and the root cause of the message is actually rfkill itself that tries to unblock the device while it is already unblocked. So the proper solution would be to change the script to this:
while true; do
if [ ! -z "`rfkill list | grep -A 1 'sunxi-bt: Bluetooth' | grep 'Soft blocked: yes'`" ]; then
rfkill unblock bluetooth
fi
sleep 5
done
Now BT can still be used without the dmesg errors.