Public bug reported:

When I suspend my laptop, it often happens that the bluetooth stops
working. From gnome settings it is shown like if I had no bluetooth
device at all.

$ lspci -nnk | grep -iA3 net; lsusb; rfkill list; uname -r; dmesg | egrep -i 
'blue|firm'
03:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless 
Network Adapter [168c:0036] (rev 01)
        Subsystem: AzureWave QCA9565 / AR9565 Wireless Network Adapter 
[1a3b:2130]
        Kernel driver in use: ath9k
        Kernel modules: ath9k
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI 
Express Card Reader [10ec:5287] (rev 01)
--
04:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 12)
        Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit 
Ethernet Controller [1043:200f]
        Kernel driver in use: r8169
        Kernel modules: r8169
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:57b4 Realtek Semiconductor Corp. 
Bus 001 Device 006: ID 13d3:3408 IMC Networks 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
4.15.0-32-generic
[    0.024000] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.048030] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    2.758768] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[   35.407491] Bluetooth: Core ver 2.22
[   35.407504] Bluetooth: HCI device and connection manager initialized
[   35.407506] Bluetooth: HCI socket layer initialized
[   35.407507] Bluetooth: L2CAP socket layer initialized
[   35.407510] Bluetooth: SCO socket layer initialized
[   53.501780] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   53.501780] Bluetooth: BNEP filters: protocol multicast
[   53.501783] Bluetooth: BNEP socket layer initialized
[   87.220137] Bluetooth: RFCOMM TTY layer initialized
[   87.220143] Bluetooth: RFCOMM socket layer initialized
[   87.220149] Bluetooth: RFCOMM ver 1.11
[ 1675.503865] usb 1-5: device firmware changed
[ 1681.095543] Bluetooth: Can't get version to change to load ram patch err
[ 1681.095546] Bluetooth: Loading patch file failed
[ 4105.994687] audit: type=1107 audit(1534926184.213:339): pid=1258 uid=105 
auid=4294967295 ses=4294967295 msg='apparmor="DENIED" 
operation="dbus_method_call"  bus="system" path="/" 
interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" 
mask="send" name="org.bluez" pid=10248 
label="snap.signal-desktop.signal-desktop" peer_pid=1314 peer_label="unconfined"


Trying to use bluetooth from bluetoothctl
$ bluetoothctl
Agent registered
[bluetooth]# scan on
No default controller available


Trying to restart the bluetooth service doesn't produce any effect:
$ sudo service bluetooth restart


Getting bluetooth service status:
$ sudo service bluetooth status
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset
   Active: active (running) since Fri 2018-08-24 11:23:17 EEST; 1min 35s ago
     Docs: man:bluetoothd(8)
 Main PID: 24999 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─24999 /usr/lib/bluetooth/bluetoothd

elo 24 11:23:17 fabio-X550JK systemd[1]: Stopping Bluetooth service...
elo 24 11:23:17 fabio-X550JK systemd[1]: Stopped Bluetooth service.
elo 24 11:23:17 fabio-X550JK systemd[1]: Starting Bluetooth service...
elo 24 11:23:17 fabio-X550JK bluetoothd[24999]: Bluetooth daemon 5.48
elo 24 11:23:17 fabio-X550JK systemd[1]: Started Bluetooth service.
elo 24 11:23:17 fabio-X550JK bluetoothd[24999]: Starting SDP server
elo 24 11:23:17 fabio-X550JK bluetoothd[24999]: Bluetooth management interface 1
lines 1-17/17 (END)


Reloading the driver:
$ sudo modprobe -r btusb; sudo modprobe btusb;
$ sudo service bluetooth restart


None of these attempts could solve the issue.


What happens?
Bluetooth is working, I suspend my laptop, I resume my laptop -> Bluetooth 
controller is no longer recognised and bluetooth service cannot be used anymore.

What would you expect?
Bluetooth controller to be recognised and working also after resume.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-bluetooth 3.28.0-2
ProcVersionSignature: Ubuntu 4.15.0-32.35-generic 4.15.18
Uname: Linux 4.15.0-32-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: communitheme:ubuntu:GNOME
Date: Fri Aug 24 11:12:06 2018
InstallationDate: Installed on 2017-08-21 (367 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170820)
SourcePackage: gnome-bluetooth
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gnome-bluetooth (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic third-party-packages

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

Title:
  Bluetooth device not detected after resume from suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-bluetooth/+bug/1788807/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to