How do I get a wireless logitech unifying USB keyboard to wake Ubuntu from suspend?

Question :

I would like to use a shortcut or any key to wake my computer from sleep mode using a Logitech wireless unifying keyboard (K800). I've already tried solutions from here and there.

Best case scenario, I would like the computer to wake only on keyboard events and not when the mouse linked to the same unifying device moves. But I'll take any valid solution that allows me to wake the laptop with one single shortcut or any key.

Best case scenario again, I would like to find a simple solution (not like this one)

Edit :

  • I just figured out that I can't even wake it with it's own internal keyboard (don't know if I messed up with some configuration trying to set up a workaround, or if it's always been the case.) So currently, only power button can wake that sleepy lazy laptop.
  • I've been through the same issue with all Ubuntu versions since 15.10, and still now on 17.04.

Solutions tried :

  • The solaar workaround answer on How do I get a wireless USB keyboard to to wake Ubuntu 13.10 from suspend? doesn't work.
  • That command have no impact on disable/enable status:

    sudo echo USB1 > /proc/acpi/wakeup

  • I've unsuccessfully tried to create wakeup files in, for instance (not sure to know where to put them):

    sudo echo enabled > /sys/bus/usb/devices/1-3.3/power/wakeup

  • I've unsuccessfully tried to add this in /etc/udev/rules.d/90-keyboardwakeup.rules

    SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"

System informations

the receiver in lsusb results:

Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver

Result of lsusb -t :

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 2: Dev 4, If 0, Class=Video, Driver=, 480M
        |__ Port 2: Dev 4, If 1, Class=Video, Driver=, 480M
        |__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 3: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 3: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M

Result of cat /proc/acpi/wakeup

Device  S-state   Status   Sysfs node
P0P1      S4    *disabled
PEG0      S4    *disabled  pci:0000:00:01.0
PEG1      S4    *disabled
PEG2      S4    *disabled
PEG3      S4    *disabled
XHC1      S3    *enabled   pci:0000:00:14.0
EHC1      S3    *enabled   pci:0000:00:1d.0
USB1      S3    *disabled
USB2      S3    *disabled
USB3      S3    *disabled
USB4      S3    *disabled
EHC2      S3    *enabled   pci:0000:00:1a.0
USB5      S3    *disabled
USB6      S3    *disabled
USB7      S3    *disabled
HDEF      S4    *disabled  pci:0000:00:1b.0
RP01      S4    *disabled  pci:0000:00:1c.0
RP03      S4    *disabled
RP05      S4    *disabled
RP06      S4    *disabled
RP07      S4    *disabled
RP08      S4    *disabled
WLAN      S3    *disabled  pci:0000:03:00.0
RP04      S4    *disabled  pci:0000:00:1c.3
GLAN      S4    *disabled  pci:0000:04:00.0
                *disabled  platform:rtsx_pci_sdmmc.0
                *disabled  platform:rtsx_pci_ms.0
XHC     S3      *disabled
SLPB      S4    *enabled   platform:PNP0C0E:00

here is the result of grep c52b /sys/bus/usb/devices/*/idProduct (see marshcrfot answer)

/sys/bus/usb/devices/1-3.3/idProduct:c52b

Bios screenshots :

enter image description here enter image description here


Try the wakeup events like in this post into your BIOS! enter image description here


But I'll take any valid solution that allows me to wake the computer, with one single shortcut, or any key.

A non-logitech wireless keyboard or mouse should work. I had the same problem with Ubuntu Mate 16.04LTS on a Gibabyte MiniPC with Logitech devices.

But i can wake with wireless devices that are non-Logitech, non-unifying receiver like Nulaxy ML11 2.4GHz Wireless Mouse (confirmed working out of the box can wake Ubuntu) or for a keyboard the Azio Vision Backlit Wireless Keyboard (KB506W) Updated Version (haven't confirmed can wake) or this LotFancy 2.4G Wireless Mini Backlit Keyboard Mouse Touchpad Combo (confirmed working out of the box can wake Ubuntu)