Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-11-2023, 09:41 AM
|
#1
|
Senior Member
Registered: Mar 2010
Distribution: Slackware
Posts: 2,269
|
Disagreement between blueman-manager and hcitool
I just started using a bluetooth device for the first time. It's a cheap portable speaker. It powers itself down if it isn't used for a time. When this happens, I turn it on and it pairs automatically - so it says (it speaks) - but doesn't emit the sound mplayer sends. mplayer thinks it's playing. I have to run blueman-manager. hcitool doesn't even see the device, even on a scan. How can they have different information?
|
|
|
01-12-2023, 02:04 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,360
|
auto power off is detected and device will be removed from the list. But player probably still trying to use it, it did not recognize the change. When you switch it on again the player still wants to use the "old", remembered device, and not the new one. It also cannot detect if it is the same one. Probably because some id changed in the background somewhere.
|
|
|
01-12-2023, 08:28 PM
|
#3
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
As noted above, and as you stated, when unused the speaker does an auto power down.
In that situation you should shut down mplayer before you start the speaker back up so that when mplayer is restarted it sees the active device for output.
|
|
|
01-13-2023, 06:04 AM
|
#4
|
Senior Member
Registered: Mar 2010
Distribution: Slackware
Posts: 2,269
Original Poster
|
Quote:
Originally Posted by pan64
auto power off is detected and device will be removed from the list. But player probably still trying to use it, it did not recognize the change. When you switch it on again the player still wants to use the "old", remembered device, and not the new one. It also cannot detect if it is the same one. Probably because some id changed in the background somewhere.
|
Quote:
Originally Posted by computersavvy
As noted above, and as you stated, when unused the speaker does an auto power down.
In that situation you should shut down mplayer before you start the speaker back up so that when mplayer is restarted it sees the active device for output.
|
Both of your answers assume wrongly. mplayer isn't running, hasn't been for a while. I turn the speaker on, it says it pairs. Then I start mplayer anew.
doesn't even find the speaker. blueman-manager does: that's the first question: how can they have different opinions of what's present?
The second question is why mplayer can think it's playing but no sound comes out of the speaker.
|
|
|
01-13-2023, 06:22 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,360
|
it is slightly different. mplayer does not communicate with the speaker, but some library (pulseaudio?). And that library (whatever is it) did not recognize the change, so mplayer will use it (even if the real device is missing) with the old config. As far as I see this is a very low level problem (if hcitool cannot detect it)
probably this helps a bit: https://9to5answer.com/hcitool-scan-...uetooth-device
|
|
|
01-13-2023, 11:39 PM
|
#6
|
Senior Member
Registered: Mar 2010
Distribution: Slackware
Posts: 2,269
Original Poster
|
Quote:
Originally Posted by pan64
this is a very low level problem (if hcitool cannot detect it)
|
One would think that hcitool is closer to the hardware than blueman-manager.
|
|
|
All times are GMT -5. The time now is 03:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|