You are not logged in.

#76 2024-04-06 07:06:07

abutanaev
Member
From: Russia, Novosibirsk
Registered: 2011-03-29
Posts: 73

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

6.6.25-1-lts
the problen is still there for me...

Apr 06 14:08:07 koyon systemd[741]: Reached target Bluetooth.
Apr 06 14:08:08 koyon bluetoothd[478]: Authorization request for non-connected device!?
Apr 06 14:08:08 koyon bluetoothd[478]: Authorization request for non-connected device!?
Apr 06 14:08:08 koyon kernel: input: Soundcore Q10i (AVRCP) as /devices/virtual/input/input22
Apr 06 14:08:08 koyon systemd-logind[480]: Watching system buttons on /dev/input/event22 (Soundcore Q10i (AVRCP))
Apr 06 14:08:08 koyon bluetoothd[478]: Authorization request for non-connected device!?
Apr 06 14:08:10 koyon bluetoothd[478]: /org/bluez/hci0/dev_B4_9A_95_D7_73_3F/fd0: fd(29) ready
Apr 06 14:08:10 koyon systemd-timesyncd[454]: Contacted time server 91.206.16.3:123 (2.arch.pool.ntp.org).
Apr 06 14:08:10 koyon systemd-timesyncd[454]: Initial clock synchronization to Sat 2024-04-06 14:08:10.515670 +07.
Apr 06 14:08:10 koyon pulseaudio[867]: Battery Level: 50%
Apr 06 14:08:21 koyon bluetoothd[478]: No matching connection for device
Apr 06 14:08:21 koyon bluetoothd[478]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connected (107)

Last edited by abutanaev (2024-04-06 07:14:30)

Offline

#77 2024-04-06 08:51:49

DenalB
Member
From: Germany
Registered: 2024-04-05
Posts: 26

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

wolfseifert wrote:

