Great, that's fantastic! Thanks for taking the time to post in this thread too!
FWIW here is precisely what I did to fix it, in the case that it helps others. Firstly, I wanted to test that I could fix it, before creating the udev rule (since my "$ cat /proc/acpi/wakeup" was a bit different to yours). So, I ran which included the line "Bus 003 Device 007: ID 1532:0016 Razer USA, Ltd" (for my Razer mouse). Then, I ran
Code:
$ lsusb -t
1-1.4:1.2: No such file or directory
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
|__ Port 1: Dev 5, If 0, Class=hub, Driver=hub/3p, 480M
|__ Port 2: Dev 6, If 0, Class=HID, Driver=usbhid, 1.5M
|__ Port 2: Dev 6, If 1, Class=HID, Driver=usbhid, 1.5M
|__ Port 3: Dev 7, If 0, Class=HID, Driver=usbhid, 12M
Here, bus 3 and device 7 matches to bus 3, port 1, port 3. Hence, I did
Code:
$ sudo su
# echo enabled > /sys/bus/usb/devices/3-1.3/power/wakeup
After this, the mouse would wake up the computer! Then, I created a (slightly modified) udev rule and all was well.
Code:
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0016" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"
Oddly enough, the upgrade to Ubuntu 12.04 meant that my external keyboard could wake up the computer, but not the mouse. Indeed, when I checked the wakeup file associated with it, it was enabled. I'm not sure why the inconsistency...
I'm also having trouble getting my laptop's internal keyboard or trackpad to wake the computer, but I'll post in the other thread regarding that.
Thanks for your help!
Bookmarks