You are not logged in.

#1 2022-03-17 18:45:47

drito
Member
Registered: 2022-03-17
Posts: 7

[SOLVED] I have to open Blueman everytime I want to use bluetooth.

Hello. With my fresh installation my earphones connects automatically, I just had to switch on my device. But some days after, I have to open blueman GUI to detect these earphones.
If I switch off the earphones then restart them, blueman displays a message that tells me bluez daemon isn't started. I click "yes" for starting bluez then I can switch on the earphones and it will connects.  But I have to do that every time I want to use the earphone.

The output of  'sudo systemctl status bluetooth' just after Arch startup.

 
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Thu 2022-03-17 09:30:54 CET; 9h ago
       Docs: man:bluetoothd(8)
   Main PID: 367 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 9121)
     Memory: 3.0M
        CPU: 76ms
     CGroup: /system.slice/bluetooth.service
             └─367 /usr/lib/bluetooth/bluetoothd

mars 17 17:47:38 drito-pc bluetoothd[367]: Endpoint unregistered: sender=:1.25 path=/MediaEndpoint/A2DPSource/sbc_xq_552
mars 17 17:47:38 drito-pc bluetoothd[367]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters
mars 17 17:47:38 drito-pc bluetoothd[367]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/sbc
mars 17 17:47:38 drito-pc bluetoothd[367]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/sbc
mars 17 17:47:38 drito-pc bluetoothd[367]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/sbc_xq_453
mars 17 17:47:38 drito-pc bluetoothd[367]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/sbc_xq_453
mars 17 17:47:38 drito-pc bluetoothd[367]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/sbc_xq_512
mars 17 17:47:38 drito-pc bluetoothd[367]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/sbc_xq_512
mars 17 17:47:38 drito-pc bluetoothd[367]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSink/sbc_xq_552
mars 17 17:47:38 drito-pc bluetoothd[367]: Endpoint registered: sender=:1.25 path=/MediaEndpoint/A2DPSource/sbc_xq_552

the line 'src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters' is still here when I managed to make the earphones working. But the line just before is not present.

I'm not used to services stuff. If, at least, you know a way to make sure bluez starts automatically feel free to answer.

Last edited by drito (2022-04-27 09:48:38)

Offline

#2 2022-04-27 09:43:29

drito
Member
Registered: 2022-03-17
Posts: 7

Re: [SOLVED] I have to open Blueman everytime I want to use bluetooth.

I edited the file ' /etc/bluetooth/main.conf ' to set the value AutoEnable to true. I don't know why the default is false but now my earphones connects automatically like in my fresh Arch install.

Offline

#3 2022-05-12 06:33:20

andym
Member
From: France
Registered: 2019-01-16
Posts: 49

Re: [SOLVED] I have to open Blueman everytime I want to use bluetooth.

I have the same error

 src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters

But I already have AutoEnable=true in my config, so I do not know how to fix this.

Offline

#4 2023-03-25 18:01:37

drito
Member
Registered: 2022-03-17
Posts: 7

Re: [SOLVED] I have to open Blueman everytime I want to use bluetooth.

I'm back after a long time because I was on other distros.
So, for people that comes in this topic I advise to check if your device has the "trusted" status with bluetoothctl.

Enter bluetoothctl, then type "devices Trusted". If your earphones are not listed type "scan on" to get the id number of the earphones then type "trust" followed by  the id number of the earphones. Its better to switch off the earphones before entering the "trust" command, in my case the command fails if the earphones are working.
Then check the list of trusted devices again to make sure the device is added.

Last edited by drito (2023-03-25 18:02:56)

Offline

#5 2023-04-23 08:52:28

drito
Member
Registered: 2022-03-17
Posts: 7

Re: [SOLVED] I have to open Blueman everytime I want to use bluetooth.

After 2 weeks it currently refuses to connect.
systemctl bluetooth says that

systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disabled)
     Active: active (running) since Sun 2023-04-23 10:31:00 CEST; 19min ago
       Docs: man:bluetoothd(8)
   Main PID: 451 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 9108)
     Memory: 3.1M
        CPU: 53ms
     CGroup: /system.slice/bluetooth.service
             └─451 /usr/lib/bluetooth/bluetoothd

avril 23 10:37:54 drito-pc bluetoothd[451]: Endpoint registered: sender=:1.27 path=/MediaE>
avril 23 10:37:54 drito-pc bluetoothd[451]: Endpoint registered: sender=:1.27 path=/MediaE>
avril 23 10:37:54 drito-pc bluetoothd[451]: Endpoint registered: sender=:1.27 path=/MediaE>
avril 23 10:38:01 drito-pc bluetoothd[451]: src/profile.c:record_cb() Unable to get Hands->
avril 23 10:47:31 drito-pc bluetoothd[451]: src/profile.c:record_cb() Unable to get Hands->
avril 23 10:48:12 drito-pc bluetoothd[451]: profiles/audio/avdtp.c:avdtp_connect_cb() conn>
avril 23 10:48:12 drito-pc bluetoothd[451]: src/service.c:btd_service_connect() a2dp-sourc>
avril 23 10:48:12 drito-pc bluetoothd[451]: profiles/input/device.c:ioctl_is_connected() C>
avril 23 10:48:53 drito-pc bluetoothd[451]: profiles/input/device.c:control_connect_cb() c>

EDIT: that happens when I restart the Xorg desktop without restarting computer.

Last edited by drito (2023-05-27 09:22:56)

Offline

Board footer

Powered by FluxBB