Now that "bluetooth connection status is not shown correctly in the GUI anymore" has been fixed upstreams (see https://bugzilla.kernel.org/show_bug.cgi?id=218680 and https://git.kernel.org/pub/scm/linux/ke … a5ef521bc7 ) all we have to do is to wait for the fix to make it into the arch linux kernels.

Thanks for the information. Seems like I don’t need to file a bug report on Arch Git anymore. Just asked for account creation yesterday and am waiting for an answer. Sounds good!

Offline

#78 2024-04-06 19:01:02

Wennadocta
Member
Registered: 2024-03-28
Posts: 9

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

@abutanaev

the issue was solved for me after updating to 6.6.25

my adapter is ID 8087:0a2b Intel Corp. Bluetooth wireless interface
Dell Latitude 7490

Last edited by Wennadocta (2024-04-06 19:05:42)

Offline

#79 2024-04-07 08:42:57

abutanaev
Member
From: Russia, Novosibirsk
Registered: 2011-03-29
Posts: 73

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

Wennadocta wrote:

the issue was solved for me after updating to 6.6.25

It means that my problem is different, or the fix didn't fix the whole problem. My symptoms are: I connect to headphones in blueman, it works. Than I turn off headphones but status in blueman remains connected. Then I turn off/on computer, turn on headphones, they connect but status in blueman remains not connected. So bluetooth seems to work somehow but blueman bluetooth status is wrong. I also tried blueberry, the same thing.

This is so on my laptop and desktop with bluetooth USB adapter, I also tried two different manufacturer headphones.

It's very sad that all this appeared in kernel-lts

Last edited by abutanaev (2024-04-07 09:08:47)

Offline

#80 2024-04-07 10:40:45

Neonpk
Member
Registered: 2023-11-30
Posts: 2

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

abutanaev wrote:

It means that my problem is different, or the fix didn't fix the whole problem. My symptoms are: I connect to headphones in blueman, it works. Than I turn off headphones but status in blueman remains connected. Then I turn off/on computer, turn on headphones, they connect but status in blueman remains not connected. So bluetooth seems to work somehow but blueman bluetooth status is wrong. I also tried blueberry, the same thing.

This is so on my laptop and desktop with bluetooth USB adapter, I also tried two different manufacturer headphones.

Same problem. Updating the kernel didn't help.

I tried blueman and blueberry. The result is the same.

Offline

#81 2024-04-07 12:34:19

wolfseifert
Member
Registered: 2024-03-28
Posts: 19

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

This topic addresses two issues (see https://bbs.archlinux.org/viewtopic.php … 5#p2161855 ). Both have been resolved (see https://bbs.archlinux.org/viewtopic.php … 9#p2162889 and https://bbs.archlinux.org/viewtopic.php … 4#p2162664 ).

The first one has been fixed upstream, so it will take some time to get into the arch linux kernels (see https://bbs.archlinux.org/viewtopic.php … 1#p2162771 ). Feel free to push it at Arch gitlab if you feel like.

So I am going to mark this topic as SOLVED now.

Offline

#82 2024-04-07 13:56:00

DenalB
Member
From: Germany
Registered: 2024-04-05
Posts: 26

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

wolfseifert wrote:

Feel free to push it at Arch gitlab if you feel like.

Just wanted to do this, but there is an issue for this topic open already.
https://gitlab.archlinux.org/archlinux/ … /issues/41

Thanks for your help, @wolfseifert !

Offline

#83 2024-04-07 20:09:14

Neonpk
Member
Registered: 2023-11-30
Posts: 2

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

wolfseifert wrote:

Now that "bluetooth connection status is not shown correctly in the GUI anymore" has been fixed upstreams (see https://bugzilla.kernel.org/show_bug.cgi?id=218680 and https://git.kernel.org/pub/scm/linux/ke … a5ef521bc7 ) all we have to do is to wait for the fix to make it into the arch linux kernels.

If you do not want to wait you can either user the kernel made by @loqs (https://drive.google.com/file/d/1Lsx8UH … sp=sharing) or build it yourself locally:

$ git clone https://gitlab.archlinux.org/archlinux/packaging/packages/linux.git

Create a patch file bluetooth.patch with this content:

diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index cf3b8e9b7b3ba1..b0970462a68996 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -4063,8 +4063,7 @@ static int l2cap_connect_req(struct l2cap_conn *conn,
 		return -EPROTO;
 
 	hci_dev_lock(hdev);
-	if (hci_dev_test_flag(hdev, HCI_MGMT) &&
-	    !test_and_set_bit(HCI_CONN_MGMT_CONNECTED, &hcon->flags))
+	if (hci_dev_test_flag(hdev, HCI_MGMT))
 		mgmt_device_connected(hdev, hcon, NULL, 0);
 	hci_dev_unlock(hdev);
 

Edit PKGBUILD and insert inside of prepare():

patch -p1 < ../../bluetooth.patch

Set the number of processors make shall use:

$ export MAKEFLAGS="-j 4"

Build and install:

$ makepkg -si

I did this successfully for linux and linux-lts.

--
The problem was solved by rebuilding the kernel using a patch.

Thank you very much for your help. cool

Offline

#84 2024-04-07 23:06:49

d3vilguard
Member
Registered: 2022-01-01
Posts: 7

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

Downloaded the git for 6.8.4 to see if the patch is inside, wasn't. Successfully compiled kernel-tkg with the patch. Thanks!


KDE / Linux-TKG BORE / mesa-minimal-git / 5800X PBO / Viper 4x8 4000 (3600@14) / RX6800

Offline

#85 2024-04-08 12:05:30

abutanaev
Member
From: Russia, Novosibirsk
Registered: 2011-03-29
Posts: 73

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

Compiled linux-lts-6.6.25 with patch applied, and it didn't help (

Offline

#86 2024-04-08 18:05:54

loqs
Member
Registered: 2014-03-06
Posts: 17,588

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

abutanaev wrote:

Compiled linux-lts-6.6.25 with patch applied, and it didn't help (

Possibly split your issue out into its own thread as this one has been solved?

Offline

#87 2024-04-09 05:35:51

wolfseifert
Member
Registered: 2024-03-28
Posts: 19

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

abutanaev wrote:

Compiled linux-lts-6.6.25 with patch applied, and it didn't help (

Are you sure that the patch was applied (did you check l2cap_core.c)? Did you reboot after installation?

If all of this is true, then you have a different problem and the upcoming kernels (https://gitlab.archlinux.org/archlinux/ … /issues/41) will NOT fix your problem. In this case you should start a new topic and do a git bisect with these kernels https://drive.google.com/drive/folders/ … G1wHu2lQJ_ first and compare the result with this https://bbs.archlinux.org/viewtopic.php … 5#p2162115.

Of course you can also wait for the upcoming kernels and see if your problem is solved. If YES, then the patch works and your build/install was wrong.

Offline

#88 2024-04-09 06:57:35

abutanaev
Member
From: Russia, Novosibirsk
Registered: 2011-03-29
Posts: 73

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

wolfseifert wrote:
abutanaev wrote:

Compiled linux-lts-6.6.25 with patch applied, and it didn't help (

Are you sure that the patch was applied (did you check l2cap_core.c)? Did you reboot after installation?

Yes and yes. Here is my src/linux-6.6.25/net/bluetooth/l2cap_core.c

    hci_dev_lock(hdev);
    if (hci_dev_test_flag(hdev, HCI_MGMT))
        mgmt_device_connected(hdev, hcon, NULL, 0);
    hci_dev_unlock(hdev);

Patch applied. I wonder if somebody else has the same problem? Or is it indeed some error on my side patching and updating kernel? Maybe lts kernel branch 6.6.* wasn't fixed yet?

Offline

#89 2024-04-09 10:14:27

wolfseifert
Member
Registered: 2024-03-28
Posts: 19

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

I am dual-booting linux and linux-lts using systemd-boot. Both got affected by the bug and both got fixed by the patch.

Have you ever tried the ready-made kernel from https://bbs.archlinux.org/viewtopic.php … 4#p2162664 ?

Offline

#90 2024-04-10 02:31:26

Niicide
Member
Registered: 2024-04-10
Posts: 7

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

I am running the latest release version of the kernel (6.8.4-arch1-1) and am still experiencing this same problem. This typically happens when I leave bluetooth on idle for 30min to an hour or so. My headphones seem to reconnect but the gui doesn't update to display that. When I attempted to restart bluetoothd, the terminal hangs and bluetoothd consumes a ton of cpu so I just end up rebooting my entire system. These are the same set of issues I have experienced in the previous kernel versions.

Offline

#91 2024-04-10 04:25:18

wolfseifert
Member
Registered: 2024-03-28
Posts: 19

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

Niicide wrote:

I am running the latest release version of the kernel (6.8.4-arch1-1) and am still experiencing this same problem. This typically happens when I leave bluetooth on idle for 30min to an hour or so. My headphones seem to reconnect but the gui doesn't update to display that. When I attempted to restart bluetoothd, the terminal hangs and bluetoothd consumes a ton of cpu so I just end up rebooting my entire system. These are the same set of issues I have experienced in the previous kernel versions.

If you experienced this already in previous kernel versions your problem is probably a different one and you should create a new topic for it.

Offline

#92 2024-04-10 07:05:50

abutanaev
Member
From: Russia, Novosibirsk
Registered: 2011-03-29
Posts: 73

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

linux-lts-6.6.25 with patch applied, plus upgraded blueman (2.4-1 -> 2.4.1-1) fix my problem

Offline

#93 2024-04-10 07:42:55

wolfseifert
Member
Registered: 2024-03-28
Posts: 19

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

abutanaev wrote:

linux-lts-6.6.25 with patch applied, plus upgraded blueman (2.4-1 -> 2.4.1-1) fix my problem

That's good to read!

I am using "bluez" only, neither "blueman" nor "blueberry" installed.

Offline

#94 2024-04-11 11:15:26

markun
Member
Registered: 2021-05-13
Posts: 1

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

After updating the kernel to the patched version and using blueman 2.4.1-1, I still had the problem that @abutanaev talked about, where my headphones would connect but not show up. Other devices would connect, but try to pair after every reboot, and some would refuse to connect at all.

I removed all devices in blueman, did an "rm -rf  /var/lib/bluetooth/*", rebooted and re-paired my devices. They seem to work correctly at the moment. I tried a few reboots and turning them on and off, so far so good.

One thing that makes me think there are still issues is, that when I turn off my bluetooth keyboard, I get a notfication from blueman that it's disconnected, but when I turn it on and it reconnects, I get this in journalctl: "bluetoothd[1456]: Device is already marked as connected"

Will have to wait and see if things break down again.

Offline

#95 2024-04-11 11:21:44

d3vilguard
Member
Registered: 2022-01-01
Posts: 7

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

6.8.5 needs patching too.
ps. upss, was corrected below. 6.8.5 tkg, yes!

Last edited by d3vilguard (2024-04-18 06:30:57)


KDE / Linux-TKG BORE / mesa-minimal-git / 5800X PBO / Viper 4x8 4000 (3600@14) / RX6800

Offline

#96 2024-04-11 11:33:28

loqs
Member
Registered: 2014-03-06
Posts: 17,588

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

d3vilguard wrote:

6.8.5 needs patching too.

6.8.5-arch1 does not as Arch applied the patch locally in https://github.com/archlinux/linux/comm … e08e605aa3

Offline

#97 2024-04-11 11:35:28

wolfseifert
Member
Registered: 2024-03-28
Posts: 19

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

d3vilguard wrote:

6.8.5 needs patching too.

Yes, but v6.8.5-arch1 got patched: https://gitlab.archlinux.org/archlinux/ … /issues/41

Offline

#98 2024-04-11 12:07:40

DenalB
Member
From: Germany
Registered: 2024-04-05
Posts: 26

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

d3vilguard wrote:

6.8.5 needs patching too.

Did you shut down your computer after installing the new kernel? Maybe a reboot is not enough.

Offline

#99 2024-04-11 13:42:50

loqs
Member
Registered: 2014-03-06
Posts: 17,588

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

DenalB wrote:
d3vilguard wrote:

6.8.5 needs patching too.

Did you shut down your computer after installing the new kernel? Maybe a reboot is not enough.

tkg that d3vilguard referenced in https://bbs.archlinux.org/viewtopic.php … 1#p2163411 may not have back ported the patch.

Offline

#100 2024-04-11 14:34:25

DenalB
Member
From: Germany
Registered: 2024-04-05
Posts: 26

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

loqs wrote:

tkg that d3vilguard referenced in https://bbs.archlinux.org/viewtopic.php … 1#p2163411 may not have back ported the patch.

Ok. Thought that d3vilguard tried the official arch kernel. I installed kernel 6.8.5-arch1-1 from core-testing and for me all issues are solved - Reboot-Shutdown-Issue and Bluetooth-Issue.

Offline

Board footer

Powered by FluxBB