Hello, [I first sent that to usb-users, but Greg KH advised to ask here]
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? 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 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel