PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1847
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Bluetooth not working after update - information needed!

Sun May 22, 2016 7:46 pm

The /dev/serial entries are created by udev rules in /etc/udev/99-com.rules. Do you have that file?

If not, try "grep serial /lib/udev/* /etc/udev/*". If nothing shows up, try uninstalling and reinstalling raspberrypi-sys-mods and pi-bluetooth.

baoshi
Posts: 7
Joined: Mon Jan 30, 2012 3:22 pm

Re: Bluetooth not working after update - information needed!

Mon May 23, 2016 1:02 am

PhilE wrote:What's in your config.txt?
I didn't change anything in config.txt. The only line not commented out is the last line
dtparam=audio=on
config.txt.zip

UglyMike
Posts: 30
Joined: Fri Feb 10, 2012 2:45 pm
Contact: Website

Re: Bluetooth not working after update - information needed!

Mon May 23, 2016 7:23 pm

Thanks PhilE.

I have the /etc/udev/rules.d/99-com.rules:
-rw-r--r-- 1 root root 506 Sep 24 2015 99-com.rules

I removed the raspberrypi-sys-mods and pi-bluetooth and rebooted.
Then I reinstalled both and rebooted.
When I now do a "sudo systemctl -l status hciuart.service" however, I still get the:

hciuart.service - Configure Bluetooth Modems connected by UART
Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
Active: failed (Result: exit-code) since Mon 2016-05-23 21:14:45 CEST; 2min 10s ago
Process: 1652 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)

May 23 21:14:45 raspberrypi hciattach[1652]: Can't open serial port: No such file or directory
May 23 21:14:45 raspberrypi hciattach[1652]: Can't initialize device: No such file or directory
May 23 21:14:45 raspberrypi systemd[1]: hciuart.service: control process exited, code=exited status=1
May 23 21:14:45 raspberrypi systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.
May 23 21:14:45 raspberrypi systemd[1]: Unit hciuart.service entered failed state.

So still at square one and open to suggestions...

UglyMike
Posts: 30
Joined: Fri Feb 10, 2012 2:45 pm
Contact: Website

Re: Bluetooth not working after update - information needed!

Mon May 23, 2016 7:32 pm

.. and now I'm in a pure LXDE 8.0 session without any of the nice Rasbian UI touches....

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1847
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Bluetooth not working after update - information needed!

Mon May 23, 2016 7:33 pm

That rules file is too old. Can you try the grep command I posted earlier?

UglyMike
Posts: 30
Joined: Fri Feb 10, 2012 2:45 pm
Contact: Website

Re: Bluetooth not working after update - information needed!

Mon May 23, 2016 7:35 pm

PhilE,

