I believe that the behavior of suspend/resume in NVIDIA driver (nvidia-
sleep.sh) can cause the issue.

For the driver to save the content of VRAM, it uses the command "chvt
63" to blank the screen and save VRAM, before the system enters suspend,
and resume it by "chvt" to previous active tty.

However, when pipewire detected the tty switch, it will also reroute the
current audio context to the active tty user. e.g. Bluetooth headphones
will be disconnected if switching terminal to a text console.

We can now determine the minimal reproducible code (without NVIDIA
driver) is:

sudo chvt 4; sleep 5; sudo systemctl suspend; sudo chvt 2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2092158

Title:
  With certain configs (such as with NVIDIA GPU driver), Bluetooth
  HSP/HFP profile may be missing after suspend/resume

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2092158/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to