On Sun, 2010-07-04 at 08:51 -0400, Alan Stern wrote: > On Sun, 4 Jul 2010, Maxim Levitsky wrote: > > > > Alan. thanks for saving me from another bisect... > > > latest git tip works again. > > > > I mean, I think that > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=48826626263d4a61d06fd8c5805da31f925aefa0 > > > > fixed the problem. > > Ah, yes. Well, I can't claim a lot of credit for that because I'm the > person who introduced the regression in the first place! But at least > it's working okay now. > > > > (of course I need to explicitly enable power/wakeup on the mouse), but I > > > can live with that.) > > > > > > > > > I want to note that I still need to enable wakeup in /power/acpi/wakeup > > > to make USB mouse wakeup the system. > > > This isn't a regression, but I thought that I don't need that anymore. > > You shouldn't. Which setting in /proc/acpi/wakeup needs to be enabled? The wakeup GPE for UHCI controller which is connected to the mouse. maxim@MAIN:/sys/bus/pci/devices/0000:00:1d.0/usb5$ cat /proc/acpi/wakeup Device S-state Status Sysfs node SLPB S4 *enabled P32 S4 *disabled pci:0000:00:1e.0 UAR1 S4 *disabled pnp:00:0a ILAN S4 *disabled pci:0000:00:19.0 PEGP S4 *disabled PEX0 S4 *disabled pci:0000:00:1c.0 PEX1 S4 *disabled pci:0000:00:1c.1 PEX2 S4 *disabled pci:0000:00:1c.2 PEX3 S4 *disabled pci:0000:00:1c.3 PEX4 S4 *disabled pci:0000:00:1c.4 PEX5 S4 *disabled UHC1 S3 *enabled pci:0000:00:1d.0 UHC2 S3 *disabled pci:0000:00:1d.1 UHC3 S3 *disabled pci:0000:00:1d.2 UHC4 S3 *disabled EHCI S3 *disabled pci:0000:00:1d.7 EHC2 S3 *disabled pci:0000:00:1a.7 UH42 S3 *disabled pci:0000:00:1a.0 UHC5 S3 *disabled pci:0000:00:1a.1 AZAL S3 *disabled pci:0000:00:1b.0 maxim@MAIN:/sys/bus/pci/devices/0000:00:1d.0/usb5$ cd 5-1/ 5-1:1.0/ driver/ ep_00/ power/ subsystem/ maxim@MAIN:/sys/bus/pci/devices/0000:00:1d.0/usb5$ cd 5-1/ maxim@MAIN:/sys/bus/pci/devices/0000:00:1d.0/usb5/5-1$ maxim@MAIN:/sys/bus/pci/devices/0000:00:1d.0/usb5/5-1$ maxim@MAIN:/sys/bus/pci/devices/0000:00:1d.0/usb5/5-1$ cat idVendor 1241 maxim@MAIN:/sys/bus/pci/devices/0000:00:1d.0/usb5/5-1$ lsusb Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 003: ID 1241:1166 Belkin MI-2150 Trust Mouse Bus 005 Device 002: ID 06a3:ff52 Saitek PLC Cyborg 3D Rumble Force Joystick Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub maxim@MAIN:/sys/bus/pci/devices/0000:00:1d.0/usb5/5-1$ Also, I tried to enable wakeup on the USB mouse using udev rule. I did that rule for a test (very broad for testing): SUBSYSTEM=="usb", ACTION=="add", ATTR{power/wakeup}="enabled" I found that running udevd --debug confirms that it writes that attribute (Log of mouse attach attached :-). (I connected it to different port now) According to the log, udev does write 'enabled' to /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-2/power/wakeup but: maxim@MAIN:~$ cat /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-2/power/wakeup disabled This looks like kernel bug. I am not against the default of disabled wakeup, it fact I welcome that, but I think that udev rule should work to enable it back. Best regards, Maxim Levitsky
Attachment:
udev_log.txt.gz
Description: GNU Zip compressed data
_______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm