Linux + Kursunterlagen
New technologies are fine, but sometimes they just give headaches. The harddisk found in the T43p is one such case. It's connected to a SATA controller via a so called SATA-to-PATA bridge, and the problem is that powermanagement and suspend-to-RAM is not working with stock kernels from kernel.org, at least not with the currently latest version 2.6.14.
But, after reading and re-reading the page about the topic in the ThinkWiki, playing around with different combinations of patches and following bits of the discussion in the LKML and linux-ide archives, at last I got the whole thing working. But of course this is rather unsafe territory and I give no warranty whatsoever that it works for you or that there will be no loss of data, so continue at your own risk.
In the root directory of the kernel source, apply the patches in the following order:
patch -p1 < /path/to/downloaded/suspend-to-ram-from-lkml.patch
patch -p1 < /path/to/downloaded/02_libata_passthru.fixed.patch
patch -p1 < /path/to/downloaded/03_libata_passthru_bugfix.patch
If necessary, recompile and install the kernel as shown in the kernel configuration page.
After booting into the new kernel, commands like
hdparm -I /dev/sda
to show information about the drive or
hdparm -y /dev/sda
to spin down the harddisk should work. (the -i option does not, interestingly enough)
Once that works it's time to configure suspend-to-RAM or start using the Laptop Mode Tools.
| Attachment | Size |
|---|---|
| 02_libata_passthru.fixed.patch | 20.93 KB |
Hello,
I've got a question about your sata_pm patch. I tryed to patch my 2.6.16 kernel with p0 and p1 but it doesn't work. Do you know why? (I also tryed with hdaps_protect patch from wiki but same result)
thanks