NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.31k stars 13.55k forks source link

Pantheon: bluetooth disabled after resume from suspend #173189

Open davidak opened 2 years ago

davidak commented 2 years ago

Describe the bug

When i start the computer, bluetooth is enabled as expected. But when i suspend and resume, bluetooth is disabled.

I remember there was an issue that bluetooth is enabled after resuming for a long time, even on elementary OS (https://github.com/elementary/switchboard-plug-bluetooth/issues/174).

This issue is to document and debug further. Maybe it's fixed with the latest release.

Do you encounter this issue as well?

Steps To Reproduce

Steps to reproduce the behavior:

  1. use Pantheon desktop
  2. suspend
  3. resume
  4. check if bluetooth is enabled

Expected behavior

Bluetooth should stay enabled unless i manually disable it.

Screenshots

Screenshot from 2022-05-15 21-43-15

Additional context

Adapter: Logilink Bluetooth V4.0 Class 1 USB (BT0037)

[root@gaming:~]# lsusb |grep Bluetooth
Bus 001 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

https://github.com/search?q=org%3Aelementary+bluetooth&type=issues

https://github.com/elementary/wingpanel-indicator-bluetooth/issues

https://github.com/elementary/wingpanel-indicator-bluetooth/pull/143

Upstream issue: https://github.com/elementary/wingpanel-indicator-bluetooth/issues/7

Notify maintainers

@NixOS/pantheon

Metadata

benkio commented 2 years ago

I confirm this happens to me as well, but I don't have pantheon desktop, just I3, @davidak you can remove it from the title :wink: I put the outputs of some commands as references:

benkio@nixos:~]$ sudo bluetoothctl
[sudo] password for benkio:
Agent registered
[bluetooth]# power on
No default controller available
[bluetooth]# exit

[benkio@nixos:~]$ lsusb |grep Bluetooth
Bus 001 Device 003: ID 04ca:3015 Lite-On Technology Corp. Qualcomm Atheros QCA9377 Bluetooth

[benkio@nixos:~]$ uname --all
Linux nixos 5.15.34 #1-NixOS SMP Wed Apr 13 18:59:28 UTC 2022 x86_64 GNU/Linux

[benkio@nixos:~]$ nixos-version
22.05pre378655.48037fd9042 (Quokka)

[benkio@nixos:~]$ nix-channel --list
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz
nixos https://nixos.org/channels/nixos-unstable
MordragT commented 10 months ago

Also happening on gnome Does there any workaround exist ? Restarting everytime is a bit much.

nixos-version
23.11.20231102.fa804ed (Tapir)