Fixing Suspend Issues Caused By Intel 9260 Bluetooth

August 26, 2019
linux intel suspend

Note: This seems to have been fixed by upstream between 5.2.7 and 5.2.11 on Fedora 30 so this workaround is no longer needed.

Last week I received my Lenovo ThinkPad T495s, a new T-series line of ThinkPads from Lenovo that uses AMD processors instead of Intel. Everything so far is working perfectly (after getting a patched Systemd) except suspend.

(Update: see my full T495s review if you’re interested in reading more about the laptop.)

It seems to be caused by the Intel 9260’s bluetooth device waking the machine up after it enters hibernation resulting in some weird video corruption. At this point your only option is to power the machine off.

If you own a device with an Intel 9260 you can verify yourself that the wakeup of this device is set to ’enabled’ by doing cat /sys/bus/usb/devices/*/power/wakeup.

You can temporarily fix this by changing the value to disabled by running echo disabled > /sys/bus/usb/devices/<DEVICE-HERE>/power/wakeup (obviously switch out with your device, mine was 4-1 but this could be different based on your machine’s config). After a sleep resume cycle it will re-enable itself, though.

You can make this semi-permanent using udev by adding this rule to a new file in /etc/udev/rules.d/:

# Disable wakeup on Intel 9260 bluetooth to allow suspend/resume
SUBSYSTEM=="usb" ATTR{idVendor}=="8087", ATTR{idProduct}=="0025" \
        ATTR{power/wakeup}="disabled"

I’ve put the file up on my Github for anyone who wants to just download it.

Unfortunately it still seems to reset itself after a suspend cycle, I’m trying to figure out if there’s some way to have a udev rule trigger after suspend. In the meantime you could use a tool like tlp to keep the bluetooth off if you aren’t using it. (see edit for follow-up)

#!/bin/sh

if [ "${1}" == "pre" ]; then
  # Set manually here because `udevadm trigger -s usb`
  # doesn't seem to work as a pre-suspend script.
  udevadm trigger --subsystem-match="usb"
  udevadm settle # block suspend until udev is done
fi
if [ "${1}" == "post" ]; then
  udevadm trigger --subsystem-match="usb"
fi
comments powered by Disqus