You are not logged in.

#1 2011-06-01 08:48:58

janoliver
Member
Registered: 2011-06-01
Posts: 54

[solved] issues with usb keyboard wakeup from suspend

Hello,

After many trys I still am not able to get wakeup from suspend to ram by usb mouse/keyboard to work. The only way I can wakeup my laptop is by pressing the power button...

I know that it is possible, since under ubuntu it used to work.

Here are the, in my opinion, relevant outputs:

# uname -a
Linux oliarch 2.6.38-ARCH #1 SMP PREEMPT Mon May 23 22:02:08 CEST 2011 x86_64 Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz GenuineIntel GNU/Linux
# acpitool -w
   Device    S-state      Status   Sysfs node
  ---------------------------------------
  1. LANC      S0    *disabled  pci:0000:00:19.0
  2. EHC1      S3    *enabled   pci:0000:00:1d.0
  3. EHC2      S3    *disabled  pci:0000:00:1a.0
  4. PCIB      S5    *disabled  
  5. RP02      S4    *disabled  pci:0000:00:1c.1
  6. ECF0      S4    *disabled  
  7. RP03      S4    *disabled  pci:0000:00:1c.2
  8. RP04      S5    *disabled  pci:0000:00:1c.3
  9. WNIC      S5    *disabled  pci:0000:24:00.0
  10. RP08      S4    *disabled  pci:0000:00:1c.7
  11. HST1      S5    *disabled
# udevadm info -a -p $(udevadm info -q path -n /dev/input/mouse2)

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.1/input/input16/mouse2':
    KERNEL=="mouse2"
    SUBSYSTEM=="input"
    DRIVER==""

  looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.1/input/input16':
    KERNELS=="input16"
    SUBSYSTEMS=="input"
    DRIVERS==""
    ATTRS{name}=="Logitech USB Receiver"
    ATTRS{phys}=="usb-0000:00:1d.0-1.2/input1"
    ATTRS{uniq}==""
    ATTRS{properties}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.1':
    KERNELS=="2-1.2:1.1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usbhid"
    ATTRS{bInterfaceNumber}=="01"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bNumEndpoints}=="01"
    ATTRS{bInterfaceClass}=="03"
    ATTRS{bInterfaceSubClass}=="01"
    ATTRS{bInterfaceProtocol}=="02"
    ATTRS{supports_autosuspend}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2':
    KERNELS=="2-1.2"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}=="RQR12.01_B0019"
    ATTRS{bNumInterfaces}==" 3"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bmAttributes}=="a0"
    ATTRS{bMaxPower}==" 98mA"
    ATTRS{urbnum}=="15270"
    ATTRS{idVendor}=="046d"
    ATTRS{idProduct}=="c52b"
    ATTRS{bcdDevice}=="1201"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bMaxPacketSize0}=="8"
    ATTRS{speed}=="12"
    ATTRS{busnum}=="2"
    ATTRS{devnum}=="3"
    ATTRS{devpath}=="1.2"
    ATTRS{version}==" 2.00"
    ATTRS{maxchild}=="0"
    ATTRS{quirks}=="0x0"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{authorized}=="1"
    ATTRS{manufacturer}=="Logitech"
    ATTRS{product}=="USB Receiver"

  looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb2/2-1':
    KERNELS=="2-1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}==""
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bMaxPower}=="  0mA"
    ATTRS{urbnum}=="101"
    ATTRS{idVendor}=="8087"
    ATTRS{idProduct}=="0024"
    ATTRS{bcdDevice}=="0000"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{speed}=="480"
    ATTRS{busnum}=="2"
    ATTRS{devnum}=="2"
    ATTRS{devpath}=="1"
    ATTRS{version}==" 2.00"
    ATTRS{maxchild}=="8"
    ATTRS{quirks}=="0x0"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{authorized}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb2':
    KERNELS=="usb2"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}==""
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bMaxPower}=="  0mA"
    ATTRS{urbnum}=="35"
    ATTRS{idVendor}=="1d6b"
    ATTRS{idProduct}=="0002"
    ATTRS{bcdDevice}=="0206"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{speed}=="480"
    ATTRS{busnum}=="2"
    ATTRS{devnum}=="1"
    ATTRS{devpath}=="0"
    ATTRS{version}==" 2.00"
    ATTRS{maxchild}=="3"
    ATTRS{quirks}=="0x0"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{authorized}=="1"
    ATTRS{manufacturer}=="Linux 2.6.38-ARCH ehci_hcd"
    ATTRS{product}=="EHCI Host Controller"
    ATTRS{serial}=="0000:00:1d.0"
    ATTRS{authorized_default}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:1d.0':
    KERNELS=="0000:00:1d.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="ehci_hcd"
    ATTRS{vendor}=="0x8086"
    ATTRS{device}=="0x1c26"
    ATTRS{subsystem_vendor}=="0x103c"
    ATTRS{subsystem_device}=="0x161c"
    ATTRS{class}=="0x0c0320"
    ATTRS{irq}=="16"
    ATTRS{local_cpus}=="00000000,0000000f"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{numa_node}=="-1"
    ATTRS{dma_mask_bits}=="32"
    ATTRS{consistent_dma_mask_bits}=="32"
    ATTRS{enable}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""
    ATTRS{companion}==""

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
# cat /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.1/input/input16/power/wakeup
.
# cat /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.1/power/wakeup
.
# cat /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/power/wakeup
enabled
# cat /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/power/wakeup
disabled

If I enable this, the laptop always (even without any usb device plugged in) wakes up immediately after suspend!

# cat /sys/devices/pci0000:00/0000:00:1d.0/usb2/power/wakeup
enabled
# cat /sys/devices/pci0000:00/0000:00:1d.0/power/wakeup
enabled

I tried all combinations of disabled/enabled of the devices and enabling everything in /proc/acpi/wakeup, but nothing works. The only sort of success is, as I mentioned above, enabling /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/power/wakeup makes the laptop wakeup immediately (after 1 second or so) after suspend.

I am pretty sure it might be a kernel issue, since some people already experienced this problem as well and it was fixed with another kernel version (even though that was related to kernel 2.6.33 or so...)

When can one expect the 39 kernel to be stable? I don't really want to compile it myself, I think I am too unexperienced for that.

Best regards and thanks in advance,
Jan Oliver

Last edited by janoliver (2011-06-02 08:18:58)

Offline

#2 2011-06-02 08:18:39

janoliver
Member
Registered: 2011-06-01
Posts: 54

Re: [solved] issues with usb keyboard wakeup from suspend

The problem is gone after going to Kernel 39 in testing.

Offline

Board footer

Powered by FluxBB