Hi,

2006/6/15, Frederic Riss <[EMAIL PROTECTED]>:
> I recently bought an Intel Core Duo powered Mac mini. I got suspend to
> RAM working fine using 2.6.17-rc6 plus some minor additional patches.
> After doing the right "echo USBn > /proc/acpi/wakeup", I'm able to wake
> up the system using an USB keyboard or mouse. So USB remote wakeup
> events work.
>
> What doesn't work is the wakeup using the Apple Remote (a small 6-button
> remote controller shipped with the box). You've guessed my question is:
> how can I make it work?

I noted errors during boot and resume which relate to the usb bus on
which the IR receiver is connected. Could these be related to my
unability to use remote wakeup with th remote?

--------------------------------------------------------8<---------------------------------------------
uhci_hcd 0000:00:1d.3: uhci_result_control: failed with status 440000
[dbdf9380] link (1bdf9302) element (1cb62120)
 Element != First TD
urb_priv [dba2eaa0] urb [d6844dc0] qh [dbdf9380] Dev=2 EP=0(OUT) CTL FSBR
    1: [dcb62150] link (1cb62120) e3 Length=7 MaxLen=7 DT0 EndPt=0
Dev=2, PID=2d(SETUP) (buf=1b0b2ae0)
    2: [dcb62120] link (1cb62180) e0 IOC Stalled CRC/Timeo Length=7ff
MaxLen=7ff DT1 EndPt=0 Dev=2, PID=69(IN) (buf=00000000)
  Dummy TD
[dcb62180] link (1cb62030) e0 Length=0 MaxLen=7ff DT0 EndPt=0 Dev=0,
PID=e1(OUT) (buf=00000000)

usb 5-1: usbfs: USBDEVFS_CONTROL failed cmd hid2hci rqt 64 rq 0 len 0 ret -84
uhci_hcd 0000:00:1d.3: uhci_result_common: failed with status 440000
uhci_hcd 0000:00:1d.3: uhci_result_common: failed with status 440000
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
usbhid 5-1:1.0: retrying intr urb
usbhid 5-1:1.1: retrying intr urb
uhci_hcd 0000:00:1d.3: uhci_result_common: failed with status 440000
uhci_hcd 0000:00:1d.3: uhci_result_common: failed with status 440000
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.7
usbhid 5-1:1.0: retrying intr urb
usbhid 5-1:1.1: retrying intr urb
uhci_hcd 0000:00:1d.3: uhci_result_common: failed with status 440000
uhci_hcd 0000:00:1d.3: uhci_result_common: failed with status 440000
usbhid 5-1:1.0: retrying intr urb
usbhid 5-1:1.1: retrying intr urb
uhci_hcd 0000:00:1d.3: uhci_result_common: failed with status 440000
uhci_hcd 0000:00:1d.3: uhci_result_common: failed with status 440000
--------------------------------------------------------8<---------------------------------------------

There's another internal device on this bus, a Bluetooth receiver
managed by hci_usb. I guess the errors relate to this one rather than
to the IR receiver as the error reffers to HCI.

Cheers,
Fred

