So after some more investigation it's clear that the problem is
inconsistent. Sometimes wake immediately follows suspend, sometimes not.
Sometimes it takes a while to wake up, up to a few minutes, other times
it's immediate. Occasionally, it seems to suspend fine; or maybe I'm not
waiting long enough for the wake.

I noticed also that I can't stop bluetoothd:

$ ps aux | grep bluetoothd
root      8305  0.0  0.0  36520  4388 ?        Ss   11:35   0:00 
/usr/lib/bluetooth/bluetoothd -d
bbogart   8598  0.0  0.0  22000  1040 pts/2    R+   11:40   0:00 grep 
--color=auto bluetoothd
$ sudo service bluetooth stop
$ ps aux | grep bluetoothd
root      8662  2.5  0.0  36520  4324 ?        Ss   11:41   0:00 
/usr/lib/bluetooth/bluetoothd -d
bbogart   8670  0.0  0.0  22000  1088 pts/2    S+   11:41   0:00 grep 
--color=auto bluetoothd

Why would bluetoothd restart after I've explicitly told it to stop?

Now, if I put the stop and start service script in /lib/systemd/system-
sleep/, then the NUC does not wake up after hours.

The problem persists when:
Mouse is switched off (before entering suspend)
Mouse is changed to USB (not BT) mode
Bluetooth is turned "off" (via blueman applet)

Removing bluez may also solve the problem, I'm testing that now.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/1823076

Title:
  Intel NUC (8I3BEH1) wakes up immediately after suspend if Bluetooth is
  still enabled

Status in bluez package in Ubuntu:
  Incomplete

Bug description:
  After replacing my USB mouse with a BT mouse, I noticed my machine
  would no longer suspend without immediately waking up. i.e. I suspend
  and see the light go into the slow fade in and out for one cycle and
  then goes solid and the display wakes up again. If I disable BT (via
  blueman applet) suspend works fine.

  I've fixed this by shutting down the BT service before suspend, and
  starting it back up on wake, as indicated here:
  https://askubuntu.com/questions/797590/ubuntu-wakes-up-immediately-
  after-suspend

  Perhaps this script should be included in blueZ as suspend issues seem
  very hard to debug and the immediate wake after suspend could be
  caused many any number of things.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: bluez 5.48-0ubuntu3.1 [modified: 
lib/systemd/system/bluetooth.service]
  ProcVersionSignature: Ubuntu 4.15.0-46.49-generic 4.15.18
  Uname: Linux 4.15.0-46-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.6
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Wed Apr  3 13:16:14 2019
  InstallationDate: Installed on 2019-02-09 (53 days ago)
  InstallationMedia: Xubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 
(20180725)
  InterestingModules: rfcomm bnep btusb bluetooth
  MachineType: Intel(R) Client Systems NUC8i3BEH
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-46-generic 
root=UUID=9c982b36-8142-4719-810a-e06f81cab223 ro quiet splash vt.handoff=1
  SourcePackage: bluez
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 10/15/2018
  dmi.bios.vendor: Intel Corp.
  dmi.bios.version: BECFL357.86A.0051.2018.1015.1513
  dmi.board.name: NUC8BEB
  dmi.board.vendor: Intel Corporation
  dmi.board.version: J72693-304
  dmi.chassis.type: 3
  dmi.chassis.vendor: Intel Corporation
  dmi.chassis.version: 2.0
  dmi.modalias: 
dmi:bvnIntelCorp.:bvrBECFL357.86A.0051.2018.1015.1513:bd10/15/2018:svnIntel(R)ClientSystems:pnNUC8i3BEH:pvrJ72753-303:rvnIntelCorporation:rnNUC8BEB:rvrJ72693-304:cvnIntelCorporation:ct3:cvr2.0:
  dmi.product.family: Intel NUC
  dmi.product.name: NUC8i3BEH
  dmi.product.version: J72753-303
  dmi.sys.vendor: Intel(R) Client Systems
  hciconfig:
   hci0:        Type: Primary  Bus: USB
        BD Address: 00:BB:60:50:92:5D  ACL MTU: 1021:4  SCO MTU: 96:6
        UP RUNNING 
        RX bytes:1912660 acl:106009 sco:0 events:337 errors:0
        TX bytes:12331 acl:74 sco:0 commands:204 errors:0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1823076/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to