Skip to content

Switching airplain mode off enables bluetooth when previousely disabled #2395

Answered by cschramm
DanWaLes asked this question in Q&A
Discussion options

You must be logged in to vote

From a quick glance at the code it looks like BlueZ restores the power state for a known adapter on unblock. I expect it to power the adapter on if it was powered on before, independent of the AutoEnable option.

I would not expect it to power it on if it was powered off when getting blocked.

https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/src/adapter.c#n7857

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
3 replies
@DanWaLes
Comment options

@infirit
Comment options

@DanWaLes
Comment options

Comment options

You must be logged in to vote
9 replies
@DanWaLes
Comment options

@cschramm
Comment options

@infirit
Comment options

@cschramm
Comment options

Answer selected by DanWaLes
@DanWaLes
Comment options

@DanWaLes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2394 on May 30, 2024 17:49.