Trying to check the bluetooth devices in raspberry Pi B 3 model. I am getting no default controller available.
Let me know where to start looking for the issue.
Details collected from board.
snap list
Name Version Rev Tracking Publisher Notes
bluez 5.49-1-dev 174 edge canonical✓ devmode
classic 16.04 42 edge canonical✓ devmode
core 16-2.37.3 6476 beta canonical✓ core
docker 18.06.1-ce 320 beta canonical✓ -
locationd 4.2.1 168 beta canonical✓ -
network-manager 1.2.2-22 383 beta canonical✓ -
pciutils 3.3.1-3 4 edge woodrow -
pi2-kernel 4.4.0-1104.112 83 beta canonical✓ kernel
pi3 16.04-0.6 x2 - - gadget
snappy-debug 0.32-snapd2.36.2+git 275 stable canonical✓ devmode
wifi-ap 21 254 beta canonical✓ -
muthiahn@localhost:~$ sudo bluez.bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available
[bluetooth]#
dmesg | grep tty
[ 0.000000] Kernel command line: 8250.nr_uarts=1 cma=256M@256M bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 dma.dmachans=0x7f35 bcm2709.boardrev=0xa22082 bcm2709.serial=0x24c500f6 bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:C5:00:F6 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty0 elevator=deadline rng_core.default_quality=700 root=/dev/disk/by-label/writable net.ifnames=0 init=/lib/systemd/systemd ro panic=-1 fixrtc snap_core=core_6476.snap snap_kernel=pi2-kernel_83.snap
[ 0.001418] console [tty0] enabled
[ 2.911075] console [ttyS0] disabled
[ 2.911184] 3f215040.uart: ttyS0 at MMIO 0x3f215040 (irq = 59, base_baud = 31250000) is a 16550
[ 3.733224] console [ttyS0] enabled
[ 4.725458] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[ 8.304935] systemd[1]: Created slice system-serial\x2dgetty.slice.
muthiahn@localhost:~$
Feb 26 13:26:05 localhost snapd[1266]: storehelpers.go:445: cannot refresh: snap has no updates available: "bluez", "core", "docker", "locationd", "network-manager", "pciutils", "pi2-kernel", "wifi-ap"
Feb 26 13:31:18 localhost systemd[1]: Mounting Mount unit for bluez, revision 174...
Feb 26 13:31:18 localhost systemd[1]: Mounted Mount unit for bluez, revision 174.
Feb 26 13:31:18 localhost systemd[1]: Stopping Service for snap application bluez.bluez...
Feb 26 13:31:18 localhost bluetoothd[1279]: Terminating
Feb 26 13:31:18 localhost bluetoothd[1279]: Stopping SDP server
Feb 26 13:31:18 localhost bluetoothd[1279]: Exit
Feb 26 13:31:18 localhost systemd[1]: Stopped Service for snap application bluez.bluez.
Feb 26 13:31:19 localhost systemd[1]: Stopping Service for snap application bluez.obex...
Feb 26 13:31:19 localhost bluez.obex[1277]: *** Error in `/snap/bluez/167/usr/lib/bluetooth/obexd': free(): invalid pointer: 0x7ef01d74 ***
Feb 26 13:31:19 localhost systemd[1]: snap.bluez.obex.service: Main process exited, code=killed, status=6/ABRT
Feb 26 13:31:19 localhost systemd[1]: Stopped Service for snap application bluez.obex.
Feb 26 13:31:19 localhost systemd[1]: snap.bluez.obex.service: Unit entered failed state.
Feb 26 13:31:19 localhost systemd[1]: snap.bluez.obex.service: Failed with result 'signal'.
Feb 26 13:31:27 localhost kernel: [ 1545.345419] audit: type=1400 audit(1551187887.326:91): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.bluez.btmgmt" pid=2946 comm="apparmor_parser"
Feb 26 13:31:27 localhost kernel: [ 1545.370796] audit: type=1400 audit(1551187887.354:92): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snapbluez.btattach" pid=2945 comm="apparmor_parser"
Feb 26 13:31:27 localhost kernel: [ 1545.403078] audit: type=1400 audit(1551187887.386:93): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.bluez.bluetoothctl" pid=2943 comm="apparmor_parser"
Feb 26 13:31:27 localhost kernel: [ 1545.411838] audit: type=1400 audit(1551187887.394:94): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.bluez.bluez" pid=2944 comm="apparmor_parser"
Feb 26 13:31:28 localhost kernel: [ 1546.058938] audit: type=1400 audit(1551187888.042:95): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.bluez.hciattach" pid=2949 comm="apparmor_parser"
Feb 26 13:31:28 localhost kernel: [ 1546.066990] audit: type=1400 audit(1551187888.050:96): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.bluez.btmon" pid=2948 comm="apparmor_parser"
Feb 26 13:31:28 localhost kernel: [ 1546.093836] audit: type=1400 audit(1551187888.074:97): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.bluez.hciconfig" pid=2950 comm="apparmor_parser"
Feb 26 13:31:28 localhost kernel: [ 1546.152658] audit: type=1400 audit(1551187888.134:98): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.bluez.hcidump" pid=2951 comm="apparmor_parser"
Feb 26 13:31:28 localhost kernel: [ 1546.723038] audit: type=1400 audit(1551187888.706:99): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.bluez.hcitool" pid=2952 comm="apparmor_parser"
Feb 26 13:31:33 localhost systemd[1]: Started Service for snap application bluez.obex.
Feb 26 13:31:33 localhost systemd[1]: Started Service for snap application bluez.bluez.
Feb 26 13:31:33 localhost bluetoothd[3041]: Bluetooth daemon 5.49
Feb 26 13:31:33 localhost bluetoothd[3041]: Starting SDP server
Feb 26 13:31:33 localhost bluetoothd[3041]: Bluetooth management interface 1.10 initialized
Feb 26 13:36:10 localhost kernel: [ 1828.781494] audit: type=1400 audit(1551188170.759:107): apparmor="ALLOWED" operation="open" profile="snap.bluez.bluetoothctl" name="/home/muthiahn/" pid=3082 comm="bluetoothctl" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000
Feb 26 13:36:10 localhost kernel: [ 1828.789786] audit: type=1400 audit(1551188170.771:108): apparmor="ALLOWED" operation="open" profile="snap.bluez.bluetoothctl" name="/home/muthiahn/" pid=3082 comm="bluetoothctl" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000
uthiahn@localhost:~$
muthiahn@localhost:~$ systemctl status snap.bluez.bluez.service
● snap.bluez.bluez.service - Service for snap application bluez.bluez
Loaded: loaded (/etc/systemd/system/snap.bluez.bluez.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-02-26 13:31:33 UTC; 8min ago
Main PID: 3041 (bluetoothd)
CGroup: /system.slice/snap.bluez.bluez.service
└─3041 /snap/bluez/174/usr/lib/bluetooth/bluetoothd -E
muthiahn@localhost:~$ systemctl status snap.bluez.obex.service
● snap.bluez.obex.service - Service for snap application bluez.obex
Loaded: loaded (/etc/systemd/system/snap.bluez.obex.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-02-26 13:31:33 UTC; 8min ago
Main PID: 3026 (obexd)
CGroup: /system.slice/snap.bluez.obex.service
└─3026 /snap/bluez/174/usr/lib/bluetooth/obexd
muthiahn@localhost:~$ snap interfaces bluez
Slot Plug
bluez:service bluez:client
:uhid bluez
- bluez:bluetooth-control
- bluez:home
- bluez:network-control
muthiahn@localhost:~$ sudo bluez.bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available
[bluetooth]# agent on
Agent is already registered
[bluetooth]# power on
No default controller available
[bluetooth]# scan on
No default controller available
Gadget - is re-build of pi3-gadget