where did my bluetooth service go - and why?

Questions about software.
bennypr0fane
Posts: 81
Joined: 25 Aug 2015 11:41

where did my bluetooth service go - and why?

Postby bennypr0fane » 20 Jun 2019 21:36

Okay, this might actually be a hardware question - but then again, the hardware is working again now, it did up to a point before, and I was able to use the software to fix it in between.
So the bluetooth icon for Blueman had just vanished from my Xfce panel. Starting Blueman from menu didn't do aynthing.
I looked at the Debian wiki page for Bluetooth and checked with systemd:

Code: Select all

~$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: inactive (dead) 
i ran

Code: Select all

sudo systemctl start bluetooth
, but that apparently also did nothing, I got another

Code: Select all

~$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: inactive (dead) 
I installed rfkill, because that helped me with bluetooth in the past:

Code: Select all

 sudo rfkill list
[sudo] Passwort für ben: 
0: hp-wifi: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hp-bluetooth: Bluetooth
	Soft blocked: yes
	Hard blocked: no
2: hp-wwan: Wireless WAN
	Soft blocked: no
	Hard blocked: no
3: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
~$ sudo rfkill unblock 1
~$ sudo rfkill list
0: hp-wifi: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hp-bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: no
2: hp-wwan: Wireless WAN
	Soft blocked: no
	Hard blocked: no
3: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
5: hci0: Bluetooth
	Soft blocked: yes
	Hard blocked: no
~$ sudo rfkill unblock 5
~$ sudo rfkill list
0: hp-wifi: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hp-bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: no
2: hp-wwan: Wireless WAN
	Soft blocked: no
	Hard blocked: no
3: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
5: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
So the hci0 bluetooth interface only surfaced after unblocking the hp-bluetooth interface first, which - I don't understand why there's two of them if I have just the one adapter. Note that after unblocking with rfkill, Blueman still showed bluetooth icon as off, but I was then able to turn it on in the GUI.
So, just... what happened there in the first place?

kurotsugi
Posts: 2214
Joined: 09 Jan 2014 00:17

Re: where did my bluetooth service go - and why?

Postby kurotsugi » 21 Jun 2019 05:38

perhaps the first one is an interface between the card and the system. the system misinterpreted it and see it as two separate interface. it usually related with bios stuffs so I'm not quite sure

bennypr0fane
Posts: 81
Joined: 25 Aug 2015 11:41

Re: where did my bluetooth service go - and why?

Postby bennypr0fane » 21 Jun 2019 15:10

Also, why did systemctl fail to start the service, while rfkill reported the block and was able to undo it?

kurotsugi
Posts: 2214
Joined: 09 Jan 2014 00:17

Re: where did my bluetooth service go - and why?

Postby kurotsugi » 21 Jun 2019 21:13

for the precise reason, you can check the logs. my guess is that the service is using socket mechanism to reduce head memory cost. it only activated if the bluetooth is unblocked. the service is act as intermediary between the system and the apps. it has no contol for the device. only tools like rfkill could do that


Return to “Software”

Who is online

Users browsing this forum: No registered users and 3 guests