You are not logged in.

#1 2023-01-31 14:44:22

hully
Member
Registered: 2022-11-14
Posts: 164

[SOLVED] Bluetooth reconnects in another mode

When I close the lid of my laptop, the bluetooth connection of my headphones automatically disconnects.

I don't know why, I didn't ask for this.

When I re-open the lid, it re-connects.

BUT, it seems to reconnect with another "profile", "mode", or whatever they are called, since (1) I can't see the battery of my headphones on my waybar bluetooth module anymore, and (2) the touch controls of my headphones no longer send key codes to the laptop. Normally they send media key codes, like

[14:     wl_keyboard] key: serial: 40716; time: 17049528; key: 171; state: 0 (released)
                      sym: XF86AudioNext (269025047), utf8: ''

which I bound to appropriate playerctl commands.

And (3) the audio quality is worse.

If I disconnect the headphones and reconnect them, it all works again.

How can I have it re-connect to the correct "profile"?

Last edited by hully (2023-01-31 16:45:58)

Offline

#2 2023-01-31 14:46:56

d.ALT
Member
Registered: 2019-05-10
Posts: 956

Re: [SOLVED] Bluetooth reconnects in another mode


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2023-01-31 14:49:10

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Bluetooth reconnects in another mode

Are you just going to post a link to everything I post? ?

Last edited by hully (2023-01-31 14:49:38)

Offline

#4 2023-01-31 15:07:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,682

Re: [SOLVED] Bluetooth reconnects in another mode

No, he points out that this is pretty much two posts on the same matter, depending on whether

I don't know why, I didn't ask for this.

or

How can I have it re-connect to the correct "profile"?

is significant.

If you want to continue this on the base of the latter, first stop whining (I'll tell you that as long as I have to) and then psot some actuable data.
Your system journal coveing the incident would probably be a good start.

Offline

#5 2023-01-31 15:09:45

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Bluetooth reconnects in another mode

I'm not whining seth, I'm configuring my system as I want it and have fun along the way.

The question of this post is: "given that when my lid closes my laptop goes into suspend or whatever, how can I have the bluetooth headphones connect to the correct profile when my lid opens again".

Offline

#6 2023-01-31 15:12:00

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,682

Re: [SOLVED] Bluetooth reconnects in another mode

given that when my lid closes my laptop goes into suspend

So you intend to abandon the other thread then?
Because if you disable that beahvior, this thread will turn moot.

And to answer this question, we'll need to see some data on the situation, https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#7 2023-01-31 15:17:54

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Bluetooth reconnects in another mode

So you intend to abandon the other thread then?
Because if you disable that beahvior, this thread will turn moot.

No, I think I will leave suspend on lid close on.

I thought there was a way to keep wifi on, but either I go into suspend or I don't, and I will go into it then.

But I want to learn, so now I've learnt what is doing what in my system.

I catching the logs.

Offline

#8 2023-01-31 15:27:18

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Bluetooth reconnects in another mode

Here is the botched bluetooth connection: https://github.com/875d/journals/blob/m … otched.txt

Here is the correct manual connection: https://github.com/875d/journals/blob/m … orrect.txt

Offline

#9 2023-01-31 15:31:49

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,682

Re: [SOLVED] Bluetooth reconnects in another mode

I thought there was a way to keep wifi on

cat /sys/power/mem_sleep

Maybe S1/"standby" is for you.

Why is the 1st journal alone 2.5MB ???

Edit, on  a guess:
suspend, wake, have BT wet iself and then post

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Last edited by seth (2023-01-31 15:33:09)

Offline

#10 2023-01-31 15:37:38

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Bluetooth reconnects in another mode

That's what I did. I guess is so big because it logged from system boot and the wake time of my system is long.

I won't post to 0x0.st because I want to keep control over it and delete it afterwards.

It contains too much information.

I don't have time to go line by line and remove the information I'm not comfortable with.

And yes, I know internet doesn't forget.

That's the compromise I'm comfortable with.

Offline

#11 2023-01-31 15:41:56

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Bluetooth reconnects in another mode

Ok, I'll reboot and send you lighter logs.

Offline

#12 2023-01-31 15:48:01

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Bluetooth reconnects in another mode

Here are the new logs.

They are now 500K each.

botched connection: https://github.com/875d/journals/blob/m … otched.log

good connection: https://github.com/875d/journals/blob/m … orrect.log

Offline

#13 2023-01-31 15:49:45

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Bluetooth reconnects in another mode

I don't know whether the access denied is relevant:

Jan 31 16:44:35 raffarch bluetoothd[2848]: Authentication attempt without agent
Jan 31 16:44:35 raffarch bluetoothd[2848]: profiles/audio/avctp.c:auth_cb() Access denied: org.bluez.Error.Rejected

Offline

#14 2023-01-31 16:00:59

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,682

Offline

#15 2023-01-31 16:16:17

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Bluetooth reconnects in another mode

Seth, you are incredible.

I don't understand if it's not "trusted", why it does reconnect at all?

It should not have connected if it is not trusted, not connect with a lower profile.

But anyway, thanks.

I'll copy that information to the Arch Wiki.

Offline

#16 2023-01-31 16:44:50

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,682

Re: [SOLVED] Bluetooth reconnects in another mode

If this was the problem and in general, please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#17 2023-01-31 16:46:18

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Bluetooth reconnects in another mode

seth wrote:

If this was the problem and in general, please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

You are business-minded Seth.

Offline

Board footer

Powered by FluxBB