LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2020, 01:43 PM   #16
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by sgosnell View Post
Have you actually tried? I can remove any device, whether detected or not, on my system.
No, I just posted this for the hell of it.

..and what software are you using to remove the devices ?
So far this has been about bluetooth manager software on Lunux.
 
Old 12-28-2020, 04:01 PM   #17
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,732

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
I just noticed that jan128 is using paired and detected as equivalent terms. They are not.

Previously paired devices can be removed with the existing management software.

The computer displays devices it detects because they are “detectable”. That’s how one can choose to pair/connect to them. I guess I don’t understand why one would want to suppress or remove those, but yes, the only way I can think of to have those not show up is to turn off the Bluetooth device so the ‘puter can no longer “see” it.

Note that removing/unpairing a device that is in range will not take it off the list if it still “detectable”
 
Old 12-28-2020, 07:44 PM   #18
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
SOLVED
int hci_inquiry(int dev_id, int len, int max_rsp, const uint8_t *lap,
inquiry_info **ii, long flags);

hci_inquiry is one of the few functions that requires the use of a resource number instead of an open socket, so we use the dev_id returned by hci_get_route. The inquiry lasts for at most 1.28 * len seconds, and at most max_rsp devices will be returned in the output parameter ii, which must be large enough to accommodate max_rsp results. We suggest using a max_rsp of 255 for a standard 10.24 second inquiry.

If flags is set to IREQ_CACHE_FLUSH, then the cache of previously detected devices is flushed before performing the current inquiry. Otherwise, if flags is set to 0, then the results of previous inquiries may be returned, even if the devices aren't in range anymore.
 
Old 12-28-2020, 10:48 PM   #19
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I use the standard bluetooth-manager, and right-clicking on a device brings up a menu including "forget the device". Select that and the device is gone from sight. But a search will return it if it is detectable.
 
Old 12-29-2020, 02:22 PM   #20
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sgosnell View Post
I use the standard bluetooth-manager, and right-clicking on a device brings up a menu including "forget the device". Select that and the device is gone from sight. But a search will return it if it is detectable.
More I follow this , more I believe it is Linux / bluetooth-manager version / flavor dependent.
Right now I have phony BT device / paired and "right click" on it does nothing.

However, since I am using C code , it really does not matter to me how bluetooth-manager interacts with OS.
I was using it as a demo to show how it keeps detecting non-existed devices.
I am finding other anomalies (timing) with Qt Bluetooth module and gradually abandoning it whenever feasible.

This entire encounter has been a peculiar challenge and so far NOBODY came up with (correct) description how and where does Linux keeps the "discovered bluetooth devices " list.

But "hci-inquiry" delete such list and that is what counts. ( Time to look at "hci-inquiry" source code ...)

I have posted a bug to Qt -twice - , but so far no takers.
 
  


Reply

Tags
blueman-2.0, bluetooth



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't use blueman-applet or blueman-manager on Slackware64 -current danielldaniell Slackware 19 01-13-2019 07:30 PM
[SOLVED] Bluetooth / Blueman problem on Acer c720 running sid kernel 3.16 aal Linux - Laptop and Netbook 1 02-03-2015 01:04 AM
Problem linking feature phone via bluetooth blueman lxde debian noalternative Linux - Hardware 1 05-08-2014 03:52 PM
Bluetooth DUN (Dial Up Network) + Bluedevil & Blueman. cwizardone Slackware 25 10-30-2011 07:22 AM
13.37, fluxbox, bluetooth and blueman scam Slackware 5 07-01-2011 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration