[ltp] APM suspend with 2.6 kernel [IT WORKS!!!]
Michael Hagemann
linux-thinkpad@linux-thinkpad.org
Mon, 5 Jan 2004 21:04:56 +0100
This is a multi-part message in MIME format.
--Multipart=_Mon__5_Jan_2004_21_04_56_+0100_p=uAUkLvHqYEXdQy
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
SUSPENDING ThinkPad 600E FINALLY WORKS!
This is probably a rather comical bug. This innocent looking little
piece of code reenables suspending on my ThinkPad 600E (2645-4A0):
#if defined(__i386__) /* Do we even need this? */
outb_p(0xc, 0x3f2);
#endif
The answer seems to be: yes. It was dropped in said "big IRQ" patch. I
will try find out a little more about this port, any help is greatly
appreciated.
Now it would be cool if we could gather the pieces together for a bigger
picture of, say, "suspending on older thinkpads".
Judging from various posts on this list, it seems that the following
patches work on the following models:
i8042 poll function patch:
TP 770
TP 600X
"do we need this" patch:
TP 600E
What about the plain TP 600? Please test these patches and report your
success stories.
cheers,
michael
--Multipart=_Mon__5_Jan_2004_21_04_56_+0100_p=uAUkLvHqYEXdQy
Content-Type: application/octet-stream;
name="2.6.1-rc1_tp600e-suspend.patch"
Content-Disposition: attachment;
filename="2.6.1-rc1_tp600e-suspend.patch"
Content-Transfer-Encoding: base64
LS0tIGxpbnV4L2RyaXZlcnMvYmxvY2svbGxfcndfYmxrLmNfT1JJRwlNb24gSmFuICA1IDIwOjUx
OjI4IDIwMDQKKysrIGxpbnV4L2RyaXZlcnMvYmxvY2svbGxfcndfYmxrLmMJTW9uIEphbiAgNSAy
MDozNToyMyAyMDA0CkBAIC0yNjkwLDYgKzI2OTAsOSBAQAogCWZvciAoaSA9IDA7IGkgPCBBUlJB
WV9TSVpFKGNvbmdlc3Rpb25fd3FoKTsgaSsrKQogCQlpbml0X3dhaXRxdWV1ZV9oZWFkKCZjb25n
ZXN0aW9uX3dxaFtpXSk7CiAKKyNpZiBkZWZpbmVkKF9faTM4Nl9fKQkvKiBEbyB3ZSBldmVuIG5l
ZWQgdGhpcz8gKi8KKwlvdXRiX3AoMHhjLCAweDNmMik7CisjZW5kaWYKIAlyZXR1cm4gMDsKIH0K
IAo=
--Multipart=_Mon__5_Jan_2004_21_04_56_+0100_p=uAUkLvHqYEXdQy--