linuxmint / blueberry

A Bluetooth configuration tool
GNU General Public License v3.0
182 stars 53 forks source link

Unable to remove device after. #35

Open ThorodanBrom opened 7 years ago

ThorodanBrom commented 7 years ago

I had paired my OnePlus X phone a while back, and the application worked like a charm. After that instance however, it has never worked. On clicking 'Connection', the button moves back to OFF every time. On clicking, 'Remove Device', it gives a confirmation, after clicking yes, the device is still there.

The first time I was able to pair my phone. After it stopped working, I unpaired my PC from the phone, and am unable to initiate a pair from the phone anymore. I think this is due to Blueberry still detecting that I'm paired or something like that. I am unable to find the version number. Using LMint Serena, kernel 4.4.0-78

1 2

Rudertier commented 7 years ago

Dear all, I am experiencing the same issue, with both my phone and a bluetooth speaker. I am running Linuxmint 18.2. Is there any way to make a hard reset on blueberry? Cheers

I could make it work by dooing $ sudo hciconfig hci0 down $ sudo hciconfig hci0 up

deutrino commented 7 years ago

I'm also having this problem, there is a phone from ages ago which I can't delete to save my life. Edit: I installed blueman and it deleted the device just fine.

NikoKrause commented 7 years ago

Hey, can anybody of you, who experience this try to turn on bluetooth and then use the following command in a terminal:

rfkill unblock bluetooth

Are you able to pair to or remove the device after that?

ThorodanBrom commented 7 years ago

Yes, this seems to work, but I have to do this every single time I want to connect to my phone. I had earlier tried using Blueman, but that didn't work. This is the best solution yet!

NikoKrause commented 7 years ago

Yes. I have this issue too. Can you try this version:

blueberry_sleep.zip

NikoKrause commented 7 years ago

Also, which bluetooth adapter do you have?

ThorodanBrom commented 7 years ago

Hello, NikoKrause.

I am not able to determine my adapter; I've tried using lsusb, lspci, and inxi, but the Bluetooth adapter is not explicitly mentioned.

If you don't mind me asking, how am I supposed to test the Blueberry .deb file that you sent, without interfering with the regular install? Can I use chroot, or should I use a VM? (I'm a relative novice at Linux, but I am more that happy to help)

NikoKrause commented 7 years ago

Just unzip and double click to install.

You can downgrade blueberry to your older version at any time. I'll take later screenshots on how to do this.

Is your Bluetooth built-in or external? I have this issue with a built-in adapter in my Dell Latitude.

NikoKrause commented 7 years ago

@ThorodanBrom Here's how you downgrade blueberry to the repository version: Open Menu -> Software Sources -> Maintenance -> Downgrade foreign packages -> (tick) blueberry -> (press) Downgrade

screenshot-area-2017-11-11-170333

ThorodanBrom commented 7 years ago

Hello Niko, sorry for the delay. I have installed the version you sent, and here are my observations.

-> On turning Bluetooth ON in Blueberry, all devices that I have tried to connect to previously appear. Note that new devices that appear on my phone do not appear on Blueberry. I am also unable to connect to my phone. It appears as Not Set Up in Blueberry, however, on the phone, my laptop is listed as a paired device. When I try to initiate the connection from my phone, it says 'Connecting' and then just stops after a while.

-> On executing rfkill unblock bluetooth while Blueberry is open, a new device called All types appears, and then the new devices that were not appearing earlier appear now. I am able to connect my phone to the laptop successfully. (Note, I was even able to remove my phone from the list in Blueberry after this, using the Remove Device option)

-> On turning Bluetooth OFF and ON in Blueberry, it reverts back to how it was in the first point, however, it says Disconnected for my phone, rather than Not Set Up. When I click my phone's name on the listing, and try to turn Connection ON, it refuses to do so, and additionally, I am unable to remove the phone from the listing.

It seems that Blueberry only works after the command you suggested, even with the version you sent. It is listed as ver 1.1.18 in Software Sources. I had initially installed the software and tried the above out. I thought it didn't work because I didn't do a restart, but there were no changes after the restart also.

I have an inbuilt Bluetooth adapter in my Toshiba Satellite Pro.

NikoKrause commented 7 years ago

@ThorodanBrom Can you give me the following info.

  1. Turn bluetooth on and type in the command:

    rfkill list bluetooth
  2. Turn bluetooth on and if bluetooth does not work type in the command

    rfkill list bluetooth
  3. When bluetooth is turned on and does not work, make it work with:

    rfkill unblock bluetooth

    and show the output of

    rfkill list bluetooth
ThorodanBrom commented 7 years ago

@NikoKrause , as you requested

  1. When BT is On, and rfkill list bluetooth

image

  1. It didn't work, so the same output as the previous applies.

  2. Made it work with rfkill unblock bluetooth, and then rfkill list bluetooth

image

  1. And interestingly, when BT is Off, and rfkill list bluetooth

image

I've no idea why 2 modules are showing up when BT is On, I'm pretty sure that I have only 1 built-in module!

Note that turning on BT in all cases was done in Blueberry itself, not via command line. I have a keyboard shortcut, but it doesn't seem to work in Linux. It seems that only 'Toshiba Bluetooth' is unblocked in Blueberry, not the 'hci0' module. That gets unblocked only via the unblock command

NikoKrause commented 7 years ago

OK. I have the same as you. Two, when turned on and one when turned off.

ThorodanBrom commented 7 years ago

@NikoKrause, I'm not sure how helpful this is, but I found an issue raised in TLP that mentions it might be a kernel-related problem. https://github.com/linrunner/TLP/issues/180

lloricode commented 4 years ago

same issue as mine

James-E-A commented 3 years ago

I'm also getting this error; I'm using Blueberry 1.3.3 / Gnome Bluetooth 3.34.3 on Fedora Linux.


The underlying error seems to be org.bluez.Error.NotReady, but blueberry isn't reporting this.

[dead@CNU352DG8J ~]$ rfkill unblock bluetooth
[dead@CNU352DG8J ~]$ rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
3: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
[dead@CNU352DG8J ~]$ bluetoothctl power on
Changing power on succeeded
[dead@CNU352DG8J ~]$ bluetoothctl devices
Device FC:D4:36:B3:6D:EE moto g play (2021)
[dead@CNU352DG8J ~]$ bluetoothctl remove FC:D4:36:B3:6D:EE
Failed to remove device: org.bluez.Error.NotReady

I think that displaying the underlying errors when an action the user takes fails would be extremely useful