http://bugzilla.kernel.org/show_bug.cgi?id=9226





------- Comment #58 from [EMAIL PROTECTED]  2007-12-23 16:16 -------
Created an attachment (id=14164)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=14164&action=view)
Patch to debug suspending of devices

Yes, sorry for the delay.

Please revert the patch from Comment #55 and apply the appended patch (please
let me know in case it doesn't apply).

Next, please compile the kernel with CONFIG_PM_VERBOSE set.  Then, if
everything goes well, there should be /sys/power/pm_drivers attribute
available.  There should be two numbers in it, 0 and the number of devices
registered in your systems.  If you echo a number (say N) between these two
into /sys/power/pm_drivers, the suspend will be artificially failed after
suspending N devices (ie. the suspend of device (N+1) will fail with
ECANCELED).  By echoing 0 to /sys/power/pm_drivers you go back to the normal
behavior.

Now, you can do the following:
(1) suspend normally
(2) after the resume, echo n/2 to /sys/power/pm_drivers, where n is the second
number printed by "cat /sys/power/pm_drivers" and try to suspend (the suspend
will fail)
(3) see if your touchpad works
(4) if it does, echo 0 to /sys/power/pm_drivers and repeat from (1), but take
n/4 instead of n/2 in (2)
(5) otherwise, echo 0 to /sys/power/pm_drivers and repeat from (1), but take
3n/4 instead of n/2 in (2)
Repeat the procedure in the binary search fashion until you find the exact
number that has to be echoed into /sys/power/pm_drivers before the second fake
suspend so that the touchpad works.  Next, attach the output of dmesg taken
exactly at this point.


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to