> The IR Receiver is a builtin USB HID device that is claimed by the
> hiddev driver:
>
> Jun 14 22:46:39 mini kernel:   INPUT(36)[INPUT]
> Jun 14 22:46:39 mini kernel:     Field(0)
> Jun 14 22:46:39 mini kernel:       Usage(4)
> Jun 14 22:46:39 mini kernel:         ff00.0000
> Jun 14 22:46:39 mini last message repeated 3 times
> Jun 14 22:46:39 mini kernel:       Logical Minimum(0)
> Jun 14 22:46:39 mini kernel:       Logical Maximum(255)
> Jun 14 22:46:39 mini kernel:       Report Size(8)
> Jun 14 22:46:39 mini kernel:       Report Count(4)
> Jun 14 22:46:39 mini kernel:       Report Offset(0)
> Jun 14 22:46:39 mini kernel:       Flags( Variable Absolute NoPrefferedState )
> Jun 14 22:46:39 mini kernel:   INPUT(37)[INPUT]
> Jun 14 22:46:39 mini kernel:     Field(0)
> Jun 14 22:46:39 mini kernel:       Usage(4)
> Jun 14 22:46:39 mini kernel:         ff00.0000
> Jun 14 22:46:39 mini last message repeated 3 times
> Jun 14 22:46:39 mini kernel:       Logical Minimum(0)
> Jun 14 22:46:39 mini kernel:       Logical Maximum(255)
> Jun 14 22:46:39 mini kernel:       Report Size(8)
> Jun 14 22:46:39 mini kernel:       Report Count(4)
> Jun 14 22:46:39 mini kernel:       Report Offset(0)
> Jun 14 22:46:39 mini kernel:       Flags( Variable Absolute NoPrefferedState )
> Jun 14 22:46:39 mini kernel:   INPUT(38)[INPUT]
> Jun 14 22:46:39 mini kernel:     Field(0)
> Jun 14 22:46:39 mini kernel:       Usage(4)
> Jun 14 22:46:39 mini kernel:         ff00.0000
> Jun 14 22:46:39 mini last message repeated 3 times
> Jun 14 22:46:39 mini kernel:       Logical Minimum(0)
> Jun 14 22:46:39 mini kernel:       Logical Maximum(255)
> Jun 14 22:46:39 mini kernel:       Report Size(8)
> Jun 14 22:46:39 mini kernel:       Report Count(4)
> Jun 14 22:46:39 mini kernel:       Report Offset(0)
> Jun 14 22:46:39 mini kernel:       Flags( Variable Absolute NoPrefferedState )
> Jun 14 22:46:39 mini kernel: hiddev96: USB HID v1.11 Device [Apple
> Computer, Inc. IR Receiver] on usb-0000:00:1d.3-2
>
> Corresponding lsusb:
>
> $ lsusb -d 05ac:8240 -vvv
> Bus 004 Device 011: ID 05ac:8240 Apple Computer, Inc.
> Device Descriptor:
>  bLength                18
>  bDescriptorType         1
>  bcdUSB               2.00
>  bDeviceClass            0 (Defined at Interface level)
>  bDeviceSubClass         0
>  bDeviceProtocol         0
>  bMaxPacketSize0         8
>  idVendor           0x05ac Apple Computer, Inc.
>  idProduct          0x8240
>  bcdDevice            1.10
>  iManufacturer           1 Apple Computer, Inc.
>  iProduct                2 IR Receiver
>  iSerial                 0
>  bNumConfigurations      1
>  Configuration Descriptor:
>    bLength                 9
>    bDescriptorType         2
>    wTotalLength           34
>    bNumInterfaces          1
>    bConfigurationValue     1
>    iConfiguration          0
>    bmAttributes         0xa0
>      (Bus Powered)
>      Remote Wakeup
>    MaxPower              100mA
>    Interface Descriptor:
>      bLength                 9
>      bDescriptorType         4
>      bInterfaceNumber        0
>      bAlternateSetting       0
>      bNumEndpoints           1
>      bInterfaceClass         3 Human Interface Devices
>      bInterfaceSubClass      0 No Subclass
>      bInterfaceProtocol      0 None
>      iInterface              0
>        HID Device Descriptor:
>          bLength                 9
>          bDescriptorType        33
>          bcdHID               1.11
>          bCountryCode            0 Not supported
>          bNumDescriptors         1
>          bDescriptorType        34 Report
>          wDescriptorLength      41
>         Report Descriptors:
>           ** UNAVAILABLE **
>      Endpoint Descriptor:
>        bLength                 7
>        bDescriptorType         5
>        bEndpointAddress     0x83  EP 3 IN
>        bmAttributes            3
>          Transfer Type            Interrupt
>          Synch Type               None
>          Usage Type               Data
>        wMaxPacketSize     0x0040  1x 64 bytes
>        bInterval              10
> Device Status:     0x0000
>  (Bus Powered)
>
>
> If it can help you to understand how the device works, James McKenzie
> wrote a non-HID input driver for the IR Receiver that can be found here:
> http://www.madingley.org/macmini/kernel/ir.patch
>
> Cheers,
> Fred
>


_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to