grep serial /lib/udev/* /etc/udev/*
Binary file /lib/udev/hwdb.bin matches
grep: /lib/udev/hwdb.d: Is a directory
grep: /lib/udev/rules.d: Is a directory
/lib/udev/usb_modeswitch: id_attr="/sys/bus/usb-serial/drivers/option1/new_id"
/lib/udev/usb_modeswitch: modprobe -r usbserial 2>/dev/null
/lib/udev/usb_modeswitch: modprobe usbserial "vendor=0x$v_id" "product=0x$p_id" 2>/dev/null
grep: /etc/udev/hwdb.d: Is a directory
grep: /etc/udev/rules.d: Is a directory

Edit: oh yeah, an install of raspberrypi-ui-mods fixed the LXDE session issue.....

spl23
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 291
Joined: Fri Dec 26, 2014 11:02 am

Re: Bluetooth not working after update - information needed!

Mon May 23, 2016 8:18 pm

The fact that you have/had two different Bluetooth icons on the taskbar indicates that you have multiple Bluetooth managers installed, which will be muddying the waters somewhat!

It sounds as if you've got blueman installed - try "sudo apt-get remove blueman" just in case there is some incompatibility between it and the new Pi Bluetooth plugin.

Then right-click the taskbar and go into the "Add taskbar items" entry, and reinstall the Bluetooth plugin.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5300
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Bluetooth not working after update - information needed!

Mon May 23, 2016 8:21 pm

What's the output of the following commands (please use the code tags)?

Code: Select all

apt-cache policy raspberrypi-sys-mods
cat /etc/udev/rules.d/99-com.rules
After that, I believe this will fix the problem for you.

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rm /etc/udev/rules.d/99-com.rules
sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall raspberrypi-sys-mods
sudo systemctl reboot

UglyMike
Posts: 30
Joined: Fri Feb 10, 2012 2:45 pm
Contact: Website

Re: Bluetooth not working after update - information needed!

Mon May 23, 2016 9:26 pm

@spl23
I had indeed blueman installed and have now removed it and added bluetooth taskbar icon (greyed out)

@ShiftPlus1
Here is the output of the command

Code: Select all

apt-cache policy raspberrypi-sys-mods
raspberrypi-sys-mods:
  Installed: 20160426
  Candidate: 20160426
  Version table:
 *** 20160426 0
        500 http://archive.raspberrypi.org/debian/ jessie/main armhf Packages
        100 /var/lib/dpkg/status
I have done your commands and will now reboot...

EDIT: ...and I'm back, happy to report that my bluetooth icon has turned blue and that I can pair with my bluetooth speaker. So apparently blueman kinda messed up the upgrade I guess. Ah well, all 's well that ends well.
Thanks a lot for everybody's help and perseverance!
Last edited by UglyMike on Mon May 23, 2016 9:33 pm, edited 1 time in total.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5300
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Bluetooth not working after update - information needed!

Mon May 23, 2016 9:30 pm

Didn't see the output of 'cat /etc/udev/rules.d/99-com.rules' but I guess that version of the file is gone now anyway.

UglyMike
Posts: 30
Joined: Fri Feb 10, 2012 2:45 pm
Contact: Website

Re: Bluetooth not working after update - information needed!

Mon May 23, 2016 9:37 pm

Ah yes, sorry about that. No, the file is still there and here's the output:

Code: Select all

cat /etc/udev/rules.d/99-com.rules
SUBSYSTEM=="input", GROUP="input", MODE="0660"
SUBSYSTEM=="i2c-dev", GROUP="i2c", MODE="0660"
SUBSYSTEM=="spidev", GROUP="spi", MODE="0660"
SUBSYSTEM=="bcm2835-gpiomem", GROUP="gpio", MODE="0660"

SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\
	chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\
	chown -R root:gpio /sys/devices/virtual/gpio && chmod -R 770 /sys/devices/virtual/gpio;\
	chown -R root:gpio /sys$devpath && chmod -R 770 /sys$devpath\
'"

KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\
	ALIASES=/proc/device-tree/aliases; \
	if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \
		echo 0;\
	elif cmp -s $ALIASES/uart0 $ALIASES/serial1; then \
		echo 1; \
	else \
		exit 1; \
	fi\
'", SYMLINK+="serial%c"

KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
	ALIASES=/proc/device-tree/aliases; \
	if cmp -s $ALIASES/uart1 $ALIASES/serial0; then \
		echo 0; \
	elif cmp -s $ALIASES/uart1 $ALIASES/serial1; then \
		echo 1; \
	else \
		exit 1; \
	fi \
'", SYMLINK+="serial%c"
...all chinese to me of course....
EDIT: and it's of course the new one, silly me.

Thanks for you help, ShiftPlusOne
Last edited by UglyMike on Mon May 23, 2016 9:38 pm, edited 1 time in total.

UglyMike
Posts: 30
Joined: Fri Feb 10, 2012 2:45 pm
Contact: Website

Re: Bluetooth not working after update - information needed!

Tue May 24, 2016 8:07 pm

Me again....
So, I have BT paired with a Sticky Beats BT speaker. That's where I ended up yesterday late.

Code: Select all

[bluetooth]# paired-devices
Device FC:58:FA:79:34:D1 STICKY BEATS
It gets connected too:

Code: Select all

[CHG] Device FC:58:FA:79:34:D1 Connected: yes
However I get no sound whatsoever.
I tried

Code: Select all

sudo aplay /usr/share/sounds/alsa/Front_Center.wav
This seemed to work as I get following output:

Code: Select all

Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
...but, like I said, no sound.

Is there a special incantation to make the BT speaker the default device? Maybe something pulseaudio related?

Uglymike

PS Sorry, I know, not really the relevant forum for this particular question, but who knows, maybe blueman also borked this functionality...

User avatar
Douglas6
Posts: 4434
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth not working after update - information needed!

Wed May 25, 2016 4:10 am

Probably best to post a new topic with the new problem, or read the many other threads on this issue. Have you installed PulseAudio and the Bluetooth modules?

Code: Select all

sudo apt-get install pulseaudio pulseaudio-module-bluetooth 

R1SKbreaker
Posts: 9
Joined: Wed May 18, 2016 3:37 pm

Re: Bluetooth not working after update - information needed!

Thu May 26, 2016 7:15 pm

I've tried all these possible solutions and I get nothing. I installed this Raspbian Jessie from http://www.multibootpi.com/builds/retro ... iple-boot/

I reinstalled and before I updated Bluetooth worked fine. After I updated and upgraded, I would always get the no default controller message. Am I just better off keeping the older version of Jessie so that I can use my Bluetooth keyboard? Is an update coming that I can keep an eye open for and update at that time?

geesquare
Posts: 2
Joined: Fri May 27, 2016 3:53 pm

Re: Bluetooth not working after update - information needed!

Fri May 27, 2016 4:09 pm

My problem was resolved by rebooting and then sudo apt-get update && sudo apt-get upgrade.

Using Raspberry Pi3

psimon
Posts: 7
Joined: Fri May 06, 2016 8:06 pm

Re: Bluetooth not working after update - information needed!

Sun May 29, 2016 4:03 pm

this happened to me when i upgraded a couple of days ago.
(i am running minibian and bluetooth was previously working.)

fixed by; apt-get install raspberrypi-sys-mods

and a reboot and reinstall pi-bluetooth.

(i tried just reinstalling pi-bluetooth but that wasn't enough)

io587
Posts: 7
Joined: Sat Jun 04, 2016 8:49 pm

Re: Bluetooth not working after update - information needed!

Sat Jun 04, 2016 9:06 pm

Whenever I type 'bluetoothctl' I get a prompt but I am unable to type anything.

Code: Select all

systemctl status bluetooth.service
yields:

Code: Select all

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: failed (Result: exit-code) since Sat 2016-06-04 15:55:21 CDT; 7min ago
     Docs: man:bluetoothd(8)
  Process: 1051 ExecStart=/usr/lib/bluetooth/bluetoothd (code=exited, status=203/EXEC)
 Main PID: 1051 (code=exited, status=203/EXEC)
My install of Raspbian is up-to-date.

User avatar
Douglas6
Posts: 4434
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth not working after update - information needed!

Sat Jun 04, 2016 11:40 pm

The behavior of bluetoothctl is due to the service not running. What is the output of

Code: Select all

systemctl status bluetooth -l
What happens when you try to start the service manually:

Code: Select all

sudo systemctl start bluetooth
What model Pi and Bluetooth adapter? What does

Code: Select all

hciconfig -a
show?

io587
Posts: 7
Joined: Sat Jun 04, 2016 8:49 pm

Re: Bluetooth not working after update - information needed!

Sun Jun 05, 2016 8:19 pm

Code: Select all

systemctl status bluetooth -l 
yields

Code: Select all

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: failed (Result: signal) since Sat 2016-06-04 18:10:05 CDT; 20h ago
     Docs: man:bluetoothd(8)
  Process: 783 ExecStart=/usr/lib/bluetooth/bluetoothd (code=killed, signal=KILL)
 Main PID: 783 (code=killed, signal=KILL)
   Status: "Running"
The output of

Code: Select all

sudo systemctl start bluetooth 
is "Job for bluetooth.service failed. See 'systemctl status bluetooth.service' and 'journalctl -xn' for details."

Code: Select all

hciconfig -a
yields

Code: Select all

hci0:	Type: BR/EDR  Bus: UART
	BD Address: B8:27:EB:7F:B8:75  ACL MTU: 1021:8  SCO MTU: 64:1
	UP RUNNING PSCAN 
	RX bytes:796 acl:0 sco:0 events:51 errors:0
	TX bytes:2059 acl:0 sco:0 commands:51 errors:0
	Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH SNIFF 
	Link mode: SLAVE ACCEPT 
	Name: 'pi3_0'
	Class: 0x0c0000
	Service Classes: Rendering, Capturing
	Device Class: Miscellaneous, 
	HCI Version: 4.1 (0x7)  Revision: 0xb6
	LMP Version: 4.1 (0x7)  Subversion: 0x2209
	Manufacturer: Broadcom Corporation (15)
I have a Raspberry Pi 3, and I am using the built-in bluetooth.

User avatar
Douglas6
Posts: 4434
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth not working after update - information needed!

Mon Jun 06, 2016 3:03 am

That's odd, to see the HCI interface look normal, but the service fail. You haven't made any changes to the service unit? I can only suggest re-installing pi-bluetooth.

io587
Posts: 7
Joined: Sat Jun 04, 2016 8:49 pm

Re: Bluetooth not working after update - information needed!

Tue Jun 07, 2016 2:15 am

I've uninstalled and reinstalled "pi-bluetooth" (apt-get remove then apt-get install, right?) and it's still not working... I haven't made any modifications to my Pi. Now it's been saying no audio devices found in the menu bar...
There have been a few instances recently where I've had to pull the plug on it, and I recently have shorted it two times working with the GPIO. This was after the issues with bluetooth, though.

By-Tor
Posts: 1
Joined: Thu Jun 09, 2016 9:41 pm

Re: Bluetooth not working after update - information needed!

Thu Jun 09, 2016 10:19 pm

Bluetooth was working, not now.

1) updated today (6/09/16) only need to do an upgrade, had done a dist-upgrade a week or so ago.

2) I've successfully used Bluetooth on this Pi (Model B+ w/Asus dongle) prior to the upgrade.

3) "bluetoothctl"
[NEW] Controller 5C:F3:70:75:65:FA raspberrypi [default]
[NEW] Device 00:11:67:C9:52:A8 Bop 2.0

(I was connecting to a "Bop version 2.0 Bluetooth speaker)

4) ** haven't had a chance to try this one **

5) (right-click and choose "remove this plugin") I'm not getting that option at all when I right-click on the Bluetooth plugin!

Thanks, and I hope this gets fixed. It's infuriating.

embry402
Posts: 1
Joined: Sun Jun 19, 2016 11:40 pm

Re: Bluetooth not working after update - information needed!

Sun Jun 19, 2016 11:45 pm

I was having the same issues as everyone regarding bluetooth on here and no matter what I tried from the previous posts, it would not return to working order. I did some digging and discovered that through the retropie scriipt I had installed the sixad and pair for the PS3 controlller. Uninstalling this package through the retropie_setup.sh script from a terminal within raspbian instantly resolved the issue. I'd recommend that if anyone else is having this issue that uses retropie check for this issue first before posting.

hoplite
Posts: 3
Joined: Tue Jun 21, 2016 4:43 pm

Re: Bluetooth not working after update - information needed!

Tue Jun 21, 2016 5:31 pm

Ugh. I've got bluetooth issues that don't quite match those described here, but I'll comment here anyway, in case anyone else has the same issue or can point me in the right direction.

I've got a new Pi 3. I'm using a clean install of the latest Raspbian Jessie image from raspberrypi.org. I've done the following updates:
apt-get update
apt-get upgrade
apt-get dist-upgrade
rpi-update

Since I can't get the bluetooth mouse and keyboard to work, I access the Pi3 via ssh. I have no USB mouse or keyboard.

My bluetooth mouse and keyboard pairs just fine. Bluetoothctl seems to work just fine, no hardware detection errors. My issue is that both mouse and keyboard keep disconnecting. I can reconnect the mouse just by clicking it, but will lose its connection a minute later. They keyboard will sometimes reconnect if I tap a key, but not always. With bluetoothctl running in an ssh shell, it will show that the keyboard and mouse disconnecting:

Code: Select all

[email protected]:~ $ bluetoothctl
[NEW] Controller B8:27:EB:06:59:3F raspberrypi [default]
[NEW] Device 20:73:00:06:C0:02 Anker A7726
[NEW] Device 20:15:10:15:19:A9 Bluetooth Mouse
[CHG] Device 20:73:00:06:C0:02 Connected: yes
[CHG] Device 20:15:10:15:19:A9 Connected: no
[CHG] Device 20:73:00:06:C0:02 Connected: no
[CHG] Device 20:73:00:06:C0:02 Connected: yes
[CHG] Device 20:15:10:15:19:A9 Connected: yes
[CHG] Device 20:73:00:06:C0:02 Connected: no
[CHG] Device 20:15:10:15:19:A9 Connected: no
[CHG] Device 20:15:10:15:19:A9 Connected: yes
[CHG] Device 20:73:00:06:C0:02 Connected: yes
[bluetooth]# 
I also have a new Pi Zero with a bluetooth dongle...it works just fine with no bluetooth issues at all. The mouse and keyboard that I tried on the Pi 3 work just fine on the Pi Zero.

User avatar
Douglas6
Posts: 4434
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth not working after update - information needed!

Tue Jun 21, 2016 6:24 pm

You should probably post a new thread for a new issue. You should never do rpi-update unless you have a specific reason to. Apart from that, the only thing that comes to mind is radio interference. Is the Pi3 in a case? Can you test keyboard and mouse without using the Wifi? Can you test using the dongle on the Pi3?

Return to “Troubleshooting”

Who is online

Users browsing this forum: No registered users and 46 guests