Skip to content

bluetooth: Fix bluetooth switch transitions

Benjamin Berg requested to merge benzea/bluetooth-rfkill-switch into master

This commit changes the switch to do a proper delayed state change using the state-set signal. Also changed is that we always update the switch state rather than avoiding an update when it is not powered.

Avoiding this update was introduced in commit 4a009da4 (bluetooth: Don't change the switch status when transitioning), however, the current implementation causes us to get stuck in the wrong visual state sometimes. Also, with this patch I am unable to see any visual glitch on hardware that should be affected, and even if there was a glitch, getting the final state right is more important.

Closes: #607 (closed), #1272 (closed)

Merge request reports