<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Squashball</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Squashball"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Squashball"/>
	<updated>2026-05-03T08:08:07Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problem_with_high_pitch_noises&amp;diff=22757</id>
		<title>Talk:Problem with high pitch noises</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problem_with_high_pitch_noises&amp;diff=22757"/>
		<updated>2006-06-16T07:58:49Z</updated>

		<summary type="html">&lt;p&gt;Squashball: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Discussion of &amp;quot;Limit ACPI CPU power states&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
*Stefan Baums: I raised this issue on the linux-kernel mailing list, and from there it was forwarded to the acpi-devel mailing list.  See the discussion [http://sourceforge.net/mailarchive/forum.php?thread_id=7593600&amp;amp;forum_id=6102 here] and [http://sourceforge.net/mailarchive/forum.php?thread_id=7599419&amp;amp;forum_id=6102 here]. Results: The &amp;lt;code&amp;gt;idle=halt&amp;lt;/code&amp;gt; kernel parameter disables ACPI C-state switching entirely (i.e., locks the processor in C1). It is preferable to pass to the ACPI processor component the option {{bootparm|max_cstate|2}}, which only disables the problematic states C3 and C4.  The only way to accomplish this that worked for me was to compile the ACPI processor component permanently into the kernel (&amp;lt;tt&amp;gt;CONFIG_ACPI_PROCESSOR=y&amp;lt;/tt&amp;gt;) and then enable it by adding the parameter {{bootparm|processor.max_cstate|2}} to the boot command line (and of course removing {{bootparm|idle|halt}}). Now the computer switches back and forth between C1 and C2, but avoids the noise-inducing C3 and C4, and frequency scaling works regardless.  [Update: I now use the default Ubuntu kernel, with &amp;lt;code&amp;gt;processor&amp;lt;/code&amp;gt; as a module, and disabled C3 and C4 by modifying {{path|/etc/init.d/acpid}} as explained on the article page.] ({{X41}})&lt;br /&gt;
*Simon Eggert: The {{bootparm|processor.max_cstate|3}} option worked for me on my {{T43p}} thanks.&lt;br /&gt;
* Adding &amp;lt;code&amp;gt;options processor max_cstate=2&amp;lt;/code&amp;gt; in {{path|/etc/modprobe.conf}} (or {{path|/etc/modprobe.conf.local}} on my SuSE 9.3 installation) prevents the CPU permanently from entering into C3 and higher states. ({{X40}}, {{R52}})&lt;br /&gt;
* [[User:Thinker|Thinker]]: On one {{T43}}, this worked even with {{bootparm|processor.max_cstate|3}}. That is, C3 was silent and only C4 produced whining (at both HZ=100 and HZ=250). &lt;br /&gt;
* [[User:Thinker|Thinker]]: These options affect power consumption when the CPU is idle. Here are the figures on one ThinkPad T43:&lt;br /&gt;
** {{bootparm|processor.max_cstate|4}}: 15160mW (default, noisy)&lt;br /&gt;
** {{bootparm|processor.max_cstate|3}}: 15770mW (660mW higher, silent)&lt;br /&gt;
** {{bootparm|processor.max_cstate|2}}: 16100mW (2940mW higher, silent)&lt;br /&gt;
&lt;br /&gt;
* [[User:Gsmenden|gsmenden]]: On a debian system, no modprobe.conf, can use modutils to add max_cstate line.  On my t43p the noise only occcurs when on battery power after suspend / resume cycle.  It is definitely is still present when hard disk is spun down.  Nevertheless there may be multiple sources of this (quite annoying) sound.&lt;br /&gt;
&lt;br /&gt;
* [[User:Gsmenden|gsmenden]]: Update - if you don't want to use modutils, can manually load it on bootup by adding &amp;quot;processor max_cstate=3&amp;quot; in /etc/modules on a debian system.  Noise still present upon resume though on my t43p though  :(&lt;br /&gt;
&lt;br /&gt;
* [[User:Nephiel|Nephiel]]: My {{Z60m}} also had the &amp;quot;screeching when on battery&amp;quot; problem with Ubuntu 5.10. Editing {{path|/etc/init.d/acpid}} as described worked. It needed C2: C3 was quieter but still noticeable.&lt;br /&gt;
&lt;br /&gt;
* Michael Kiausch: On my {{x41}} the noise disappears on unloading uhci-hcd module (no matter which c-state), unfortunately this is not an option as this disables usb. ''edit:'' only works if HZ=100&lt;br /&gt;
&lt;br /&gt;
* Just tested M. Kiausch's suggestion on a {{t43}}. The high-pitch noise is gone (HZ=100, cstate=4), but there is a low-pitch noise with about the same &amp;quot;beat&amp;quot;. It is much less audible though, and I really had to keep an ear close to the exhaust to hear it. But the noise is still there.&lt;br /&gt;
&lt;br /&gt;
* Michael Kiausch: You're right, same low-pitch-noise on {{x41}}, but it is really hard to hear. Does anyone know in which way the usb-uhci is related to the c-states?&lt;br /&gt;
&lt;br /&gt;
* [[User:Slurm|Slurm]] The high-pitch noise occurs on my x41 only if i'm on battery and my mouse(usb, optical) is plugged in.&lt;br /&gt;
&lt;br /&gt;
* Martin Aumueller: Upgrading the BIOS on my X60s from 1.04 to 1.06 solved the noise problem for me, however it seems to draw about 500 mW more power with the newer BIOS.&lt;br /&gt;
&lt;br /&gt;
== Harddisk related noise ==&lt;br /&gt;
&lt;br /&gt;
on my T43p the noise definitely comes from the harddisk and can be heard both in Windows and Linux. Only at boot time, before the harddisk spins up, or when I manually spin down the harddisk with&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|hdparm -y /dev/sda}}&lt;br /&gt;
&lt;br /&gt;
the system is silent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi, I don't have an IBM but Dell Latitude D410 laptop. My problem is that not only the high pitch noise is produced but the processor itself comes very busy when speedstep-centrino module is loaded. On karamba monitor (not very reliable but I can feel the difference) I get 50-100% processor occupation. Right now I'm recompiling my 2.6.14 kernel  to 100Hz timer freq. (was 250) and we'll see what happens.&lt;br /&gt;
&lt;br /&gt;
If you have any suggestions don't hestite since I practically can't use speedsteping because battery discharges rapidly &lt;br /&gt;
&lt;br /&gt;
Cheers&lt;br /&gt;
Wojtek&lt;br /&gt;
&lt;br /&gt;
== Noise from Wlan ==&lt;br /&gt;
Hi, I have a high frequency noise from my wifi modul: It occurs only with linux, only in battery mode. Disabling wifi via hardware switch disables the noise!&amp;lt;br&amp;gt;&lt;br /&gt;
Any Ideas?&amp;lt;br&amp;gt;&lt;br /&gt;
Florian&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
EDIT: Giving the cpus something to calc disables the noise, too!&amp;lt;br&amp;gt;&lt;br /&gt;
EDIT2: &amp;quot;Turn off CPU power saving in in BIOS&amp;quot; seems (!!) to solve the problem! But where is the connection to the wlan?&lt;br /&gt;
&lt;br /&gt;
== Noise from Fan ==&lt;br /&gt;
http://forum.thinkpads.com/viewtopic.php?p=171683&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22732</id>
		<title>Talk:Problems with SATA and Linux</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22732"/>
		<updated>2006-06-13T06:17:52Z</updated>

		<summary type="html">&lt;p&gt;Squashball: /* DVD DMA with ide/sata as module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
I'm running gentoo on my T43; I had problems with X11 (opensource radeon driver) and a SATA-patched kernel (I tried both 2.6.14 and 2.6.15-gentoo). Suspend to RAM worked nicely, but starting X freezed the machine after a short time. I tried removing radeonfb from the kernel; with vesafb, everything seems to work.&lt;br /&gt;
&lt;br /&gt;
-- Stefan, 10 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
That's strange - with the libata passthrough (IDE driver not in kernel) as set up in the text, my t43p DVD drive also will not record as hinted in the wikipage...  DMA works fine, so DVD playing / ripping is smooth and quick.  CD record functions also are absent.  I have PATA enabled, and the suspend + SMART patches applied over 2.6.14.2.&lt;br /&gt;
--------&lt;br /&gt;
I can confirm this with 2.6.14.4, however with 2.6.15/15.1 with sata_pm patch it works.&lt;br /&gt;
&lt;br /&gt;
-- Rasto, 24 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
regarding the &amp;quot;BIOS error 2010 on user-installed hard disk&amp;quot;:&lt;br /&gt;
the text says that corruption occurs if you use a harddisk without the specific ibm bios. would be interesting if it is possible to fix this problem in the kernel so that you can use any disk and the kernel doesn't use specific ATA commands which are known to cause problems.&lt;br /&gt;
&lt;br /&gt;
in the tabook i didn't find any specification of the SATA bridge. it would be interesting:&lt;br /&gt;
1) what type it is&lt;br /&gt;
2) if it is fixed on the mainboard or if it is possible to solder in a new one&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Another interesting question is whether these ThinkPads can be hacked to accept a real SATA system disk, by bypassing the SATA-to-PATA bridge (this would probably involve some soldering and cutting). If the BIOS can also handle that then it may come in handy, since some new high-capacity 2.5&amp;quot; disks have only SATA versions.&lt;br /&gt;
--[[User:Thinker|Thinker]] 02:56, 8 Oct 2005 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Z series'''&lt;br /&gt;
&lt;br /&gt;
Since the Z series uses a SATA controller and disk, without the bridge, would it be possible to make SATA ATAPI support as a module that you could load only when using the optical drive?  Then, for everyday use, the experimental options of PATA and ATAPI with ata_piix would not be needed, moving you one step further in the direction of stability.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I have an R52 with Ubuntu Breezy and no problems with SATA (I personally asked the developers to include the needed patches).&lt;br /&gt;
&lt;br /&gt;
However, I'd like to know wheter there are any advantages with this configuration. Future proof? Power saving? Speed?&lt;br /&gt;
&lt;br /&gt;
Anybody cares to comment?&lt;br /&gt;
&lt;br /&gt;
-- [[User:Micampe|Michele]]&lt;br /&gt;
&lt;br /&gt;
Straight SATA, like in the Z60m/t, will provide better upgrade options in the long run (the hard disk industry is slowly but surely moving to SATA), and maybe a small performance increase if your drive, controller and OS support command queueing (they probably don't). However, with the hybrid ThinkPad models that use a SATA-to-PATA bridge, like your R52, you get all the drawbacks and none of the benefits; plus there's the horrible issue with [[Problem with non-ThinkPad hard disks|drive compatibility]]. My impression is that Lenovo did this just as a convenient (for them!) transition path, in order to use new chipsets without comitting to (temporarily) scarcer and more expensive drives. In any case, they didn't even have the decency to make the UltraBay Slim accept SATA drives. &lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:10, 3 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
There is a [[UltraBay Slim SATA HDD Adapter]], but only compatible with the Z series (at least for the moment).&lt;br /&gt;
&lt;br /&gt;
--[[User:Tonko|Tonko]] 03:12, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
== updated libata_passthru.patch ==&lt;br /&gt;
&lt;br /&gt;
FYI: when using the Suspend-to-RAM patch from http://lkml.org/lkml/2005/9/23/97 against 2.6.14 the libata_passthru.patch from the article doesn't apply any more, so I've put up an updated version at http://linux.spiney.org/system/files?file=02_libata_passthru.fixed.patch&lt;br /&gt;
&lt;br /&gt;
I give no warranties whatsoever whether it works or kills your hardware, but since I just removed duplicate parts already in the Suspend-to-RAM patch it should be ok.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 19:04, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Running 2.6.16-rc4 and I'm running into scsci errors and Input/output&lt;br /&gt;
errrors when resuming from suspend to ram.  The suspend patch is&lt;br /&gt;
supposed to be in 2.6.16-rc1 and I'm booting with&lt;br /&gt;
&lt;br /&gt;
title= 2.6.16-rc4&lt;br /&gt;
root (hd0,0)&lt;br /&gt;
kernel /boot/kernel-2.6.16-rc4  root=/dev/sda3 ro combined_mode=libata&lt;br /&gt;
libata.atapi_enabled=1 acpi_sleep=s3_bios processor.max_cstate=2&lt;br /&gt;
elevator=cfq ide1=noprobe&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Don't know about -rc4, but -rc3 worked without problems, could you try that one instead? Maybe there was some bug introduced between these two versions. What's combined_mode=libata BTW?&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 08:28, 23 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== ATA_ENABLE_PATA PCI IDs ==&lt;br /&gt;
&lt;br /&gt;
Spiney, could you extend the article to explain what and why are the PCI IDs in the footnote about ATA_ENABLE_PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:59, 4 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Ok, done, feel free to fix the table because I'm a bit struggling with Wiki-style editing. ;) As for the why, those PCI IDs are the only ones affected by the ATA_ENABLE_PATA, as seen in {{path|drivers/scsi/ata_piix.c}} in the kernel source.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 11:19, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Will other cards work without ATA_ENABLE_PATA, or just fail? In the former case your instructions are right, but in the latter case we should tell the user to check the list of IDs in his ''current'' kernel and, if there's no match, to give up in the first place instead of following the rest of the instructions.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 12:48, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
AFAICT if the chipset is supported by libata it will work, regardless of what low-level driver is used. Of course if there is no low-level driver for the chipset then even using the harddisk via libata will fail, but that's a different story. At least ATA_ENABLE_PATA will then make no difference since it's Intel PIIX (and compatible) only.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 13:24, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Not sure I got you. Is there any case where the instructions will work without ATA_ENABLE_PATA, given that all ThinkPad optical drives are PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 13:41, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The instructions will work without ATA_ENABLE_PATA unless the Thinkpad uses one of the three chipsets listed in the article, as long as libata works at all, i.e. the system drive shows up as /dev/sda. The #define doesn't change the behaviour of libata for any other chipset, it's [http://linux.yyz.us/sata/sata-status.html#ich5 ata_piix] only.&lt;br /&gt;
&lt;br /&gt;
Since I don't have a machine with one of the three chipsets (anyone?), I can't tell whether those work at all with libata, but I guess there's a reason why they're not enabled by default. It's just that defining ATA_ENABLE_PATA is only making sense for these three chipsets.&lt;br /&gt;
&lt;br /&gt;
Any clearer now? If not, just run {{cmd|grep -r ATA_ENABLE_PATA /path/to/kernelsource|}} and see how seldom and where the #define is used.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 14:55, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
All clear now. I thought it will work only if you have these chipsets ''and'' ATA_ENABLE_PATA=1. Thanks for the explanation!&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 15:12, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Does any of the relevant ThinkPad models (listed in the article) use these chips? They look too old to be found on the SATA models.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 23:35, 9 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I don't think so, I was about to add &amp;quot;in the unlikely event that you own one of these chipsets&amp;quot; or something.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 07:56, 10 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== DVD DMA with ide/sata as module ==&lt;br /&gt;
&lt;br /&gt;
Did anyone get DVD DMA to work with either the IDE or SATA drivers compiled as modules? If so, please fill in the missing details in that section. I have it working only with both IDE and SATA built-in.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:58, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Basically using a Live-CD with a recent kernel (is there one with 2.6.14 already?) would be sufficient, since they usually use an initrd or something similar, don't they? I'll give the Debian distribution kernel a try when I get around to it  (bit busy atm), after all there's 2.6.14 in sid.&lt;br /&gt;
&lt;br /&gt;
But for people using their own kernel compiled from source I see no point in doing the module+initrd thing anyway, unless you want LVM for the root filesystem or other funky stuff.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 19:22, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Can anyone tell me how those modules are called?&lt;br /&gt;
&lt;br /&gt;
Thomas&lt;br /&gt;
--[[User:Thomas|thomas]] 19:48, 23 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Where the hell do I find the libata module? &lt;br /&gt;
&lt;br /&gt;
--[[User:squashball|squashball]] 09:09, 11 June 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
The relevant driver is called ata_piix. The ata_piix driver uses a chunk of shared kernel code called libata.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 09:33, 11 June 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Ok, Thanks. Nevertheless I am not able to get my drive working. It's a T60...&lt;br /&gt;
&lt;br /&gt;
--[[User:squashball|squashball]] 12:29, 12 June 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
Your T60 uses AHCI by default. You have to change the BIOS settings to &amp;quot;compatibility mode&amp;quot; to use the HDD and DVD drive with ata_piix. Then, you're also able to hotswap your ultrabay. But for this, a patch for ibm_acpi is needed.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 14:57, 12 June 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Yeah, thanks, it's working now! Where was I supposed to find this info?&lt;br /&gt;
EDIT: But DMA is still off and can't be enabled.&lt;br /&gt;
&lt;br /&gt;
--[[User:squashball|squashball]] 07:58, 13 June 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== occasional hang upon resume with various kernels ==&lt;br /&gt;
&lt;br /&gt;
I keep having trouble with resume after suspend to ram. Occasionally, it takes longer to wake up and then is in a semi-hanged &lt;br /&gt;
state, i.e. nothing having to do with actual reading from the disk works. (what was running, as aterm &lt;br /&gt;
is still running, ls works, when the listing is buffered, but hangs if it is not). &lt;br /&gt;
Kernel is 2.6.15 with sata-pm patch. Later 2.6.15 kernels hang always and it's the same with 2.6.16. &lt;br /&gt;
Could perhaps somebody, for whom it works without problems post his .config somewhere? &lt;br /&gt;
I'm out of ideas. &lt;br /&gt;
&lt;br /&gt;
--[[User:Rasto|Rasto]] 14:46, 20 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
I have the same problem with my x41 and 2.6.16 or 2.6.16-r1 running on Gentoo. Sometimes resume is ok and sometimes the disk doesn't resume. I can't see any log because the disk is unwritable after resume. The logs on F12 is full of io error.&lt;br /&gt;
I tested many different kernel configs, unloading modules before suspend, stopping services...&lt;br /&gt;
Like Rasto, I'm out of ideas...&lt;br /&gt;
&lt;br /&gt;
--[[User:Pplr|Pplr]] 19:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
You could try http://rtr.ca/dell_i9300/kernel/kernel-2.6.16/02_libata_resume_fix.patch&lt;br /&gt;
This patch worked for me.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 21:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hello, according to the first lines of the article, resume does not work prior to kernel 2.6.16, i.e. the computer hangs up just a second after it comes back. I just switched from 2.6.15 to 2.6.16 but the problem still remains. I have a Z60M thinkpad. So this has obviously the same problem as the T60.&lt;br /&gt;
&lt;br /&gt;
-- [[User:Bjoern.thalheim|BjÃ¶rn]] 14:37, 10 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Increasing the timeouts seems to do the trick. I applied it about two weeks ago, and it works since. &lt;br /&gt;
&lt;br /&gt;
-- [[User:Rasto|Rasto]] 09:59, 11 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Suspend to RAM on X41 not working with Debian-packaged 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
I just tried the Debian package of the Linux 2.6.16 kernel on my [[X41]] to see if suspend-to-RAM would work. Unfortunately, it didn't. The laptop suspends just fine, but when it's turned back on, the backlight remains off, there is a lot of disk activity for a while, and then the computer just shuts off. When turned on again, it boots normally. Suspend-to-disk works fine, just like before.&lt;br /&gt;
&lt;br /&gt;
On a different note, CPU throttling broke on my system with the new kernel. I can no longer modprobe acpi-cpufreq. [[User:Ehn|Ehn]] 04:28, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter issue was solved by using speedstep-centrino instead of acpi-cpufreq. [[User:Ehn|Ehn]] 23:25, 9 April 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Neither problem is related to this article, so it's unlikely to be answered here.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:37, 22 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hm. It seems to be a problem with sata power management for me, so I guess this could be one of the places. &lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 17:45, 22 March 2006 (CET)&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Ehn, by &amp;quot;disk activity&amp;quot; do you mean a constantly on HDD LED and no disk movement noises, or ''real'' disk activity with the LED flashing and disk noise? The former is likely to be the SATA problem, the latter rules out the SATA problem.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:44, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter. There is real disk activity, indicated by LED flashing &amp;lt;em&amp;gt;and&amp;lt;/em&amp;gt; disk movement noise, for about 30 seconds, before the machine gives up and shuts down. If this is not SATA-related, what might it be? [[User:Ehn|Ehn]] 23:23, 9 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Sorry, I didn't realize Ehn has two problems, and I considered your post as aimed at my and Ehn's. Never mind then.&lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 10:47, 23 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Problem with 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
ok, seems like we have a new problem:&lt;br /&gt;
After upgrading from 2.6.15 to 2.6.16 my DVD device is not recognised anymore by libsata.&lt;br /&gt;
The only way to get working is by using the ide layer - without DMA of course.&lt;br /&gt;
Can anyone confirm this?&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 17:49, 23 Mar 2006 (CET)&lt;br /&gt;
--------&lt;br /&gt;
&lt;br /&gt;
Try the kernel parameter '''combined_mode=libata''', does this help? Also, have you enabled libata's ATAPI support as described in the article?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:31, 23 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Yes, I'm using the command line parameter libata.atapi_enable=1 - up to 2.6.15 it works fine.&lt;br /&gt;
About the combined_mode parameter: Also tried it, though the Author of this patch mentioned that the default behavior did not changed.&lt;br /&gt;
I will continue hungting this problem when I find some time.&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 7:12, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
I can confirm Eriks problem.  After updating to 2.6.16 I have it, too.  libata.atapi_enable=1 is still on kernel command line.  With some help of Michael Ott I figured out that this only happens if you have the current suspend2 patches applied.&lt;br /&gt;
Using a vanilla 2.6.16 works as expected. &lt;br /&gt;
&lt;br /&gt;
--[[User:Mobst|mobst]]  14:30, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Ahh thanks. Finding the problem in the suspend2 patch should be an easy task.&lt;br /&gt;
I just hope for some free time this weekend!&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 18:31, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Uhm, looks like [[ZolnOtt|ZolnOtt]] was faster, he added the note to&lt;br /&gt;
http://thinkwiki.org/wiki/Problems_with_SATA_and_Linux#No_DMA_on_DVD_drive&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 20:02, 24 Mar 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Patch against SATA-resume problem with T60 ==&lt;br /&gt;
&lt;br /&gt;
I only have a Fujitsu-Siemens C1320, but I had the same problem with resuming from suspend with a SATA disk and kernel 2.6.16 as mentioned for the T60.  I solved the problem for me by merging several patches (patches.fixes/libata-increase-timeout-for-resume, patches.fixes/ahci-suspend, patches.fixes/ahci-atapi-sense-request, patches.drivers/libata-acpi-suspend, patches.fixes/libata-resume-drive_port-mode, patches.fixes/ahci-init-on-resume, patches.drivers/libata-device-spindown)&lt;br /&gt;
from the OpenSuSE kernel 2.6.16-12 to vanilla 2.6.16.5. You'll find my patch at http://www.spinnaker.de/linux/c1320/sata-resume-2.6.16.5.patch.  I expect this to solve the T60 problem, so I provide the patch here, as this wiki helped me so much with my laptop.&lt;br /&gt;
&lt;br /&gt;
--[[User:Rrosenfeld|Rrosenfeld]] 23:12, 16 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
I just want to let you know that I managed to get Suspend-to-RAM working on the T60. I'm using Gentoo's suspend2-sources-2.6.16-r2 as base and applied the above patches from Rrosenfeld (thanks!) and additionally this [https://bugzilla.novell.com/attachment.cgi?id=75844&amp;amp;action=view one] (here the corresponding [https://bugzilla.novell.com/show_bug.cgi?id=162090 bug]).&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 22:52, 17 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
same here. applied both patches to gentoo suspend-sources-2.6.16-r5 --- working. sweet.&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 21:51, 3 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
however: powersave (powersaved) is a spoiler: it will cause the resume operation to get stuck at &amp;quot;reading back caches&amp;quot; and eventually result in a kernel panic. stopping powersaved before hibernating does not prevent it: it seems that running powersaved just once will screw things up. interesting and nasty. but not a show stopper (IMHO).&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 17:14, 10 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
that's not powersaved's fault. kernel panics are always kernel (or hardware) bugs. i experienced this kind of lockups when using different cpufreq governors at once (that's probaly something one shoudln't do?). i'm now using only cpufreq_userspace and don't have any problems.&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 15:11, 11 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Having exactly the same SATA wakeup problem on my Z60t, using FC5. Can the patch from rosenfeld be applied also to the FC5 kernelsource?&lt;br /&gt;
&lt;br /&gt;
--[[User:SzentivÃ¡nyi|szenti]] 21:29, 11 May 2006 (CEST)&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22731</id>
		<title>Talk:Problems with SATA and Linux</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22731"/>
		<updated>2006-06-13T06:11:02Z</updated>

		<summary type="html">&lt;p&gt;Squashball: /* DVD DMA with ide/sata as module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
I'm running gentoo on my T43; I had problems with X11 (opensource radeon driver) and a SATA-patched kernel (I tried both 2.6.14 and 2.6.15-gentoo). Suspend to RAM worked nicely, but starting X freezed the machine after a short time. I tried removing radeonfb from the kernel; with vesafb, everything seems to work.&lt;br /&gt;
&lt;br /&gt;
-- Stefan, 10 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
That's strange - with the libata passthrough (IDE driver not in kernel) as set up in the text, my t43p DVD drive also will not record as hinted in the wikipage...  DMA works fine, so DVD playing / ripping is smooth and quick.  CD record functions also are absent.  I have PATA enabled, and the suspend + SMART patches applied over 2.6.14.2.&lt;br /&gt;
--------&lt;br /&gt;
I can confirm this with 2.6.14.4, however with 2.6.15/15.1 with sata_pm patch it works.&lt;br /&gt;
&lt;br /&gt;
-- Rasto, 24 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
regarding the &amp;quot;BIOS error 2010 on user-installed hard disk&amp;quot;:&lt;br /&gt;
the text says that corruption occurs if you use a harddisk without the specific ibm bios. would be interesting if it is possible to fix this problem in the kernel so that you can use any disk and the kernel doesn't use specific ATA commands which are known to cause problems.&lt;br /&gt;
&lt;br /&gt;
in the tabook i didn't find any specification of the SATA bridge. it would be interesting:&lt;br /&gt;
1) what type it is&lt;br /&gt;
2) if it is fixed on the mainboard or if it is possible to solder in a new one&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Another interesting question is whether these ThinkPads can be hacked to accept a real SATA system disk, by bypassing the SATA-to-PATA bridge (this would probably involve some soldering and cutting). If the BIOS can also handle that then it may come in handy, since some new high-capacity 2.5&amp;quot; disks have only SATA versions.&lt;br /&gt;
--[[User:Thinker|Thinker]] 02:56, 8 Oct 2005 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Z series'''&lt;br /&gt;
&lt;br /&gt;
Since the Z series uses a SATA controller and disk, without the bridge, would it be possible to make SATA ATAPI support as a module that you could load only when using the optical drive?  Then, for everyday use, the experimental options of PATA and ATAPI with ata_piix would not be needed, moving you one step further in the direction of stability.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I have an R52 with Ubuntu Breezy and no problems with SATA (I personally asked the developers to include the needed patches).&lt;br /&gt;
&lt;br /&gt;
However, I'd like to know wheter there are any advantages with this configuration. Future proof? Power saving? Speed?&lt;br /&gt;
&lt;br /&gt;
Anybody cares to comment?&lt;br /&gt;
&lt;br /&gt;
-- [[User:Micampe|Michele]]&lt;br /&gt;
&lt;br /&gt;
Straight SATA, like in the Z60m/t, will provide better upgrade options in the long run (the hard disk industry is slowly but surely moving to SATA), and maybe a small performance increase if your drive, controller and OS support command queueing (they probably don't). However, with the hybrid ThinkPad models that use a SATA-to-PATA bridge, like your R52, you get all the drawbacks and none of the benefits; plus there's the horrible issue with [[Problem with non-ThinkPad hard disks|drive compatibility]]. My impression is that Lenovo did this just as a convenient (for them!) transition path, in order to use new chipsets without comitting to (temporarily) scarcer and more expensive drives. In any case, they didn't even have the decency to make the UltraBay Slim accept SATA drives. &lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:10, 3 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
There is a [[UltraBay Slim SATA HDD Adapter]], but only compatible with the Z series (at least for the moment).&lt;br /&gt;
&lt;br /&gt;
--[[User:Tonko|Tonko]] 03:12, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
== updated libata_passthru.patch ==&lt;br /&gt;
&lt;br /&gt;
FYI: when using the Suspend-to-RAM patch from http://lkml.org/lkml/2005/9/23/97 against 2.6.14 the libata_passthru.patch from the article doesn't apply any more, so I've put up an updated version at http://linux.spiney.org/system/files?file=02_libata_passthru.fixed.patch&lt;br /&gt;
&lt;br /&gt;
I give no warranties whatsoever whether it works or kills your hardware, but since I just removed duplicate parts already in the Suspend-to-RAM patch it should be ok.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 19:04, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Running 2.6.16-rc4 and I'm running into scsci errors and Input/output&lt;br /&gt;
errrors when resuming from suspend to ram.  The suspend patch is&lt;br /&gt;
supposed to be in 2.6.16-rc1 and I'm booting with&lt;br /&gt;
&lt;br /&gt;
title= 2.6.16-rc4&lt;br /&gt;
root (hd0,0)&lt;br /&gt;
kernel /boot/kernel-2.6.16-rc4  root=/dev/sda3 ro combined_mode=libata&lt;br /&gt;
libata.atapi_enabled=1 acpi_sleep=s3_bios processor.max_cstate=2&lt;br /&gt;
elevator=cfq ide1=noprobe&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Don't know about -rc4, but -rc3 worked without problems, could you try that one instead? Maybe there was some bug introduced between these two versions. What's combined_mode=libata BTW?&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 08:28, 23 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== ATA_ENABLE_PATA PCI IDs ==&lt;br /&gt;
&lt;br /&gt;
Spiney, could you extend the article to explain what and why are the PCI IDs in the footnote about ATA_ENABLE_PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:59, 4 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Ok, done, feel free to fix the table because I'm a bit struggling with Wiki-style editing. ;) As for the why, those PCI IDs are the only ones affected by the ATA_ENABLE_PATA, as seen in {{path|drivers/scsi/ata_piix.c}} in the kernel source.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 11:19, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Will other cards work without ATA_ENABLE_PATA, or just fail? In the former case your instructions are right, but in the latter case we should tell the user to check the list of IDs in his ''current'' kernel and, if there's no match, to give up in the first place instead of following the rest of the instructions.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 12:48, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
AFAICT if the chipset is supported by libata it will work, regardless of what low-level driver is used. Of course if there is no low-level driver for the chipset then even using the harddisk via libata will fail, but that's a different story. At least ATA_ENABLE_PATA will then make no difference since it's Intel PIIX (and compatible) only.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 13:24, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Not sure I got you. Is there any case where the instructions will work without ATA_ENABLE_PATA, given that all ThinkPad optical drives are PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 13:41, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The instructions will work without ATA_ENABLE_PATA unless the Thinkpad uses one of the three chipsets listed in the article, as long as libata works at all, i.e. the system drive shows up as /dev/sda. The #define doesn't change the behaviour of libata for any other chipset, it's [http://linux.yyz.us/sata/sata-status.html#ich5 ata_piix] only.&lt;br /&gt;
&lt;br /&gt;
Since I don't have a machine with one of the three chipsets (anyone?), I can't tell whether those work at all with libata, but I guess there's a reason why they're not enabled by default. It's just that defining ATA_ENABLE_PATA is only making sense for these three chipsets.&lt;br /&gt;
&lt;br /&gt;
Any clearer now? If not, just run {{cmd|grep -r ATA_ENABLE_PATA /path/to/kernelsource|}} and see how seldom and where the #define is used.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 14:55, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
All clear now. I thought it will work only if you have these chipsets ''and'' ATA_ENABLE_PATA=1. Thanks for the explanation!&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 15:12, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Does any of the relevant ThinkPad models (listed in the article) use these chips? They look too old to be found on the SATA models.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 23:35, 9 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I don't think so, I was about to add &amp;quot;in the unlikely event that you own one of these chipsets&amp;quot; or something.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 07:56, 10 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== DVD DMA with ide/sata as module ==&lt;br /&gt;
&lt;br /&gt;
Did anyone get DVD DMA to work with either the IDE or SATA drivers compiled as modules? If so, please fill in the missing details in that section. I have it working only with both IDE and SATA built-in.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:58, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Basically using a Live-CD with a recent kernel (is there one with 2.6.14 already?) would be sufficient, since they usually use an initrd or something similar, don't they? I'll give the Debian distribution kernel a try when I get around to it  (bit busy atm), after all there's 2.6.14 in sid.&lt;br /&gt;
&lt;br /&gt;
But for people using their own kernel compiled from source I see no point in doing the module+initrd thing anyway, unless you want LVM for the root filesystem or other funky stuff.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 19:22, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Can anyone tell me how those modules are called?&lt;br /&gt;
&lt;br /&gt;
Thomas&lt;br /&gt;
--[[User:Thomas|thomas]] 19:48, 23 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Where the hell do I find the libata module? &lt;br /&gt;
&lt;br /&gt;
--[[User:squashball|squashball]] 09:09, 11 June 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
The relevant driver is called ata_piix. The ata_piix driver uses a chunk of shared kernel code called libata.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 09:33, 11 June 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Ok, Thanks. Nevertheless I am not able to get my drive working. It's a T60...&lt;br /&gt;
&lt;br /&gt;
--[[User:squashball|squashball]] 12:29, 12 June 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
Your T60 uses AHCI by default. You have to change the BIOS settings to &amp;quot;compatibility mode&amp;quot; to use the HDD and DVD drive with ata_piix. Then, you're also able to hotswap your ultrabay. But for this, a patch for ibm_acpi is needed.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 14:57, 12 June 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Yeah, thanks, it's working now! Where was I supposed to find this info?&lt;br /&gt;
&lt;br /&gt;
--[[User:squashball|squashball]] 07:58, 13 June 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== occasional hang upon resume with various kernels ==&lt;br /&gt;
&lt;br /&gt;
I keep having trouble with resume after suspend to ram. Occasionally, it takes longer to wake up and then is in a semi-hanged &lt;br /&gt;
state, i.e. nothing having to do with actual reading from the disk works. (what was running, as aterm &lt;br /&gt;
is still running, ls works, when the listing is buffered, but hangs if it is not). &lt;br /&gt;
Kernel is 2.6.15 with sata-pm patch. Later 2.6.15 kernels hang always and it's the same with 2.6.16. &lt;br /&gt;
Could perhaps somebody, for whom it works without problems post his .config somewhere? &lt;br /&gt;
I'm out of ideas. &lt;br /&gt;
&lt;br /&gt;
--[[User:Rasto|Rasto]] 14:46, 20 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
I have the same problem with my x41 and 2.6.16 or 2.6.16-r1 running on Gentoo. Sometimes resume is ok and sometimes the disk doesn't resume. I can't see any log because the disk is unwritable after resume. The logs on F12 is full of io error.&lt;br /&gt;
I tested many different kernel configs, unloading modules before suspend, stopping services...&lt;br /&gt;
Like Rasto, I'm out of ideas...&lt;br /&gt;
&lt;br /&gt;
--[[User:Pplr|Pplr]] 19:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
You could try http://rtr.ca/dell_i9300/kernel/kernel-2.6.16/02_libata_resume_fix.patch&lt;br /&gt;
This patch worked for me.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 21:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hello, according to the first lines of the article, resume does not work prior to kernel 2.6.16, i.e. the computer hangs up just a second after it comes back. I just switched from 2.6.15 to 2.6.16 but the problem still remains. I have a Z60M thinkpad. So this has obviously the same problem as the T60.&lt;br /&gt;
&lt;br /&gt;
-- [[User:Bjoern.thalheim|BjÃ¶rn]] 14:37, 10 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Increasing the timeouts seems to do the trick. I applied it about two weeks ago, and it works since. &lt;br /&gt;
&lt;br /&gt;
-- [[User:Rasto|Rasto]] 09:59, 11 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Suspend to RAM on X41 not working with Debian-packaged 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
I just tried the Debian package of the Linux 2.6.16 kernel on my [[X41]] to see if suspend-to-RAM would work. Unfortunately, it didn't. The laptop suspends just fine, but when it's turned back on, the backlight remains off, there is a lot of disk activity for a while, and then the computer just shuts off. When turned on again, it boots normally. Suspend-to-disk works fine, just like before.&lt;br /&gt;
&lt;br /&gt;
On a different note, CPU throttling broke on my system with the new kernel. I can no longer modprobe acpi-cpufreq. [[User:Ehn|Ehn]] 04:28, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter issue was solved by using speedstep-centrino instead of acpi-cpufreq. [[User:Ehn|Ehn]] 23:25, 9 April 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Neither problem is related to this article, so it's unlikely to be answered here.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:37, 22 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hm. It seems to be a problem with sata power management for me, so I guess this could be one of the places. &lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 17:45, 22 March 2006 (CET)&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Ehn, by &amp;quot;disk activity&amp;quot; do you mean a constantly on HDD LED and no disk movement noises, or ''real'' disk activity with the LED flashing and disk noise? The former is likely to be the SATA problem, the latter rules out the SATA problem.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:44, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter. There is real disk activity, indicated by LED flashing &amp;lt;em&amp;gt;and&amp;lt;/em&amp;gt; disk movement noise, for about 30 seconds, before the machine gives up and shuts down. If this is not SATA-related, what might it be? [[User:Ehn|Ehn]] 23:23, 9 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Sorry, I didn't realize Ehn has two problems, and I considered your post as aimed at my and Ehn's. Never mind then.&lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 10:47, 23 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Problem with 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
ok, seems like we have a new problem:&lt;br /&gt;
After upgrading from 2.6.15 to 2.6.16 my DVD device is not recognised anymore by libsata.&lt;br /&gt;
The only way to get working is by using the ide layer - without DMA of course.&lt;br /&gt;
Can anyone confirm this?&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 17:49, 23 Mar 2006 (CET)&lt;br /&gt;
--------&lt;br /&gt;
&lt;br /&gt;
Try the kernel parameter '''combined_mode=libata''', does this help? Also, have you enabled libata's ATAPI support as described in the article?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:31, 23 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Yes, I'm using the command line parameter libata.atapi_enable=1 - up to 2.6.15 it works fine.&lt;br /&gt;
About the combined_mode parameter: Also tried it, though the Author of this patch mentioned that the default behavior did not changed.&lt;br /&gt;
I will continue hungting this problem when I find some time.&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 7:12, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
I can confirm Eriks problem.  After updating to 2.6.16 I have it, too.  libata.atapi_enable=1 is still on kernel command line.  With some help of Michael Ott I figured out that this only happens if you have the current suspend2 patches applied.&lt;br /&gt;
Using a vanilla 2.6.16 works as expected. &lt;br /&gt;
&lt;br /&gt;
--[[User:Mobst|mobst]]  14:30, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Ahh thanks. Finding the problem in the suspend2 patch should be an easy task.&lt;br /&gt;
I just hope for some free time this weekend!&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 18:31, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Uhm, looks like [[ZolnOtt|ZolnOtt]] was faster, he added the note to&lt;br /&gt;
http://thinkwiki.org/wiki/Problems_with_SATA_and_Linux#No_DMA_on_DVD_drive&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 20:02, 24 Mar 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Patch against SATA-resume problem with T60 ==&lt;br /&gt;
&lt;br /&gt;
I only have a Fujitsu-Siemens C1320, but I had the same problem with resuming from suspend with a SATA disk and kernel 2.6.16 as mentioned for the T60.  I solved the problem for me by merging several patches (patches.fixes/libata-increase-timeout-for-resume, patches.fixes/ahci-suspend, patches.fixes/ahci-atapi-sense-request, patches.drivers/libata-acpi-suspend, patches.fixes/libata-resume-drive_port-mode, patches.fixes/ahci-init-on-resume, patches.drivers/libata-device-spindown)&lt;br /&gt;
from the OpenSuSE kernel 2.6.16-12 to vanilla 2.6.16.5. You'll find my patch at http://www.spinnaker.de/linux/c1320/sata-resume-2.6.16.5.patch.  I expect this to solve the T60 problem, so I provide the patch here, as this wiki helped me so much with my laptop.&lt;br /&gt;
&lt;br /&gt;
--[[User:Rrosenfeld|Rrosenfeld]] 23:12, 16 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
I just want to let you know that I managed to get Suspend-to-RAM working on the T60. I'm using Gentoo's suspend2-sources-2.6.16-r2 as base and applied the above patches from Rrosenfeld (thanks!) and additionally this [https://bugzilla.novell.com/attachment.cgi?id=75844&amp;amp;action=view one] (here the corresponding [https://bugzilla.novell.com/show_bug.cgi?id=162090 bug]).&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 22:52, 17 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
same here. applied both patches to gentoo suspend-sources-2.6.16-r5 --- working. sweet.&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 21:51, 3 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
however: powersave (powersaved) is a spoiler: it will cause the resume operation to get stuck at &amp;quot;reading back caches&amp;quot; and eventually result in a kernel panic. stopping powersaved before hibernating does not prevent it: it seems that running powersaved just once will screw things up. interesting and nasty. but not a show stopper (IMHO).&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 17:14, 10 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
that's not powersaved's fault. kernel panics are always kernel (or hardware) bugs. i experienced this kind of lockups when using different cpufreq governors at once (that's probaly something one shoudln't do?). i'm now using only cpufreq_userspace and don't have any problems.&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 15:11, 11 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Having exactly the same SATA wakeup problem on my Z60t, using FC5. Can the patch from rosenfeld be applied also to the FC5 kernelsource?&lt;br /&gt;
&lt;br /&gt;
--[[User:SzentivÃ¡nyi|szenti]] 21:29, 11 May 2006 (CEST)&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22720</id>
		<title>Talk:Problems with SATA and Linux</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22720"/>
		<updated>2006-06-12T10:38:46Z</updated>

		<summary type="html">&lt;p&gt;Squashball: /* DVD DMA with ide/sata as module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
I'm running gentoo on my T43; I had problems with X11 (opensource radeon driver) and a SATA-patched kernel (I tried both 2.6.14 and 2.6.15-gentoo). Suspend to RAM worked nicely, but starting X freezed the machine after a short time. I tried removing radeonfb from the kernel; with vesafb, everything seems to work.&lt;br /&gt;
&lt;br /&gt;
-- Stefan, 10 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
That's strange - with the libata passthrough (IDE driver not in kernel) as set up in the text, my t43p DVD drive also will not record as hinted in the wikipage...  DMA works fine, so DVD playing / ripping is smooth and quick.  CD record functions also are absent.  I have PATA enabled, and the suspend + SMART patches applied over 2.6.14.2.&lt;br /&gt;
--------&lt;br /&gt;
I can confirm this with 2.6.14.4, however with 2.6.15/15.1 with sata_pm patch it works.&lt;br /&gt;
&lt;br /&gt;
-- Rasto, 24 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
regarding the &amp;quot;BIOS error 2010 on user-installed hard disk&amp;quot;:&lt;br /&gt;
the text says that corruption occurs if you use a harddisk without the specific ibm bios. would be interesting if it is possible to fix this problem in the kernel so that you can use any disk and the kernel doesn't use specific ATA commands which are known to cause problems.&lt;br /&gt;
&lt;br /&gt;
in the tabook i didn't find any specification of the SATA bridge. it would be interesting:&lt;br /&gt;
1) what type it is&lt;br /&gt;
2) if it is fixed on the mainboard or if it is possible to solder in a new one&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Another interesting question is whether these ThinkPads can be hacked to accept a real SATA system disk, by bypassing the SATA-to-PATA bridge (this would probably involve some soldering and cutting). If the BIOS can also handle that then it may come in handy, since some new high-capacity 2.5&amp;quot; disks have only SATA versions.&lt;br /&gt;
--[[User:Thinker|Thinker]] 02:56, 8 Oct 2005 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Z series'''&lt;br /&gt;
&lt;br /&gt;
Since the Z series uses a SATA controller and disk, without the bridge, would it be possible to make SATA ATAPI support as a module that you could load only when using the optical drive?  Then, for everyday use, the experimental options of PATA and ATAPI with ata_piix would not be needed, moving you one step further in the direction of stability.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I have an R52 with Ubuntu Breezy and no problems with SATA (I personally asked the developers to include the needed patches).&lt;br /&gt;
&lt;br /&gt;
However, I'd like to know wheter there are any advantages with this configuration. Future proof? Power saving? Speed?&lt;br /&gt;
&lt;br /&gt;
Anybody cares to comment?&lt;br /&gt;
&lt;br /&gt;
-- [[User:Micampe|Michele]]&lt;br /&gt;
&lt;br /&gt;
Straight SATA, like in the Z60m/t, will provide better upgrade options in the long run (the hard disk industry is slowly but surely moving to SATA), and maybe a small performance increase if your drive, controller and OS support command queueing (they probably don't). However, with the hybrid ThinkPad models that use a SATA-to-PATA bridge, like your R52, you get all the drawbacks and none of the benefits; plus there's the horrible issue with [[Problem with non-ThinkPad hard disks|drive compatibility]]. My impression is that Lenovo did this just as a convenient (for them!) transition path, in order to use new chipsets without comitting to (temporarily) scarcer and more expensive drives. In any case, they didn't even have the decency to make the UltraBay Slim accept SATA drives. &lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:10, 3 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
There is a [[UltraBay Slim SATA HDD Adapter]], but only compatible with the Z series (at least for the moment).&lt;br /&gt;
&lt;br /&gt;
--[[User:Tonko|Tonko]] 03:12, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
== updated libata_passthru.patch ==&lt;br /&gt;
&lt;br /&gt;
FYI: when using the Suspend-to-RAM patch from http://lkml.org/lkml/2005/9/23/97 against 2.6.14 the libata_passthru.patch from the article doesn't apply any more, so I've put up an updated version at http://linux.spiney.org/system/files?file=02_libata_passthru.fixed.patch&lt;br /&gt;
&lt;br /&gt;
I give no warranties whatsoever whether it works or kills your hardware, but since I just removed duplicate parts already in the Suspend-to-RAM patch it should be ok.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 19:04, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Running 2.6.16-rc4 and I'm running into scsci errors and Input/output&lt;br /&gt;
errrors when resuming from suspend to ram.  The suspend patch is&lt;br /&gt;
supposed to be in 2.6.16-rc1 and I'm booting with&lt;br /&gt;
&lt;br /&gt;
title= 2.6.16-rc4&lt;br /&gt;
root (hd0,0)&lt;br /&gt;
kernel /boot/kernel-2.6.16-rc4  root=/dev/sda3 ro combined_mode=libata&lt;br /&gt;
libata.atapi_enabled=1 acpi_sleep=s3_bios processor.max_cstate=2&lt;br /&gt;
elevator=cfq ide1=noprobe&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Don't know about -rc4, but -rc3 worked without problems, could you try that one instead? Maybe there was some bug introduced between these two versions. What's combined_mode=libata BTW?&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 08:28, 23 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== ATA_ENABLE_PATA PCI IDs ==&lt;br /&gt;
&lt;br /&gt;
Spiney, could you extend the article to explain what and why are the PCI IDs in the footnote about ATA_ENABLE_PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:59, 4 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Ok, done, feel free to fix the table because I'm a bit struggling with Wiki-style editing. ;) As for the why, those PCI IDs are the only ones affected by the ATA_ENABLE_PATA, as seen in {{path|drivers/scsi/ata_piix.c}} in the kernel source.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 11:19, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Will other cards work without ATA_ENABLE_PATA, or just fail? In the former case your instructions are right, but in the latter case we should tell the user to check the list of IDs in his ''current'' kernel and, if there's no match, to give up in the first place instead of following the rest of the instructions.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 12:48, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
AFAICT if the chipset is supported by libata it will work, regardless of what low-level driver is used. Of course if there is no low-level driver for the chipset then even using the harddisk via libata will fail, but that's a different story. At least ATA_ENABLE_PATA will then make no difference since it's Intel PIIX (and compatible) only.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 13:24, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Not sure I got you. Is there any case where the instructions will work without ATA_ENABLE_PATA, given that all ThinkPad optical drives are PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 13:41, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The instructions will work without ATA_ENABLE_PATA unless the Thinkpad uses one of the three chipsets listed in the article, as long as libata works at all, i.e. the system drive shows up as /dev/sda. The #define doesn't change the behaviour of libata for any other chipset, it's [http://linux.yyz.us/sata/sata-status.html#ich5 ata_piix] only.&lt;br /&gt;
&lt;br /&gt;
Since I don't have a machine with one of the three chipsets (anyone?), I can't tell whether those work at all with libata, but I guess there's a reason why they're not enabled by default. It's just that defining ATA_ENABLE_PATA is only making sense for these three chipsets.&lt;br /&gt;
&lt;br /&gt;
Any clearer now? If not, just run {{cmd|grep -r ATA_ENABLE_PATA /path/to/kernelsource|}} and see how seldom and where the #define is used.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 14:55, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
All clear now. I thought it will work only if you have these chipsets ''and'' ATA_ENABLE_PATA=1. Thanks for the explanation!&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 15:12, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Does any of the relevant ThinkPad models (listed in the article) use these chips? They look too old to be found on the SATA models.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 23:35, 9 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I don't think so, I was about to add &amp;quot;in the unlikely event that you own one of these chipsets&amp;quot; or something.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 07:56, 10 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== DVD DMA with ide/sata as module ==&lt;br /&gt;
&lt;br /&gt;
Did anyone get DVD DMA to work with either the IDE or SATA drivers compiled as modules? If so, please fill in the missing details in that section. I have it working only with both IDE and SATA built-in.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:58, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Basically using a Live-CD with a recent kernel (is there one with 2.6.14 already?) would be sufficient, since they usually use an initrd or something similar, don't they? I'll give the Debian distribution kernel a try when I get around to it  (bit busy atm), after all there's 2.6.14 in sid.&lt;br /&gt;
&lt;br /&gt;
But for people using their own kernel compiled from source I see no point in doing the module+initrd thing anyway, unless you want LVM for the root filesystem or other funky stuff.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 19:22, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Can anyone tell me how those modules are called?&lt;br /&gt;
&lt;br /&gt;
Thomas&lt;br /&gt;
--[[User:Thomas|thomas]] 19:48, 23 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi, I have problems with kernel 2.6.14.6 and libata passthrough. After executing twice the command &amp;quot;cdrecord --scanbus&amp;quot; as root, I get the following message many times in dmesg: &amp;quot;sr 1:0:0:0: timing out command, waited 0s&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 12:53, 14 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Where the hell do I find the libata module? &lt;br /&gt;
&lt;br /&gt;
--[[User:squashball|squashball]] 09:09, 11 June 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
The relevant driver is called ata_piix. The ata_piix driver uses a chunk of shared kernel code called libata.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 09:33, 11 June 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Ok, Thanks. Nevertheless I am not able to get my drive working. It's a T60...&lt;br /&gt;
&lt;br /&gt;
--[[User:squashball|squashball]] 12:29, 12 June 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== occasional hang upon resume with various kernels ==&lt;br /&gt;
&lt;br /&gt;
I keep having trouble with resume after suspend to ram. Occasionally, it takes longer to wake up and then is in a semi-hanged &lt;br /&gt;
state, i.e. nothing having to do with actual reading from the disk works. (what was running, as aterm &lt;br /&gt;
is still running, ls works, when the listing is buffered, but hangs if it is not). &lt;br /&gt;
Kernel is 2.6.15 with sata-pm patch. Later 2.6.15 kernels hang always and it's the same with 2.6.16. &lt;br /&gt;
Could perhaps somebody, for whom it works without problems post his .config somewhere? &lt;br /&gt;
I'm out of ideas. &lt;br /&gt;
&lt;br /&gt;
--[[User:Rasto|Rasto]] 14:46, 20 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
I have the same problem with my x41 and 2.6.16 or 2.6.16-r1 running on Gentoo. Sometimes resume is ok and sometimes the disk doesn't resume. I can't see any log because the disk is unwritable after resume. The logs on F12 is full of io error.&lt;br /&gt;
I tested many different kernel configs, unloading modules before suspend, stopping services...&lt;br /&gt;
Like Rasto, I'm out of ideas...&lt;br /&gt;
&lt;br /&gt;
--[[User:Pplr|Pplr]] 19:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
You could try http://rtr.ca/dell_i9300/kernel/kernel-2.6.16/02_libata_resume_fix.patch&lt;br /&gt;
This patch worked for me.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 21:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hello, according to the first lines of the article, resume does not work prior to kernel 2.6.16, i.e. the computer hangs up just a second after it comes back. I just switched from 2.6.15 to 2.6.16 but the problem still remains. I have a Z60M thinkpad. So this has obviously the same problem as the T60.&lt;br /&gt;
&lt;br /&gt;
-- [[User:Bjoern.thalheim|BjÃ¶rn]] 14:37, 10 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Increasing the timeouts seems to do the trick. I applied it about two weeks ago, and it works since. &lt;br /&gt;
&lt;br /&gt;
-- [[User:Rasto|Rasto]] 09:59, 11 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Suspend to RAM on X41 not working with Debian-packaged 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
I just tried the Debian package of the Linux 2.6.16 kernel on my [[X41]] to see if suspend-to-RAM would work. Unfortunately, it didn't. The laptop suspends just fine, but when it's turned back on, the backlight remains off, there is a lot of disk activity for a while, and then the computer just shuts off. When turned on again, it boots normally. Suspend-to-disk works fine, just like before.&lt;br /&gt;
&lt;br /&gt;
On a different note, CPU throttling broke on my system with the new kernel. I can no longer modprobe acpi-cpufreq. [[User:Ehn|Ehn]] 04:28, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter issue was solved by using speedstep-centrino instead of acpi-cpufreq. [[User:Ehn|Ehn]] 23:25, 9 April 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Neither problem is related to this article, so it's unlikely to be answered here.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:37, 22 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hm. It seems to be a problem with sata power management for me, so I guess this could be one of the places. &lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 17:45, 22 March 2006 (CET)&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Ehn, by &amp;quot;disk activity&amp;quot; do you mean a constantly on HDD LED and no disk movement noises, or ''real'' disk activity with the LED flashing and disk noise? The former is likely to be the SATA problem, the latter rules out the SATA problem.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:44, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter. There is real disk activity, indicated by LED flashing &amp;lt;em&amp;gt;and&amp;lt;/em&amp;gt; disk movement noise, for about 30 seconds, before the machine gives up and shuts down. If this is not SATA-related, what might it be? [[User:Ehn|Ehn]] 23:23, 9 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Sorry, I didn't realize Ehn has two problems, and I considered your post as aimed at my and Ehn's. Never mind then.&lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 10:47, 23 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Problem with 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
ok, seems like we have a new problem:&lt;br /&gt;
After upgrading from 2.6.15 to 2.6.16 my DVD device is not recognised anymore by libsata.&lt;br /&gt;
The only way to get working is by using the ide layer - without DMA of course.&lt;br /&gt;
Can anyone confirm this?&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 17:49, 23 Mar 2006 (CET)&lt;br /&gt;
--------&lt;br /&gt;
&lt;br /&gt;
Try the kernel parameter '''combined_mode=libata''', does this help? Also, have you enabled libata's ATAPI support as described in the article?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:31, 23 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Yes, I'm using the command line parameter libata.atapi_enable=1 - up to 2.6.15 it works fine.&lt;br /&gt;
About the combined_mode parameter: Also tried it, though the Author of this patch mentioned that the default behavior did not changed.&lt;br /&gt;
I will continue hungting this problem when I find some time.&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 7:12, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
I can confirm Eriks problem.  After updating to 2.6.16 I have it, too.  libata.atapi_enable=1 is still on kernel command line.  With some help of Michael Ott I figured out that this only happens if you have the current suspend2 patches applied.&lt;br /&gt;
Using a vanilla 2.6.16 works as expected. &lt;br /&gt;
&lt;br /&gt;
--[[User:Mobst|mobst]]  14:30, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Ahh thanks. Finding the problem in the suspend2 patch should be an easy task.&lt;br /&gt;
I just hope for some free time this weekend!&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 18:31, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Uhm, looks like [[ZolnOtt|ZolnOtt]] was faster, he added the note to&lt;br /&gt;
http://thinkwiki.org/wiki/Problems_with_SATA_and_Linux#No_DMA_on_DVD_drive&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 20:02, 24 Mar 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Patch against SATA-resume problem with T60 ==&lt;br /&gt;
&lt;br /&gt;
I only have a Fujitsu-Siemens C1320, but I had the same problem with resuming from suspend with a SATA disk and kernel 2.6.16 as mentioned for the T60.  I solved the problem for me by merging several patches (patches.fixes/libata-increase-timeout-for-resume, patches.fixes/ahci-suspend, patches.fixes/ahci-atapi-sense-request, patches.drivers/libata-acpi-suspend, patches.fixes/libata-resume-drive_port-mode, patches.fixes/ahci-init-on-resume, patches.drivers/libata-device-spindown)&lt;br /&gt;
from the OpenSuSE kernel 2.6.16-12 to vanilla 2.6.16.5. You'll find my patch at http://www.spinnaker.de/linux/c1320/sata-resume-2.6.16.5.patch.  I expect this to solve the T60 problem, so I provide the patch here, as this wiki helped me so much with my laptop.&lt;br /&gt;
&lt;br /&gt;
--[[User:Rrosenfeld|Rrosenfeld]] 23:12, 16 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
I just want to let you know that I managed to get Suspend-to-RAM working on the T60. I'm using Gentoo's suspend2-sources-2.6.16-r2 as base and applied the above patches from Rrosenfeld (thanks!) and additionally this [https://bugzilla.novell.com/attachment.cgi?id=75844&amp;amp;action=view one] (here the corresponding [https://bugzilla.novell.com/show_bug.cgi?id=162090 bug]).&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 22:52, 17 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
same here. applied both patches to gentoo suspend-sources-2.6.16-r5 --- working. sweet.&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 21:51, 3 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
however: powersave (powersaved) is a spoiler: it will cause the resume operation to get stuck at &amp;quot;reading back caches&amp;quot; and eventually result in a kernel panic. stopping powersaved before hibernating does not prevent it: it seems that running powersaved just once will screw things up. interesting and nasty. but not a show stopper (IMHO).&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 17:14, 10 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
that's not powersaved's fault. kernel panics are always kernel (or hardware) bugs. i experienced this kind of lockups when using different cpufreq governors at once (that's probaly something one shoudln't do?). i'm now using only cpufreq_userspace and don't have any problems.&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 15:11, 11 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Having exactly the same SATA wakeup problem on my Z60t, using FC5. Can the patch from rosenfeld be applied also to the FC5 kernelsource?&lt;br /&gt;
&lt;br /&gt;
--[[User:SzentivÃ¡nyi|szenti]] 21:29, 11 May 2006 (CEST)&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22691</id>
		<title>Talk:Problems with SATA and Linux</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22691"/>
		<updated>2006-06-11T07:17:45Z</updated>

		<summary type="html">&lt;p&gt;Squashball: /* DVD DMA with ide/sata as module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
I'm running gentoo on my T43; I had problems with X11 (opensource radeon driver) and a SATA-patched kernel (I tried both 2.6.14 and 2.6.15-gentoo). Suspend to RAM worked nicely, but starting X freezed the machine after a short time. I tried removing radeonfb from the kernel; with vesafb, everything seems to work.&lt;br /&gt;
&lt;br /&gt;
-- Stefan, 10 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
That's strange - with the libata passthrough (IDE driver not in kernel) as set up in the text, my t43p DVD drive also will not record as hinted in the wikipage...  DMA works fine, so DVD playing / ripping is smooth and quick.  CD record functions also are absent.  I have PATA enabled, and the suspend + SMART patches applied over 2.6.14.2.&lt;br /&gt;
--------&lt;br /&gt;
I can confirm this with 2.6.14.4, however with 2.6.15/15.1 with sata_pm patch it works.&lt;br /&gt;
&lt;br /&gt;
-- Rasto, 24 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
regarding the &amp;quot;BIOS error 2010 on user-installed hard disk&amp;quot;:&lt;br /&gt;
the text says that corruption occurs if you use a harddisk without the specific ibm bios. would be interesting if it is possible to fix this problem in the kernel so that you can use any disk and the kernel doesn't use specific ATA commands which are known to cause problems.&lt;br /&gt;
&lt;br /&gt;
in the tabook i didn't find any specification of the SATA bridge. it would be interesting:&lt;br /&gt;
1) what type it is&lt;br /&gt;
2) if it is fixed on the mainboard or if it is possible to solder in a new one&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Another interesting question is whether these ThinkPads can be hacked to accept a real SATA system disk, by bypassing the SATA-to-PATA bridge (this would probably involve some soldering and cutting). If the BIOS can also handle that then it may come in handy, since some new high-capacity 2.5&amp;quot; disks have only SATA versions.&lt;br /&gt;
--[[User:Thinker|Thinker]] 02:56, 8 Oct 2005 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Z series'''&lt;br /&gt;
&lt;br /&gt;
Since the Z series uses a SATA controller and disk, without the bridge, would it be possible to make SATA ATAPI support as a module that you could load only when using the optical drive?  Then, for everyday use, the experimental options of PATA and ATAPI with ata_piix would not be needed, moving you one step further in the direction of stability.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I have an R52 with Ubuntu Breezy and no problems with SATA (I personally asked the developers to include the needed patches).&lt;br /&gt;
&lt;br /&gt;
However, I'd like to know wheter there are any advantages with this configuration. Future proof? Power saving? Speed?&lt;br /&gt;
&lt;br /&gt;
Anybody cares to comment?&lt;br /&gt;
&lt;br /&gt;
-- [[User:Micampe|Michele]]&lt;br /&gt;
&lt;br /&gt;
Straight SATA, like in the Z60m/t, will provide better upgrade options in the long run (the hard disk industry is slowly but surely moving to SATA), and maybe a small performance increase if your drive, controller and OS support command queueing (they probably don't). However, with the hybrid ThinkPad models that use a SATA-to-PATA bridge, like your R52, you get all the drawbacks and none of the benefits; plus there's the horrible issue with [[Problem with non-ThinkPad hard disks|drive compatibility]]. My impression is that Lenovo did this just as a convenient (for them!) transition path, in order to use new chipsets without comitting to (temporarily) scarcer and more expensive drives. In any case, they didn't even have the decency to make the UltraBay Slim accept SATA drives. &lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:10, 3 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
There is a [[UltraBay Slim SATA HDD Adapter]], but only compatible with the Z series (at least for the moment).&lt;br /&gt;
&lt;br /&gt;
--[[User:Tonko|Tonko]] 03:12, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
== updated libata_passthru.patch ==&lt;br /&gt;
&lt;br /&gt;
FYI: when using the Suspend-to-RAM patch from http://lkml.org/lkml/2005/9/23/97 against 2.6.14 the libata_passthru.patch from the article doesn't apply any more, so I've put up an updated version at http://linux.spiney.org/system/files?file=02_libata_passthru.fixed.patch&lt;br /&gt;
&lt;br /&gt;
I give no warranties whatsoever whether it works or kills your hardware, but since I just removed duplicate parts already in the Suspend-to-RAM patch it should be ok.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 19:04, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Running 2.6.16-rc4 and I'm running into scsci errors and Input/output&lt;br /&gt;
errrors when resuming from suspend to ram.  The suspend patch is&lt;br /&gt;
supposed to be in 2.6.16-rc1 and I'm booting with&lt;br /&gt;
&lt;br /&gt;
title= 2.6.16-rc4&lt;br /&gt;
root (hd0,0)&lt;br /&gt;
kernel /boot/kernel-2.6.16-rc4  root=/dev/sda3 ro combined_mode=libata&lt;br /&gt;
libata.atapi_enabled=1 acpi_sleep=s3_bios processor.max_cstate=2&lt;br /&gt;
elevator=cfq ide1=noprobe&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Don't know about -rc4, but -rc3 worked without problems, could you try that one instead? Maybe there was some bug introduced between these two versions. What's combined_mode=libata BTW?&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 08:28, 23 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== ATA_ENABLE_PATA PCI IDs ==&lt;br /&gt;
&lt;br /&gt;
Spiney, could you extend the article to explain what and why are the PCI IDs in the footnote about ATA_ENABLE_PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:59, 4 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Ok, done, feel free to fix the table because I'm a bit struggling with Wiki-style editing. ;) As for the why, those PCI IDs are the only ones affected by the ATA_ENABLE_PATA, as seen in {{path|drivers/scsi/ata_piix.c}} in the kernel source.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 11:19, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Will other cards work without ATA_ENABLE_PATA, or just fail? In the former case your instructions are right, but in the latter case we should tell the user to check the list of IDs in his ''current'' kernel and, if there's no match, to give up in the first place instead of following the rest of the instructions.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 12:48, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
AFAICT if the chipset is supported by libata it will work, regardless of what low-level driver is used. Of course if there is no low-level driver for the chipset then even using the harddisk via libata will fail, but that's a different story. At least ATA_ENABLE_PATA will then make no difference since it's Intel PIIX (and compatible) only.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 13:24, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Not sure I got you. Is there any case where the instructions will work without ATA_ENABLE_PATA, given that all ThinkPad optical drives are PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 13:41, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The instructions will work without ATA_ENABLE_PATA unless the Thinkpad uses one of the three chipsets listed in the article, as long as libata works at all, i.e. the system drive shows up as /dev/sda. The #define doesn't change the behaviour of libata for any other chipset, it's [http://linux.yyz.us/sata/sata-status.html#ich5 ata_piix] only.&lt;br /&gt;
&lt;br /&gt;
Since I don't have a machine with one of the three chipsets (anyone?), I can't tell whether those work at all with libata, but I guess there's a reason why they're not enabled by default. It's just that defining ATA_ENABLE_PATA is only making sense for these three chipsets.&lt;br /&gt;
&lt;br /&gt;
Any clearer now? If not, just run {{cmd|grep -r ATA_ENABLE_PATA /path/to/kernelsource|}} and see how seldom and where the #define is used.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 14:55, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
All clear now. I thought it will work only if you have these chipsets ''and'' ATA_ENABLE_PATA=1. Thanks for the explanation!&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 15:12, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Does any of the relevant ThinkPad models (listed in the article) use these chips? They look too old to be found on the SATA models.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 23:35, 9 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I don't think so, I was about to add &amp;quot;in the unlikely event that you own one of these chipsets&amp;quot; or something.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 07:56, 10 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== DVD DMA with ide/sata as module ==&lt;br /&gt;
&lt;br /&gt;
Did anyone get DVD DMA to work with either the IDE or SATA drivers compiled as modules? If so, please fill in the missing details in that section. I have it working only with both IDE and SATA built-in.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:58, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Basically using a Live-CD with a recent kernel (is there one with 2.6.14 already?) would be sufficient, since they usually use an initrd or something similar, don't they? I'll give the Debian distribution kernel a try when I get around to it  (bit busy atm), after all there's 2.6.14 in sid.&lt;br /&gt;
&lt;br /&gt;
But for people using their own kernel compiled from source I see no point in doing the module+initrd thing anyway, unless you want LVM for the root filesystem or other funky stuff.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 19:22, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Can anyone tell me how those modules are called?&lt;br /&gt;
&lt;br /&gt;
Thomas&lt;br /&gt;
--[[User:Thomas|thomas]] 19:48, 23 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi, I have problems with kernel 2.6.14.6 and libata passthrough. After executing twice the command &amp;quot;cdrecord --scanbus&amp;quot; as root, I get the following message many times in dmesg: &amp;quot;sr 1:0:0:0: timing out command, waited 0s&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 12:53, 14 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Where the hell do I find the libata module? &lt;br /&gt;
&lt;br /&gt;
--[[User:squashball|squashball]] 09:09, 11 June 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== occasional hang upon resume with various kernels ==&lt;br /&gt;
&lt;br /&gt;
I keep having trouble with resume after suspend to ram. Occasionally, it takes longer to wake up and then is in a semi-hanged &lt;br /&gt;
state, i.e. nothing having to do with actual reading from the disk works. (what was running, as aterm &lt;br /&gt;
is still running, ls works, when the listing is buffered, but hangs if it is not). &lt;br /&gt;
Kernel is 2.6.15 with sata-pm patch. Later 2.6.15 kernels hang always and it's the same with 2.6.16. &lt;br /&gt;
Could perhaps somebody, for whom it works without problems post his .config somewhere? &lt;br /&gt;
I'm out of ideas. &lt;br /&gt;
&lt;br /&gt;
--[[User:Rasto|Rasto]] 14:46, 20 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
I have the same problem with my x41 and 2.6.16 or 2.6.16-r1 running on Gentoo. Sometimes resume is ok and sometimes the disk doesn't resume. I can't see any log because the disk is unwritable after resume. The logs on F12 is full of io error.&lt;br /&gt;
I tested many different kernel configs, unloading modules before suspend, stopping services...&lt;br /&gt;
Like Rasto, I'm out of ideas...&lt;br /&gt;
&lt;br /&gt;
--[[User:Pplr|Pplr]] 19:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
You could try http://rtr.ca/dell_i9300/kernel/kernel-2.6.16/02_libata_resume_fix.patch&lt;br /&gt;
This patch worked for me.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 21:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hello, according to the first lines of the article, resume does not work prior to kernel 2.6.16, i.e. the computer hangs up just a second after it comes back. I just switched from 2.6.15 to 2.6.16 but the problem still remains. I have a Z60M thinkpad. So this has obviously the same problem as the T60.&lt;br /&gt;
&lt;br /&gt;
-- [[User:Bjoern.thalheim|BjÃ¶rn]] 14:37, 10 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Increasing the timeouts seems to do the trick. I applied it about two weeks ago, and it works since. &lt;br /&gt;
&lt;br /&gt;
-- [[User:Rasto|Rasto]] 09:59, 11 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Suspend to RAM on X41 not working with Debian-packaged 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
I just tried the Debian package of the Linux 2.6.16 kernel on my [[X41]] to see if suspend-to-RAM would work. Unfortunately, it didn't. The laptop suspends just fine, but when it's turned back on, the backlight remains off, there is a lot of disk activity for a while, and then the computer just shuts off. When turned on again, it boots normally. Suspend-to-disk works fine, just like before.&lt;br /&gt;
&lt;br /&gt;
On a different note, CPU throttling broke on my system with the new kernel. I can no longer modprobe acpi-cpufreq. [[User:Ehn|Ehn]] 04:28, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter issue was solved by using speedstep-centrino instead of acpi-cpufreq. [[User:Ehn|Ehn]] 23:25, 9 April 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Neither problem is related to this article, so it's unlikely to be answered here.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:37, 22 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hm. It seems to be a problem with sata power management for me, so I guess this could be one of the places. &lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 17:45, 22 March 2006 (CET)&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Ehn, by &amp;quot;disk activity&amp;quot; do you mean a constantly on HDD LED and no disk movement noises, or ''real'' disk activity with the LED flashing and disk noise? The former is likely to be the SATA problem, the latter rules out the SATA problem.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:44, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter. There is real disk activity, indicated by LED flashing &amp;lt;em&amp;gt;and&amp;lt;/em&amp;gt; disk movement noise, for about 30 seconds, before the machine gives up and shuts down. If this is not SATA-related, what might it be? [[User:Ehn|Ehn]] 23:23, 9 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Sorry, I didn't realize Ehn has two problems, and I considered your post as aimed at my and Ehn's. Never mind then.&lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 10:47, 23 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Problem with 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
ok, seems like we have a new problem:&lt;br /&gt;
After upgrading from 2.6.15 to 2.6.16 my DVD device is not recognised anymore by libsata.&lt;br /&gt;
The only way to get working is by using the ide layer - without DMA of course.&lt;br /&gt;
Can anyone confirm this?&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 17:49, 23 Mar 2006 (CET)&lt;br /&gt;
--------&lt;br /&gt;
&lt;br /&gt;
Try the kernel parameter '''combined_mode=libata''', does this help? Also, have you enabled libata's ATAPI support as described in the article?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:31, 23 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Yes, I'm using the command line parameter libata.atapi_enable=1 - up to 2.6.15 it works fine.&lt;br /&gt;
About the combined_mode parameter: Also tried it, though the Author of this patch mentioned that the default behavior did not changed.&lt;br /&gt;
I will continue hungting this problem when I find some time.&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 7:12, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
I can confirm Eriks problem.  After updating to 2.6.16 I have it, too.  libata.atapi_enable=1 is still on kernel command line.  With some help of Michael Ott I figured out that this only happens if you have the current suspend2 patches applied.&lt;br /&gt;
Using a vanilla 2.6.16 works as expected. &lt;br /&gt;
&lt;br /&gt;
--[[User:Mobst|mobst]]  14:30, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Ahh thanks. Finding the problem in the suspend2 patch should be an easy task.&lt;br /&gt;
I just hope for some free time this weekend!&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 18:31, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Uhm, looks like [[ZolnOtt|ZolnOtt]] was faster, he added the note to&lt;br /&gt;
http://thinkwiki.org/wiki/Problems_with_SATA_and_Linux#No_DMA_on_DVD_drive&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 20:02, 24 Mar 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Patch against SATA-resume problem with T60 ==&lt;br /&gt;
&lt;br /&gt;
I only have a Fujitsu-Siemens C1320, but I had the same problem with resuming from suspend with a SATA disk and kernel 2.6.16 as mentioned for the T60.  I solved the problem for me by merging several patches (patches.fixes/libata-increase-timeout-for-resume, patches.fixes/ahci-suspend, patches.fixes/ahci-atapi-sense-request, patches.drivers/libata-acpi-suspend, patches.fixes/libata-resume-drive_port-mode, patches.fixes/ahci-init-on-resume, patches.drivers/libata-device-spindown)&lt;br /&gt;
from the OpenSuSE kernel 2.6.16-12 to vanilla 2.6.16.5. You'll find my patch at http://www.spinnaker.de/linux/c1320/sata-resume-2.6.16.5.patch.  I expect this to solve the T60 problem, so I provide the patch here, as this wiki helped me so much with my laptop.&lt;br /&gt;
&lt;br /&gt;
--[[User:Rrosenfeld|Rrosenfeld]] 23:12, 16 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
I just want to let you know that I managed to get Suspend-to-RAM working on the T60. I'm using Gentoo's suspend2-sources-2.6.16-r2 as base and applied the above patches from Rrosenfeld (thanks!) and additionally this [https://bugzilla.novell.com/attachment.cgi?id=75844&amp;amp;action=view one] (here the corresponding [https://bugzilla.novell.com/show_bug.cgi?id=162090 bug]).&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 22:52, 17 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
same here. applied both patches to gentoo suspend-sources-2.6.16-r5 --- working. sweet.&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 21:51, 3 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
however: powersave (powersaved) is a spoiler: it will cause the resume operation to get stuck at &amp;quot;reading back caches&amp;quot; and eventually result in a kernel panic. stopping powersaved before hibernating does not prevent it: it seems that running powersaved just once will screw things up. interesting and nasty. but not a show stopper (IMHO).&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 17:14, 10 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
that's not powersaved's fault. kernel panics are always kernel (or hardware) bugs. i experienced this kind of lockups when using different cpufreq governors at once (that's probaly something one shoudln't do?). i'm now using only cpufreq_userspace and don't have any problems.&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 15:11, 11 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Having exactly the same SATA wakeup problem on my Z60t, using FC5. Can the patch from rosenfeld be applied also to the FC5 kernelsource?&lt;br /&gt;
&lt;br /&gt;
--[[User:SzentivÃ¡nyi|szenti]] 21:29, 11 May 2006 (CEST)&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22690</id>
		<title>Talk:Problems with SATA and Linux</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22690"/>
		<updated>2006-06-11T07:16:13Z</updated>

		<summary type="html">&lt;p&gt;Squashball: /* occasional hang upon resume with various kernels */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
I'm running gentoo on my T43; I had problems with X11 (opensource radeon driver) and a SATA-patched kernel (I tried both 2.6.14 and 2.6.15-gentoo). Suspend to RAM worked nicely, but starting X freezed the machine after a short time. I tried removing radeonfb from the kernel; with vesafb, everything seems to work.&lt;br /&gt;
&lt;br /&gt;
-- Stefan, 10 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
That's strange - with the libata passthrough (IDE driver not in kernel) as set up in the text, my t43p DVD drive also will not record as hinted in the wikipage...  DMA works fine, so DVD playing / ripping is smooth and quick.  CD record functions also are absent.  I have PATA enabled, and the suspend + SMART patches applied over 2.6.14.2.&lt;br /&gt;
--------&lt;br /&gt;
I can confirm this with 2.6.14.4, however with 2.6.15/15.1 with sata_pm patch it works.&lt;br /&gt;
&lt;br /&gt;
-- Rasto, 24 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
regarding the &amp;quot;BIOS error 2010 on user-installed hard disk&amp;quot;:&lt;br /&gt;
the text says that corruption occurs if you use a harddisk without the specific ibm bios. would be interesting if it is possible to fix this problem in the kernel so that you can use any disk and the kernel doesn't use specific ATA commands which are known to cause problems.&lt;br /&gt;
&lt;br /&gt;
in the tabook i didn't find any specification of the SATA bridge. it would be interesting:&lt;br /&gt;
1) what type it is&lt;br /&gt;
2) if it is fixed on the mainboard or if it is possible to solder in a new one&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Another interesting question is whether these ThinkPads can be hacked to accept a real SATA system disk, by bypassing the SATA-to-PATA bridge (this would probably involve some soldering and cutting). If the BIOS can also handle that then it may come in handy, since some new high-capacity 2.5&amp;quot; disks have only SATA versions.&lt;br /&gt;
--[[User:Thinker|Thinker]] 02:56, 8 Oct 2005 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Z series'''&lt;br /&gt;
&lt;br /&gt;
Since the Z series uses a SATA controller and disk, without the bridge, would it be possible to make SATA ATAPI support as a module that you could load only when using the optical drive?  Then, for everyday use, the experimental options of PATA and ATAPI with ata_piix would not be needed, moving you one step further in the direction of stability.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I have an R52 with Ubuntu Breezy and no problems with SATA (I personally asked the developers to include the needed patches).&lt;br /&gt;
&lt;br /&gt;
However, I'd like to know wheter there are any advantages with this configuration. Future proof? Power saving? Speed?&lt;br /&gt;
&lt;br /&gt;
Anybody cares to comment?&lt;br /&gt;
&lt;br /&gt;
-- [[User:Micampe|Michele]]&lt;br /&gt;
&lt;br /&gt;
Straight SATA, like in the Z60m/t, will provide better upgrade options in the long run (the hard disk industry is slowly but surely moving to SATA), and maybe a small performance increase if your drive, controller and OS support command queueing (they probably don't). However, with the hybrid ThinkPad models that use a SATA-to-PATA bridge, like your R52, you get all the drawbacks and none of the benefits; plus there's the horrible issue with [[Problem with non-ThinkPad hard disks|drive compatibility]]. My impression is that Lenovo did this just as a convenient (for them!) transition path, in order to use new chipsets without comitting to (temporarily) scarcer and more expensive drives. In any case, they didn't even have the decency to make the UltraBay Slim accept SATA drives. &lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:10, 3 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
There is a [[UltraBay Slim SATA HDD Adapter]], but only compatible with the Z series (at least for the moment).&lt;br /&gt;
&lt;br /&gt;
--[[User:Tonko|Tonko]] 03:12, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
== updated libata_passthru.patch ==&lt;br /&gt;
&lt;br /&gt;
FYI: when using the Suspend-to-RAM patch from http://lkml.org/lkml/2005/9/23/97 against 2.6.14 the libata_passthru.patch from the article doesn't apply any more, so I've put up an updated version at http://linux.spiney.org/system/files?file=02_libata_passthru.fixed.patch&lt;br /&gt;
&lt;br /&gt;
I give no warranties whatsoever whether it works or kills your hardware, but since I just removed duplicate parts already in the Suspend-to-RAM patch it should be ok.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 19:04, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Running 2.6.16-rc4 and I'm running into scsci errors and Input/output&lt;br /&gt;
errrors when resuming from suspend to ram.  The suspend patch is&lt;br /&gt;
supposed to be in 2.6.16-rc1 and I'm booting with&lt;br /&gt;
&lt;br /&gt;
title= 2.6.16-rc4&lt;br /&gt;
root (hd0,0)&lt;br /&gt;
kernel /boot/kernel-2.6.16-rc4  root=/dev/sda3 ro combined_mode=libata&lt;br /&gt;
libata.atapi_enabled=1 acpi_sleep=s3_bios processor.max_cstate=2&lt;br /&gt;
elevator=cfq ide1=noprobe&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Don't know about -rc4, but -rc3 worked without problems, could you try that one instead? Maybe there was some bug introduced between these two versions. What's combined_mode=libata BTW?&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 08:28, 23 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== ATA_ENABLE_PATA PCI IDs ==&lt;br /&gt;
&lt;br /&gt;
Spiney, could you extend the article to explain what and why are the PCI IDs in the footnote about ATA_ENABLE_PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:59, 4 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Ok, done, feel free to fix the table because I'm a bit struggling with Wiki-style editing. ;) As for the why, those PCI IDs are the only ones affected by the ATA_ENABLE_PATA, as seen in {{path|drivers/scsi/ata_piix.c}} in the kernel source.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 11:19, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Will other cards work without ATA_ENABLE_PATA, or just fail? In the former case your instructions are right, but in the latter case we should tell the user to check the list of IDs in his ''current'' kernel and, if there's no match, to give up in the first place instead of following the rest of the instructions.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 12:48, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
AFAICT if the chipset is supported by libata it will work, regardless of what low-level driver is used. Of course if there is no low-level driver for the chipset then even using the harddisk via libata will fail, but that's a different story. At least ATA_ENABLE_PATA will then make no difference since it's Intel PIIX (and compatible) only.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 13:24, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Not sure I got you. Is there any case where the instructions will work without ATA_ENABLE_PATA, given that all ThinkPad optical drives are PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 13:41, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The instructions will work without ATA_ENABLE_PATA unless the Thinkpad uses one of the three chipsets listed in the article, as long as libata works at all, i.e. the system drive shows up as /dev/sda. The #define doesn't change the behaviour of libata for any other chipset, it's [http://linux.yyz.us/sata/sata-status.html#ich5 ata_piix] only.&lt;br /&gt;
&lt;br /&gt;
Since I don't have a machine with one of the three chipsets (anyone?), I can't tell whether those work at all with libata, but I guess there's a reason why they're not enabled by default. It's just that defining ATA_ENABLE_PATA is only making sense for these three chipsets.&lt;br /&gt;
&lt;br /&gt;
Any clearer now? If not, just run {{cmd|grep -r ATA_ENABLE_PATA /path/to/kernelsource|}} and see how seldom and where the #define is used.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 14:55, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
All clear now. I thought it will work only if you have these chipsets ''and'' ATA_ENABLE_PATA=1. Thanks for the explanation!&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 15:12, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Does any of the relevant ThinkPad models (listed in the article) use these chips? They look too old to be found on the SATA models.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 23:35, 9 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I don't think so, I was about to add &amp;quot;in the unlikely event that you own one of these chipsets&amp;quot; or something.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 07:56, 10 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== DVD DMA with ide/sata as module ==&lt;br /&gt;
&lt;br /&gt;
Did anyone get DVD DMA to work with either the IDE or SATA drivers compiled as modules? If so, please fill in the missing details in that section. I have it working only with both IDE and SATA built-in.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:58, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Basically using a Live-CD with a recent kernel (is there one with 2.6.14 already?) would be sufficient, since they usually use an initrd or something similar, don't they? I'll give the Debian distribution kernel a try when I get around to it  (bit busy atm), after all there's 2.6.14 in sid.&lt;br /&gt;
&lt;br /&gt;
But for people using their own kernel compiled from source I see no point in doing the module+initrd thing anyway, unless you want LVM for the root filesystem or other funky stuff.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 19:22, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Can anyone tell me how those modules are called?&lt;br /&gt;
&lt;br /&gt;
Thomas&lt;br /&gt;
--[[User:Thomas|thomas]] 19:48, 23 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi, I have problems with kernel 2.6.14.6 and libata passthrough. After executing twice the command &amp;quot;cdrecord --scanbus&amp;quot; as root, I get the following message many times in dmesg: &amp;quot;sr 1:0:0:0: timing out command, waited 0s&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 12:53, 14 February 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== occasional hang upon resume with various kernels ==&lt;br /&gt;
&lt;br /&gt;
I keep having trouble with resume after suspend to ram. Occasionally, it takes longer to wake up and then is in a semi-hanged &lt;br /&gt;
state, i.e. nothing having to do with actual reading from the disk works. (what was running, as aterm &lt;br /&gt;
is still running, ls works, when the listing is buffered, but hangs if it is not). &lt;br /&gt;
Kernel is 2.6.15 with sata-pm patch. Later 2.6.15 kernels hang always and it's the same with 2.6.16. &lt;br /&gt;
Could perhaps somebody, for whom it works without problems post his .config somewhere? &lt;br /&gt;
I'm out of ideas. &lt;br /&gt;
&lt;br /&gt;
--[[User:Rasto|Rasto]] 14:46, 20 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
I have the same problem with my x41 and 2.6.16 or 2.6.16-r1 running on Gentoo. Sometimes resume is ok and sometimes the disk doesn't resume. I can't see any log because the disk is unwritable after resume. The logs on F12 is full of io error.&lt;br /&gt;
I tested many different kernel configs, unloading modules before suspend, stopping services...&lt;br /&gt;
Like Rasto, I'm out of ideas...&lt;br /&gt;
&lt;br /&gt;
--[[User:Pplr|Pplr]] 19:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
You could try http://rtr.ca/dell_i9300/kernel/kernel-2.6.16/02_libata_resume_fix.patch&lt;br /&gt;
This patch worked for me.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 21:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hello, according to the first lines of the article, resume does not work prior to kernel 2.6.16, i.e. the computer hangs up just a second after it comes back. I just switched from 2.6.15 to 2.6.16 but the problem still remains. I have a Z60M thinkpad. So this has obviously the same problem as the T60.&lt;br /&gt;
&lt;br /&gt;
-- [[User:Bjoern.thalheim|BjÃ¶rn]] 14:37, 10 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Increasing the timeouts seems to do the trick. I applied it about two weeks ago, and it works since. &lt;br /&gt;
&lt;br /&gt;
-- [[User:Rasto|Rasto]] 09:59, 11 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Suspend to RAM on X41 not working with Debian-packaged 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
I just tried the Debian package of the Linux 2.6.16 kernel on my [[X41]] to see if suspend-to-RAM would work. Unfortunately, it didn't. The laptop suspends just fine, but when it's turned back on, the backlight remains off, there is a lot of disk activity for a while, and then the computer just shuts off. When turned on again, it boots normally. Suspend-to-disk works fine, just like before.&lt;br /&gt;
&lt;br /&gt;
On a different note, CPU throttling broke on my system with the new kernel. I can no longer modprobe acpi-cpufreq. [[User:Ehn|Ehn]] 04:28, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter issue was solved by using speedstep-centrino instead of acpi-cpufreq. [[User:Ehn|Ehn]] 23:25, 9 April 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Neither problem is related to this article, so it's unlikely to be answered here.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:37, 22 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hm. It seems to be a problem with sata power management for me, so I guess this could be one of the places. &lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 17:45, 22 March 2006 (CET)&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Ehn, by &amp;quot;disk activity&amp;quot; do you mean a constantly on HDD LED and no disk movement noises, or ''real'' disk activity with the LED flashing and disk noise? The former is likely to be the SATA problem, the latter rules out the SATA problem.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:44, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter. There is real disk activity, indicated by LED flashing &amp;lt;em&amp;gt;and&amp;lt;/em&amp;gt; disk movement noise, for about 30 seconds, before the machine gives up and shuts down. If this is not SATA-related, what might it be? [[User:Ehn|Ehn]] 23:23, 9 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Sorry, I didn't realize Ehn has two problems, and I considered your post as aimed at my and Ehn's. Never mind then.&lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 10:47, 23 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Problem with 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
ok, seems like we have a new problem:&lt;br /&gt;
After upgrading from 2.6.15 to 2.6.16 my DVD device is not recognised anymore by libsata.&lt;br /&gt;
The only way to get working is by using the ide layer - without DMA of course.&lt;br /&gt;
Can anyone confirm this?&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 17:49, 23 Mar 2006 (CET)&lt;br /&gt;
--------&lt;br /&gt;
&lt;br /&gt;
Try the kernel parameter '''combined_mode=libata''', does this help? Also, have you enabled libata's ATAPI support as described in the article?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:31, 23 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Yes, I'm using the command line parameter libata.atapi_enable=1 - up to 2.6.15 it works fine.&lt;br /&gt;
About the combined_mode parameter: Also tried it, though the Author of this patch mentioned that the default behavior did not changed.&lt;br /&gt;
I will continue hungting this problem when I find some time.&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 7:12, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
I can confirm Eriks problem.  After updating to 2.6.16 I have it, too.  libata.atapi_enable=1 is still on kernel command line.  With some help of Michael Ott I figured out that this only happens if you have the current suspend2 patches applied.&lt;br /&gt;
Using a vanilla 2.6.16 works as expected. &lt;br /&gt;
&lt;br /&gt;
--[[User:Mobst|mobst]]  14:30, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Ahh thanks. Finding the problem in the suspend2 patch should be an easy task.&lt;br /&gt;
I just hope for some free time this weekend!&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 18:31, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Uhm, looks like [[ZolnOtt|ZolnOtt]] was faster, he added the note to&lt;br /&gt;
http://thinkwiki.org/wiki/Problems_with_SATA_and_Linux#No_DMA_on_DVD_drive&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 20:02, 24 Mar 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Patch against SATA-resume problem with T60 ==&lt;br /&gt;
&lt;br /&gt;
I only have a Fujitsu-Siemens C1320, but I had the same problem with resuming from suspend with a SATA disk and kernel 2.6.16 as mentioned for the T60.  I solved the problem for me by merging several patches (patches.fixes/libata-increase-timeout-for-resume, patches.fixes/ahci-suspend, patches.fixes/ahci-atapi-sense-request, patches.drivers/libata-acpi-suspend, patches.fixes/libata-resume-drive_port-mode, patches.fixes/ahci-init-on-resume, patches.drivers/libata-device-spindown)&lt;br /&gt;
from the OpenSuSE kernel 2.6.16-12 to vanilla 2.6.16.5. You'll find my patch at http://www.spinnaker.de/linux/c1320/sata-resume-2.6.16.5.patch.  I expect this to solve the T60 problem, so I provide the patch here, as this wiki helped me so much with my laptop.&lt;br /&gt;
&lt;br /&gt;
--[[User:Rrosenfeld|Rrosenfeld]] 23:12, 16 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
I just want to let you know that I managed to get Suspend-to-RAM working on the T60. I'm using Gentoo's suspend2-sources-2.6.16-r2 as base and applied the above patches from Rrosenfeld (thanks!) and additionally this [https://bugzilla.novell.com/attachment.cgi?id=75844&amp;amp;action=view one] (here the corresponding [https://bugzilla.novell.com/show_bug.cgi?id=162090 bug]).&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 22:52, 17 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
same here. applied both patches to gentoo suspend-sources-2.6.16-r5 --- working. sweet.&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 21:51, 3 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
however: powersave (powersaved) is a spoiler: it will cause the resume operation to get stuck at &amp;quot;reading back caches&amp;quot; and eventually result in a kernel panic. stopping powersaved before hibernating does not prevent it: it seems that running powersaved just once will screw things up. interesting and nasty. but not a show stopper (IMHO).&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 17:14, 10 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
that's not powersaved's fault. kernel panics are always kernel (or hardware) bugs. i experienced this kind of lockups when using different cpufreq governors at once (that's probaly something one shoudln't do?). i'm now using only cpufreq_userspace and don't have any problems.&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 15:11, 11 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Having exactly the same SATA wakeup problem on my Z60t, using FC5. Can the patch from rosenfeld be applied also to the FC5 kernelsource?&lt;br /&gt;
&lt;br /&gt;
--[[User:SzentivÃ¡nyi|szenti]] 21:29, 11 May 2006 (CEST)&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22689</id>
		<title>Talk:Problems with SATA and Linux</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_SATA_and_Linux&amp;diff=22689"/>
		<updated>2006-06-11T07:15:22Z</updated>

		<summary type="html">&lt;p&gt;Squashball: /* occasional hang upon resume with various kernels */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
I'm running gentoo on my T43; I had problems with X11 (opensource radeon driver) and a SATA-patched kernel (I tried both 2.6.14 and 2.6.15-gentoo). Suspend to RAM worked nicely, but starting X freezed the machine after a short time. I tried removing radeonfb from the kernel; with vesafb, everything seems to work.&lt;br /&gt;
&lt;br /&gt;
-- Stefan, 10 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
That's strange - with the libata passthrough (IDE driver not in kernel) as set up in the text, my t43p DVD drive also will not record as hinted in the wikipage...  DMA works fine, so DVD playing / ripping is smooth and quick.  CD record functions also are absent.  I have PATA enabled, and the suspend + SMART patches applied over 2.6.14.2.&lt;br /&gt;
--------&lt;br /&gt;
I can confirm this with 2.6.14.4, however with 2.6.15/15.1 with sata_pm patch it works.&lt;br /&gt;
&lt;br /&gt;
-- Rasto, 24 Jan 2006&lt;br /&gt;
&lt;br /&gt;
--------&lt;br /&gt;
regarding the &amp;quot;BIOS error 2010 on user-installed hard disk&amp;quot;:&lt;br /&gt;
the text says that corruption occurs if you use a harddisk without the specific ibm bios. would be interesting if it is possible to fix this problem in the kernel so that you can use any disk and the kernel doesn't use specific ATA commands which are known to cause problems.&lt;br /&gt;
&lt;br /&gt;
in the tabook i didn't find any specification of the SATA bridge. it would be interesting:&lt;br /&gt;
1) what type it is&lt;br /&gt;
2) if it is fixed on the mainboard or if it is possible to solder in a new one&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Another interesting question is whether these ThinkPads can be hacked to accept a real SATA system disk, by bypassing the SATA-to-PATA bridge (this would probably involve some soldering and cutting). If the BIOS can also handle that then it may come in handy, since some new high-capacity 2.5&amp;quot; disks have only SATA versions.&lt;br /&gt;
--[[User:Thinker|Thinker]] 02:56, 8 Oct 2005 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Z series'''&lt;br /&gt;
&lt;br /&gt;
Since the Z series uses a SATA controller and disk, without the bridge, would it be possible to make SATA ATAPI support as a module that you could load only when using the optical drive?  Then, for everyday use, the experimental options of PATA and ATAPI with ata_piix would not be needed, moving you one step further in the direction of stability.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I have an R52 with Ubuntu Breezy and no problems with SATA (I personally asked the developers to include the needed patches).&lt;br /&gt;
&lt;br /&gt;
However, I'd like to know wheter there are any advantages with this configuration. Future proof? Power saving? Speed?&lt;br /&gt;
&lt;br /&gt;
Anybody cares to comment?&lt;br /&gt;
&lt;br /&gt;
-- [[User:Micampe|Michele]]&lt;br /&gt;
&lt;br /&gt;
Straight SATA, like in the Z60m/t, will provide better upgrade options in the long run (the hard disk industry is slowly but surely moving to SATA), and maybe a small performance increase if your drive, controller and OS support command queueing (they probably don't). However, with the hybrid ThinkPad models that use a SATA-to-PATA bridge, like your R52, you get all the drawbacks and none of the benefits; plus there's the horrible issue with [[Problem with non-ThinkPad hard disks|drive compatibility]]. My impression is that Lenovo did this just as a convenient (for them!) transition path, in order to use new chipsets without comitting to (temporarily) scarcer and more expensive drives. In any case, they didn't even have the decency to make the UltraBay Slim accept SATA drives. &lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:10, 3 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
There is a [[UltraBay Slim SATA HDD Adapter]], but only compatible with the Z series (at least for the moment).&lt;br /&gt;
&lt;br /&gt;
--[[User:Tonko|Tonko]] 03:12, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
== updated libata_passthru.patch ==&lt;br /&gt;
&lt;br /&gt;
FYI: when using the Suspend-to-RAM patch from http://lkml.org/lkml/2005/9/23/97 against 2.6.14 the libata_passthru.patch from the article doesn't apply any more, so I've put up an updated version at http://linux.spiney.org/system/files?file=02_libata_passthru.fixed.patch&lt;br /&gt;
&lt;br /&gt;
I give no warranties whatsoever whether it works or kills your hardware, but since I just removed duplicate parts already in the Suspend-to-RAM patch it should be ok.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 19:04, 4 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Running 2.6.16-rc4 and I'm running into scsci errors and Input/output&lt;br /&gt;
errrors when resuming from suspend to ram.  The suspend patch is&lt;br /&gt;
supposed to be in 2.6.16-rc1 and I'm booting with&lt;br /&gt;
&lt;br /&gt;
title= 2.6.16-rc4&lt;br /&gt;
root (hd0,0)&lt;br /&gt;
kernel /boot/kernel-2.6.16-rc4  root=/dev/sda3 ro combined_mode=libata&lt;br /&gt;
libata.atapi_enabled=1 acpi_sleep=s3_bios processor.max_cstate=2&lt;br /&gt;
elevator=cfq ide1=noprobe&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Don't know about -rc4, but -rc3 worked without problems, could you try that one instead? Maybe there was some bug introduced between these two versions. What's combined_mode=libata BTW?&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 08:28, 23 February 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== ATA_ENABLE_PATA PCI IDs ==&lt;br /&gt;
&lt;br /&gt;
Spiney, could you extend the article to explain what and why are the PCI IDs in the footnote about ATA_ENABLE_PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:59, 4 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Ok, done, feel free to fix the table because I'm a bit struggling with Wiki-style editing. ;) As for the why, those PCI IDs are the only ones affected by the ATA_ENABLE_PATA, as seen in {{path|drivers/scsi/ata_piix.c}} in the kernel source.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 11:19, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Will other cards work without ATA_ENABLE_PATA, or just fail? In the former case your instructions are right, but in the latter case we should tell the user to check the list of IDs in his ''current'' kernel and, if there's no match, to give up in the first place instead of following the rest of the instructions.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 12:48, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
AFAICT if the chipset is supported by libata it will work, regardless of what low-level driver is used. Of course if there is no low-level driver for the chipset then even using the harddisk via libata will fail, but that's a different story. At least ATA_ENABLE_PATA will then make no difference since it's Intel PIIX (and compatible) only.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 13:24, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Not sure I got you. Is there any case where the instructions will work without ATA_ENABLE_PATA, given that all ThinkPad optical drives are PATA?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 13:41, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The instructions will work without ATA_ENABLE_PATA unless the Thinkpad uses one of the three chipsets listed in the article, as long as libata works at all, i.e. the system drive shows up as /dev/sda. The #define doesn't change the behaviour of libata for any other chipset, it's [http://linux.yyz.us/sata/sata-status.html#ich5 ata_piix] only.&lt;br /&gt;
&lt;br /&gt;
Since I don't have a machine with one of the three chipsets (anyone?), I can't tell whether those work at all with libata, but I guess there's a reason why they're not enabled by default. It's just that defining ATA_ENABLE_PATA is only making sense for these three chipsets.&lt;br /&gt;
&lt;br /&gt;
Any clearer now? If not, just run {{cmd|grep -r ATA_ENABLE_PATA /path/to/kernelsource|}} and see how seldom and where the #define is used.&lt;br /&gt;
&lt;br /&gt;
--[[User:spiney|spiney]] 14:55, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
All clear now. I thought it will work only if you have these chipsets ''and'' ATA_ENABLE_PATA=1. Thanks for the explanation!&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 15:12, 5 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Does any of the relevant ThinkPad models (listed in the article) use these chips? They look too old to be found on the SATA models.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 23:35, 9 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I don't think so, I was about to add &amp;quot;in the unlikely event that you own one of these chipsets&amp;quot; or something.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 07:56, 10 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== DVD DMA with ide/sata as module ==&lt;br /&gt;
&lt;br /&gt;
Did anyone get DVD DMA to work with either the IDE or SATA drivers compiled as modules? If so, please fill in the missing details in that section. I have it working only with both IDE and SATA built-in.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:58, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Basically using a Live-CD with a recent kernel (is there one with 2.6.14 already?) would be sufficient, since they usually use an initrd or something similar, don't they? I'll give the Debian distribution kernel a try when I get around to it  (bit busy atm), after all there's 2.6.14 in sid.&lt;br /&gt;
&lt;br /&gt;
But for people using their own kernel compiled from source I see no point in doing the module+initrd thing anyway, unless you want LVM for the root filesystem or other funky stuff.&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 19:22, 16 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Can anyone tell me how those modules are called?&lt;br /&gt;
&lt;br /&gt;
Thomas&lt;br /&gt;
--[[User:Thomas|thomas]] 19:48, 23 Jan 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi, I have problems with kernel 2.6.14.6 and libata passthrough. After executing twice the command &amp;quot;cdrecord --scanbus&amp;quot; as root, I get the following message many times in dmesg: &amp;quot;sr 1:0:0:0: timing out command, waited 0s&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 12:53, 14 February 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== occasional hang upon resume with various kernels ==&lt;br /&gt;
&lt;br /&gt;
I keep having trouble with resume after suspend to ram. Occasionally, it takes longer to wake up and then is in a semi-hanged &lt;br /&gt;
state, i.e. nothing having to do with actual reading from the disk works. (what was running, as aterm &lt;br /&gt;
is still running, ls works, when the listing is buffered, but hangs if it is not). &lt;br /&gt;
Kernel is 2.6.15 with sata-pm patch. Later 2.6.15 kernels hang always and it's the same with 2.6.16. &lt;br /&gt;
Could perhaps somebody, for whom it works without problems post his .config somewhere? &lt;br /&gt;
I'm out of ideas. &lt;br /&gt;
&lt;br /&gt;
--[[User:Rasto|Rasto]] 14:46, 20 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
I have the same problem with my x41 and 2.6.16 or 2.6.16-r1 running on Gentoo. Sometimes resume is ok and sometimes the disk doesn't resume. I can't see any log because the disk is unwritable after resume. The logs on F12 is full of io error.&lt;br /&gt;
I tested many different kernel configs, unloading modules before suspend, stopping services...&lt;br /&gt;
Like Rasto, I'm out of ideas...&lt;br /&gt;
&lt;br /&gt;
--[[User:Pplr|Pplr]] 19:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
You could try http://rtr.ca/dell_i9300/kernel/kernel-2.6.16/02_libata_resume_fix.patch&lt;br /&gt;
This patch worked for me.&lt;br /&gt;
&lt;br /&gt;
--[[User:Whoopie|Whoopie]] 21:21, 8 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hello, according to the first lines of the article, resume does not work prior to kernel 2.6.16, i.e. the computer hangs up just a second after it comes back. I just switched from 2.6.15 to 2.6.16 but the problem still remains. I have a Z60M thinkpad. So this has obviously the same problem as the T60.&lt;br /&gt;
&lt;br /&gt;
-- [[User:Bjoern.thalheim|BjÃ¶rn]] 14:37, 10 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Increasing the timeouts seems to do the trick. I applied it about two weeks ago, and it works since. &lt;br /&gt;
&lt;br /&gt;
-- [[User:Rasto|Rasto]] 09:59, 11 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Where the hell do I find the libata module?&lt;br /&gt;
&lt;br /&gt;
-- [[User:squashball|squashball]] 09:05, 11 Junr 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Suspend to RAM on X41 not working with Debian-packaged 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
I just tried the Debian package of the Linux 2.6.16 kernel on my [[X41]] to see if suspend-to-RAM would work. Unfortunately, it didn't. The laptop suspends just fine, but when it's turned back on, the backlight remains off, there is a lot of disk activity for a while, and then the computer just shuts off. When turned on again, it boots normally. Suspend-to-disk works fine, just like before.&lt;br /&gt;
&lt;br /&gt;
On a different note, CPU throttling broke on my system with the new kernel. I can no longer modprobe acpi-cpufreq. [[User:Ehn|Ehn]] 04:28, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter issue was solved by using speedstep-centrino instead of acpi-cpufreq. [[User:Ehn|Ehn]] 23:25, 9 April 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Neither problem is related to this article, so it's unlikely to be answered here.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 17:37, 22 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hm. It seems to be a problem with sata power management for me, so I guess this could be one of the places. &lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 17:45, 22 March 2006 (CET)&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Ehn, by &amp;quot;disk activity&amp;quot; do you mean a constantly on HDD LED and no disk movement noises, or ''real'' disk activity with the LED flashing and disk noise? The former is likely to be the SATA problem, the latter rules out the SATA problem.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:44, 22 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
:The latter. There is real disk activity, indicated by LED flashing &amp;lt;em&amp;gt;and&amp;lt;/em&amp;gt; disk movement noise, for about 30 seconds, before the machine gives up and shuts down. If this is not SATA-related, what might it be? [[User:Ehn|Ehn]] 23:23, 9 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Sorry, I didn't realize Ehn has two problems, and I considered your post as aimed at my and Ehn's. Never mind then.&lt;br /&gt;
&lt;br /&gt;
[[User:Rasto|Rasto]] 10:47, 23 March 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Problem with 2.6.16 ==&lt;br /&gt;
&lt;br /&gt;
ok, seems like we have a new problem:&lt;br /&gt;
After upgrading from 2.6.15 to 2.6.16 my DVD device is not recognised anymore by libsata.&lt;br /&gt;
The only way to get working is by using the ide layer - without DMA of course.&lt;br /&gt;
Can anyone confirm this?&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 17:49, 23 Mar 2006 (CET)&lt;br /&gt;
--------&lt;br /&gt;
&lt;br /&gt;
Try the kernel parameter '''combined_mode=libata''', does this help? Also, have you enabled libata's ATAPI support as described in the article?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:31, 23 March 2006 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Yes, I'm using the command line parameter libata.atapi_enable=1 - up to 2.6.15 it works fine.&lt;br /&gt;
About the combined_mode parameter: Also tried it, though the Author of this patch mentioned that the default behavior did not changed.&lt;br /&gt;
I will continue hungting this problem when I find some time.&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 7:12, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
I can confirm Eriks problem.  After updating to 2.6.16 I have it, too.  libata.atapi_enable=1 is still on kernel command line.  With some help of Michael Ott I figured out that this only happens if you have the current suspend2 patches applied.&lt;br /&gt;
Using a vanilla 2.6.16 works as expected. &lt;br /&gt;
&lt;br /&gt;
--[[User:Mobst|mobst]]  14:30, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Ahh thanks. Finding the problem in the suspend2 patch should be an easy task.&lt;br /&gt;
I just hope for some free time this weekend!&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 18:31, 24 Mar 2006 (CET)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
Uhm, looks like [[ZolnOtt|ZolnOtt]] was faster, he added the note to&lt;br /&gt;
http://thinkwiki.org/wiki/Problems_with_SATA_and_Linux#No_DMA_on_DVD_drive&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Erik]] 20:02, 24 Mar 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
== Patch against SATA-resume problem with T60 ==&lt;br /&gt;
&lt;br /&gt;
I only have a Fujitsu-Siemens C1320, but I had the same problem with resuming from suspend with a SATA disk and kernel 2.6.16 as mentioned for the T60.  I solved the problem for me by merging several patches (patches.fixes/libata-increase-timeout-for-resume, patches.fixes/ahci-suspend, patches.fixes/ahci-atapi-sense-request, patches.drivers/libata-acpi-suspend, patches.fixes/libata-resume-drive_port-mode, patches.fixes/ahci-init-on-resume, patches.drivers/libata-device-spindown)&lt;br /&gt;
from the OpenSuSE kernel 2.6.16-12 to vanilla 2.6.16.5. You'll find my patch at http://www.spinnaker.de/linux/c1320/sata-resume-2.6.16.5.patch.  I expect this to solve the T60 problem, so I provide the patch here, as this wiki helped me so much with my laptop.&lt;br /&gt;
&lt;br /&gt;
--[[User:Rrosenfeld|Rrosenfeld]] 23:12, 16 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
I just want to let you know that I managed to get Suspend-to-RAM working on the T60. I'm using Gentoo's suspend2-sources-2.6.16-r2 as base and applied the above patches from Rrosenfeld (thanks!) and additionally this [https://bugzilla.novell.com/attachment.cgi?id=75844&amp;amp;action=view one] (here the corresponding [https://bugzilla.novell.com/show_bug.cgi?id=162090 bug]).&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 22:52, 17 April 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
same here. applied both patches to gentoo suspend-sources-2.6.16-r5 --- working. sweet.&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 21:51, 3 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
however: powersave (powersaved) is a spoiler: it will cause the resume operation to get stuck at &amp;quot;reading back caches&amp;quot; and eventually result in a kernel panic. stopping powersaved before hibernating does not prevent it: it seems that running powersaved just once will screw things up. interesting and nasty. but not a show stopper (IMHO).&lt;br /&gt;
&lt;br /&gt;
--[[User:Husemann|dr who]] 17:14, 10 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
that's not powersaved's fault. kernel panics are always kernel (or hardware) bugs. i experienced this kind of lockups when using different cpufreq governors at once (that's probaly something one shoudln't do?). i'm now using only cpufreq_userspace and don't have any problems.&lt;br /&gt;
&lt;br /&gt;
--[[User:Sts|sts]] 15:11, 11 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Having exactly the same SATA wakeup problem on my Z60t, using FC5. Can the patch from rosenfeld be applied also to the FC5 kernelsource?&lt;br /&gt;
&lt;br /&gt;
--[[User:SzentivÃ¡nyi|szenti]] 21:29, 11 May 2006 (CEST)&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problem_with_high_pitch_noises&amp;diff=22659</id>
		<title>Talk:Problem with high pitch noises</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problem_with_high_pitch_noises&amp;diff=22659"/>
		<updated>2006-06-07T12:59:39Z</updated>

		<summary type="html">&lt;p&gt;Squashball: /* Noise from Wlan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Discussion of &amp;quot;Limit ACPI CPU power states&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
*Stefan Baums: I raised this issue on the linux-kernel mailing list, and from there it was forwarded to the acpi-devel mailing list.  See the discussion [http://sourceforge.net/mailarchive/forum.php?thread_id=7593600&amp;amp;forum_id=6102 here] and [http://sourceforge.net/mailarchive/forum.php?thread_id=7599419&amp;amp;forum_id=6102 here]. Results: The &amp;lt;code&amp;gt;idle=halt&amp;lt;/code&amp;gt; kernel parameter disables ACPI C-state switching entirely (i.e., locks the processor in C1). It is preferable to pass to the ACPI processor component the option {{bootparm|max_cstate|2}}, which only disables the problematic states C3 and C4.  The only way to accomplish this that worked for me was to compile the ACPI processor component permanently into the kernel (&amp;lt;tt&amp;gt;CONFIG_ACPI_PROCESSOR=y&amp;lt;/tt&amp;gt;) and then enable it by adding the parameter {{bootparm|processor.max_cstate|2}} to the boot command line (and of course removing {{bootparm|idle|halt}}). Now the computer switches back and forth between C1 and C2, but avoids the noise-inducing C3 and C4, and frequency scaling works regardless.  [Update: I now use the default Ubuntu kernel, with &amp;lt;code&amp;gt;processor&amp;lt;/code&amp;gt; as a module, and disabled C3 and C4 by modifying {{path|/etc/init.d/acpid}} as explained on the article page.] ({{X41}})&lt;br /&gt;
*Simon Eggert: The {{bootparm|processor.max_cstate|3}} option worked for me on my {{T43p}} thanks.&lt;br /&gt;
* Adding &amp;lt;code&amp;gt;options processor max_cstate=2&amp;lt;/code&amp;gt; in {{path|/etc/modprobe.conf}} (or {{path|/etc/modprobe.conf.local}} on my SuSE 9.3 installation) prevents the CPU permanently from entering into C3 and higher states. ({{X40}}, {{R52}})&lt;br /&gt;
* [[User:Thinker|Thinker]]: On one {{T43}}, this worked even with {{bootparm|processor.max_cstate|3}}. That is, C3 was silent and only C4 produced whining (at both HZ=100 and HZ=250). &lt;br /&gt;
* [[User:Thinker|Thinker]]: These options affect power consumption when the CPU is idle. Here are the figures on one ThinkPad T43:&lt;br /&gt;
** {{bootparm|processor.max_cstate|4}}: 15160mW (default, noisy)&lt;br /&gt;
** {{bootparm|processor.max_cstate|3}}: 15770mW (660mW higher, silent)&lt;br /&gt;
** {{bootparm|processor.max_cstate|2}}: 16100mW (2940mW higher, silent)&lt;br /&gt;
&lt;br /&gt;
* [[User:Gsmenden|gsmenden]]: On a debian system, no modprobe.conf, can use modutils to add max_cstate line.  On my t43p the noise only occcurs when on battery power after suspend / resume cycle.  It is definitely is still present when hard disk is spun down.  Nevertheless there may be multiple sources of this (quite annoying) sound.&lt;br /&gt;
&lt;br /&gt;
* [[User:Gsmenden|gsmenden]]: Update - if you don't want to use modutils, can manually load it on bootup by adding &amp;quot;processor max_cstate=3&amp;quot; in /etc/modules on a debian system.  Noise still present upon resume though on my t43p though  :(&lt;br /&gt;
&lt;br /&gt;
* [[User:Nephiel|Nephiel]]: My {{Z60m}} also had the &amp;quot;screeching when on battery&amp;quot; problem with Ubuntu 5.10. Editing {{path|/etc/init.d/acpid}} as described worked. It needed C2: C3 was quieter but still noticeable.&lt;br /&gt;
&lt;br /&gt;
* Michael Kiausch: On my {{x41}} the noise disappears on unloading uhci-hcd module (no matter which c-state), unfortunately this is not an option as this disables usb. ''edit:'' only works if HZ=100&lt;br /&gt;
&lt;br /&gt;
* Just tested M. Kiausch's suggestion on a {{t43}}. The high-pitch noise is gone (HZ=100, cstate=4), but there is a low-pitch noise with about the same &amp;quot;beat&amp;quot;. It is much less audible though, and I really had to keep an ear close to the exhaust to hear it. But the noise is still there.&lt;br /&gt;
&lt;br /&gt;
* Michael Kiausch: You're right, same low-pitch-noise on {{x41}}, but it is really hard to hear. Does anyone know in which way the usb-uhci is related to the c-states?&lt;br /&gt;
&lt;br /&gt;
* [[User:Slurm|Slurm]] The high-pitch noise occurs on my x41 only if i'm on battery and my mouse(usb, optical) is plugged in.&lt;br /&gt;
&lt;br /&gt;
== Harddisk related noise ==&lt;br /&gt;
&lt;br /&gt;
on my T43p the noise definitely comes from the harddisk and can be heard both in Windows and Linux. Only at boot time, before the harddisk spins up, or when I manually spin down the harddisk with&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|hdparm -y /dev/sda}}&lt;br /&gt;
&lt;br /&gt;
the system is silent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi, I don't have an IBM but Dell Latitude D410 laptop. My problem is that not only the high pitch noise is produced but the processor itself comes very busy when speedstep-centrino module is loaded. On karamba monitor (not very reliable but I can feel the difference) I get 50-100% processor occupation. Right now I'm recompiling my 2.6.14 kernel  to 100Hz timer freq. (was 250) and we'll see what happens.&lt;br /&gt;
&lt;br /&gt;
If you have any suggestions don't hestite since I practically can't use speedsteping because battery discharges rapidly &lt;br /&gt;
&lt;br /&gt;
Cheers&lt;br /&gt;
Wojtek&lt;br /&gt;
&lt;br /&gt;
== Noise from Wlan ==&lt;br /&gt;
Hi, I have a high frequency noise from my wifi modul: It occurs only with linux, only in battery mode. Disabling wifi via hardware switch disables the noise!&amp;lt;br&amp;gt;&lt;br /&gt;
Any Ideas?&amp;lt;br&amp;gt;&lt;br /&gt;
Florian&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
EDIT: Giving the cpus something to calc disables the noise, too!&amp;lt;br&amp;gt;&lt;br /&gt;
EDIT2: &amp;quot;Turn off CPU power saving in in BIOS&amp;quot; seems (!!) to solve the problem! But where is the connection to the wlan?&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problem_with_high_pitch_noises&amp;diff=22658</id>
		<title>Talk:Problem with high pitch noises</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problem_with_high_pitch_noises&amp;diff=22658"/>
		<updated>2006-06-07T12:47:28Z</updated>

		<summary type="html">&lt;p&gt;Squashball: /* Noise from Wlan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Discussion of &amp;quot;Limit ACPI CPU power states&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
*Stefan Baums: I raised this issue on the linux-kernel mailing list, and from there it was forwarded to the acpi-devel mailing list.  See the discussion [http://sourceforge.net/mailarchive/forum.php?thread_id=7593600&amp;amp;forum_id=6102 here] and [http://sourceforge.net/mailarchive/forum.php?thread_id=7599419&amp;amp;forum_id=6102 here]. Results: The &amp;lt;code&amp;gt;idle=halt&amp;lt;/code&amp;gt; kernel parameter disables ACPI C-state switching entirely (i.e., locks the processor in C1). It is preferable to pass to the ACPI processor component the option {{bootparm|max_cstate|2}}, which only disables the problematic states C3 and C4.  The only way to accomplish this that worked for me was to compile the ACPI processor component permanently into the kernel (&amp;lt;tt&amp;gt;CONFIG_ACPI_PROCESSOR=y&amp;lt;/tt&amp;gt;) and then enable it by adding the parameter {{bootparm|processor.max_cstate|2}} to the boot command line (and of course removing {{bootparm|idle|halt}}). Now the computer switches back and forth between C1 and C2, but avoids the noise-inducing C3 and C4, and frequency scaling works regardless.  [Update: I now use the default Ubuntu kernel, with &amp;lt;code&amp;gt;processor&amp;lt;/code&amp;gt; as a module, and disabled C3 and C4 by modifying {{path|/etc/init.d/acpid}} as explained on the article page.] ({{X41}})&lt;br /&gt;
*Simon Eggert: The {{bootparm|processor.max_cstate|3}} option worked for me on my {{T43p}} thanks.&lt;br /&gt;
* Adding &amp;lt;code&amp;gt;options processor max_cstate=2&amp;lt;/code&amp;gt; in {{path|/etc/modprobe.conf}} (or {{path|/etc/modprobe.conf.local}} on my SuSE 9.3 installation) prevents the CPU permanently from entering into C3 and higher states. ({{X40}}, {{R52}})&lt;br /&gt;
* [[User:Thinker|Thinker]]: On one {{T43}}, this worked even with {{bootparm|processor.max_cstate|3}}. That is, C3 was silent and only C4 produced whining (at both HZ=100 and HZ=250). &lt;br /&gt;
* [[User:Thinker|Thinker]]: These options affect power consumption when the CPU is idle. Here are the figures on one ThinkPad T43:&lt;br /&gt;
** {{bootparm|processor.max_cstate|4}}: 15160mW (default, noisy)&lt;br /&gt;
** {{bootparm|processor.max_cstate|3}}: 15770mW (660mW higher, silent)&lt;br /&gt;
** {{bootparm|processor.max_cstate|2}}: 16100mW (2940mW higher, silent)&lt;br /&gt;
&lt;br /&gt;
* [[User:Gsmenden|gsmenden]]: On a debian system, no modprobe.conf, can use modutils to add max_cstate line.  On my t43p the noise only occcurs when on battery power after suspend / resume cycle.  It is definitely is still present when hard disk is spun down.  Nevertheless there may be multiple sources of this (quite annoying) sound.&lt;br /&gt;
&lt;br /&gt;
* [[User:Gsmenden|gsmenden]]: Update - if you don't want to use modutils, can manually load it on bootup by adding &amp;quot;processor max_cstate=3&amp;quot; in /etc/modules on a debian system.  Noise still present upon resume though on my t43p though  :(&lt;br /&gt;
&lt;br /&gt;
* [[User:Nephiel|Nephiel]]: My {{Z60m}} also had the &amp;quot;screeching when on battery&amp;quot; problem with Ubuntu 5.10. Editing {{path|/etc/init.d/acpid}} as described worked. It needed C2: C3 was quieter but still noticeable.&lt;br /&gt;
&lt;br /&gt;
* Michael Kiausch: On my {{x41}} the noise disappears on unloading uhci-hcd module (no matter which c-state), unfortunately this is not an option as this disables usb. ''edit:'' only works if HZ=100&lt;br /&gt;
&lt;br /&gt;
* Just tested M. Kiausch's suggestion on a {{t43}}. The high-pitch noise is gone (HZ=100, cstate=4), but there is a low-pitch noise with about the same &amp;quot;beat&amp;quot;. It is much less audible though, and I really had to keep an ear close to the exhaust to hear it. But the noise is still there.&lt;br /&gt;
&lt;br /&gt;
* Michael Kiausch: You're right, same low-pitch-noise on {{x41}}, but it is really hard to hear. Does anyone know in which way the usb-uhci is related to the c-states?&lt;br /&gt;
&lt;br /&gt;
* [[User:Slurm|Slurm]] The high-pitch noise occurs on my x41 only if i'm on battery and my mouse(usb, optical) is plugged in.&lt;br /&gt;
&lt;br /&gt;
== Harddisk related noise ==&lt;br /&gt;
&lt;br /&gt;
on my T43p the noise definitely comes from the harddisk and can be heard both in Windows and Linux. Only at boot time, before the harddisk spins up, or when I manually spin down the harddisk with&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|hdparm -y /dev/sda}}&lt;br /&gt;
&lt;br /&gt;
the system is silent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi, I don't have an IBM but Dell Latitude D410 laptop. My problem is that not only the high pitch noise is produced but the processor itself comes very busy when speedstep-centrino module is loaded. On karamba monitor (not very reliable but I can feel the difference) I get 50-100% processor occupation. Right now I'm recompiling my 2.6.14 kernel  to 100Hz timer freq. (was 250) and we'll see what happens.&lt;br /&gt;
&lt;br /&gt;
If you have any suggestions don't hestite since I practically can't use speedsteping because battery discharges rapidly &lt;br /&gt;
&lt;br /&gt;
Cheers&lt;br /&gt;
Wojtek&lt;br /&gt;
&lt;br /&gt;
== Noise from Wlan ==&lt;br /&gt;
Hi, I have a high frequency noise from my wifi modul: It occurs only with linux, only in battery mode. Disabling wifi via hardware switch disables the noise!&lt;br /&gt;
Any Ideas?&lt;br /&gt;
Florian&lt;br /&gt;
EDIT: Giving the cpus something to calc disables the noise, too!&lt;br /&gt;
EDIT2: &amp;quot;Turn off CPU power saving in in BIOS&amp;quot; seems (!!) to solve the problem! But where is the connection to the wlan?&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problem_with_high_pitch_noises&amp;diff=22657</id>
		<title>Talk:Problem with high pitch noises</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problem_with_high_pitch_noises&amp;diff=22657"/>
		<updated>2006-06-07T12:28:02Z</updated>

		<summary type="html">&lt;p&gt;Squashball: /* Noise from Wlan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Discussion of &amp;quot;Limit ACPI CPU power states&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
*Stefan Baums: I raised this issue on the linux-kernel mailing list, and from there it was forwarded to the acpi-devel mailing list.  See the discussion [http://sourceforge.net/mailarchive/forum.php?thread_id=7593600&amp;amp;forum_id=6102 here] and [http://sourceforge.net/mailarchive/forum.php?thread_id=7599419&amp;amp;forum_id=6102 here]. Results: The &amp;lt;code&amp;gt;idle=halt&amp;lt;/code&amp;gt; kernel parameter disables ACPI C-state switching entirely (i.e., locks the processor in C1). It is preferable to pass to the ACPI processor component the option {{bootparm|max_cstate|2}}, which only disables the problematic states C3 and C4.  The only way to accomplish this that worked for me was to compile the ACPI processor component permanently into the kernel (&amp;lt;tt&amp;gt;CONFIG_ACPI_PROCESSOR=y&amp;lt;/tt&amp;gt;) and then enable it by adding the parameter {{bootparm|processor.max_cstate|2}} to the boot command line (and of course removing {{bootparm|idle|halt}}). Now the computer switches back and forth between C1 and C2, but avoids the noise-inducing C3 and C4, and frequency scaling works regardless.  [Update: I now use the default Ubuntu kernel, with &amp;lt;code&amp;gt;processor&amp;lt;/code&amp;gt; as a module, and disabled C3 and C4 by modifying {{path|/etc/init.d/acpid}} as explained on the article page.] ({{X41}})&lt;br /&gt;
*Simon Eggert: The {{bootparm|processor.max_cstate|3}} option worked for me on my {{T43p}} thanks.&lt;br /&gt;
* Adding &amp;lt;code&amp;gt;options processor max_cstate=2&amp;lt;/code&amp;gt; in {{path|/etc/modprobe.conf}} (or {{path|/etc/modprobe.conf.local}} on my SuSE 9.3 installation) prevents the CPU permanently from entering into C3 and higher states. ({{X40}}, {{R52}})&lt;br /&gt;
* [[User:Thinker|Thinker]]: On one {{T43}}, this worked even with {{bootparm|processor.max_cstate|3}}. That is, C3 was silent and only C4 produced whining (at both HZ=100 and HZ=250). &lt;br /&gt;
* [[User:Thinker|Thinker]]: These options affect power consumption when the CPU is idle. Here are the figures on one ThinkPad T43:&lt;br /&gt;
** {{bootparm|processor.max_cstate|4}}: 15160mW (default, noisy)&lt;br /&gt;
** {{bootparm|processor.max_cstate|3}}: 15770mW (660mW higher, silent)&lt;br /&gt;
** {{bootparm|processor.max_cstate|2}}: 16100mW (2940mW higher, silent)&lt;br /&gt;
&lt;br /&gt;
* [[User:Gsmenden|gsmenden]]: On a debian system, no modprobe.conf, can use modutils to add max_cstate line.  On my t43p the noise only occcurs when on battery power after suspend / resume cycle.  It is definitely is still present when hard disk is spun down.  Nevertheless there may be multiple sources of this (quite annoying) sound.&lt;br /&gt;
&lt;br /&gt;
* [[User:Gsmenden|gsmenden]]: Update - if you don't want to use modutils, can manually load it on bootup by adding &amp;quot;processor max_cstate=3&amp;quot; in /etc/modules on a debian system.  Noise still present upon resume though on my t43p though  :(&lt;br /&gt;
&lt;br /&gt;
* [[User:Nephiel|Nephiel]]: My {{Z60m}} also had the &amp;quot;screeching when on battery&amp;quot; problem with Ubuntu 5.10. Editing {{path|/etc/init.d/acpid}} as described worked. It needed C2: C3 was quieter but still noticeable.&lt;br /&gt;
&lt;br /&gt;
* Michael Kiausch: On my {{x41}} the noise disappears on unloading uhci-hcd module (no matter which c-state), unfortunately this is not an option as this disables usb. ''edit:'' only works if HZ=100&lt;br /&gt;
&lt;br /&gt;
* Just tested M. Kiausch's suggestion on a {{t43}}. The high-pitch noise is gone (HZ=100, cstate=4), but there is a low-pitch noise with about the same &amp;quot;beat&amp;quot;. It is much less audible though, and I really had to keep an ear close to the exhaust to hear it. But the noise is still there.&lt;br /&gt;
&lt;br /&gt;
* Michael Kiausch: You're right, same low-pitch-noise on {{x41}}, but it is really hard to hear. Does anyone know in which way the usb-uhci is related to the c-states?&lt;br /&gt;
&lt;br /&gt;
* [[User:Slurm|Slurm]] The high-pitch noise occurs on my x41 only if i'm on battery and my mouse(usb, optical) is plugged in.&lt;br /&gt;
&lt;br /&gt;
== Harddisk related noise ==&lt;br /&gt;
&lt;br /&gt;
on my T43p the noise definitely comes from the harddisk and can be heard both in Windows and Linux. Only at boot time, before the harddisk spins up, or when I manually spin down the harddisk with&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|hdparm -y /dev/sda}}&lt;br /&gt;
&lt;br /&gt;
the system is silent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi, I don't have an IBM but Dell Latitude D410 laptop. My problem is that not only the high pitch noise is produced but the processor itself comes very busy when speedstep-centrino module is loaded. On karamba monitor (not very reliable but I can feel the difference) I get 50-100% processor occupation. Right now I'm recompiling my 2.6.14 kernel  to 100Hz timer freq. (was 250) and we'll see what happens.&lt;br /&gt;
&lt;br /&gt;
If you have any suggestions don't hestite since I practically can't use speedsteping because battery discharges rapidly &lt;br /&gt;
&lt;br /&gt;
Cheers&lt;br /&gt;
Wojtek&lt;br /&gt;
&lt;br /&gt;
== Noise from Wlan ==&lt;br /&gt;
Hi, I have a high frequency noise from my wifi modul: It occurs only with linux, only in battery mode. Disabling wifi via hardware switch disables the noise!&lt;br /&gt;
Any Ideas?&lt;br /&gt;
Florian&lt;br /&gt;
EDIT: Giving the cpus something to calc disables the noise, too!&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problem_with_high_pitch_noises&amp;diff=22656</id>
		<title>Talk:Problem with high pitch noises</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problem_with_high_pitch_noises&amp;diff=22656"/>
		<updated>2006-06-07T12:16:44Z</updated>

		<summary type="html">&lt;p&gt;Squashball: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Discussion of &amp;quot;Limit ACPI CPU power states&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
*Stefan Baums: I raised this issue on the linux-kernel mailing list, and from there it was forwarded to the acpi-devel mailing list.  See the discussion [http://sourceforge.net/mailarchive/forum.php?thread_id=7593600&amp;amp;forum_id=6102 here] and [http://sourceforge.net/mailarchive/forum.php?thread_id=7599419&amp;amp;forum_id=6102 here]. Results: The &amp;lt;code&amp;gt;idle=halt&amp;lt;/code&amp;gt; kernel parameter disables ACPI C-state switching entirely (i.e., locks the processor in C1). It is preferable to pass to the ACPI processor component the option {{bootparm|max_cstate|2}}, which only disables the problematic states C3 and C4.  The only way to accomplish this that worked for me was to compile the ACPI processor component permanently into the kernel (&amp;lt;tt&amp;gt;CONFIG_ACPI_PROCESSOR=y&amp;lt;/tt&amp;gt;) and then enable it by adding the parameter {{bootparm|processor.max_cstate|2}} to the boot command line (and of course removing {{bootparm|idle|halt}}). Now the computer switches back and forth between C1 and C2, but avoids the noise-inducing C3 and C4, and frequency scaling works regardless.  [Update: I now use the default Ubuntu kernel, with &amp;lt;code&amp;gt;processor&amp;lt;/code&amp;gt; as a module, and disabled C3 and C4 by modifying {{path|/etc/init.d/acpid}} as explained on the article page.] ({{X41}})&lt;br /&gt;
*Simon Eggert: The {{bootparm|processor.max_cstate|3}} option worked for me on my {{T43p}} thanks.&lt;br /&gt;
* Adding &amp;lt;code&amp;gt;options processor max_cstate=2&amp;lt;/code&amp;gt; in {{path|/etc/modprobe.conf}} (or {{path|/etc/modprobe.conf.local}} on my SuSE 9.3 installation) prevents the CPU permanently from entering into C3 and higher states. ({{X40}}, {{R52}})&lt;br /&gt;
* [[User:Thinker|Thinker]]: On one {{T43}}, this worked even with {{bootparm|processor.max_cstate|3}}. That is, C3 was silent and only C4 produced whining (at both HZ=100 and HZ=250). &lt;br /&gt;
* [[User:Thinker|Thinker]]: These options affect power consumption when the CPU is idle. Here are the figures on one ThinkPad T43:&lt;br /&gt;
** {{bootparm|processor.max_cstate|4}}: 15160mW (default, noisy)&lt;br /&gt;
** {{bootparm|processor.max_cstate|3}}: 15770mW (660mW higher, silent)&lt;br /&gt;
** {{bootparm|processor.max_cstate|2}}: 16100mW (2940mW higher, silent)&lt;br /&gt;
&lt;br /&gt;
* [[User:Gsmenden|gsmenden]]: On a debian system, no modprobe.conf, can use modutils to add max_cstate line.  On my t43p the noise only occcurs when on battery power after suspend / resume cycle.  It is definitely is still present when hard disk is spun down.  Nevertheless there may be multiple sources of this (quite annoying) sound.&lt;br /&gt;
&lt;br /&gt;
* [[User:Gsmenden|gsmenden]]: Update - if you don't want to use modutils, can manually load it on bootup by adding &amp;quot;processor max_cstate=3&amp;quot; in /etc/modules on a debian system.  Noise still present upon resume though on my t43p though  :(&lt;br /&gt;
&lt;br /&gt;
* [[User:Nephiel|Nephiel]]: My {{Z60m}} also had the &amp;quot;screeching when on battery&amp;quot; problem with Ubuntu 5.10. Editing {{path|/etc/init.d/acpid}} as described worked. It needed C2: C3 was quieter but still noticeable.&lt;br /&gt;
&lt;br /&gt;
* Michael Kiausch: On my {{x41}} the noise disappears on unloading uhci-hcd module (no matter which c-state), unfortunately this is not an option as this disables usb. ''edit:'' only works if HZ=100&lt;br /&gt;
&lt;br /&gt;
* Just tested M. Kiausch's suggestion on a {{t43}}. The high-pitch noise is gone (HZ=100, cstate=4), but there is a low-pitch noise with about the same &amp;quot;beat&amp;quot;. It is much less audible though, and I really had to keep an ear close to the exhaust to hear it. But the noise is still there.&lt;br /&gt;
&lt;br /&gt;
* Michael Kiausch: You're right, same low-pitch-noise on {{x41}}, but it is really hard to hear. Does anyone know in which way the usb-uhci is related to the c-states?&lt;br /&gt;
&lt;br /&gt;
* [[User:Slurm|Slurm]] The high-pitch noise occurs on my x41 only if i'm on battery and my mouse(usb, optical) is plugged in.&lt;br /&gt;
&lt;br /&gt;
== Harddisk related noise ==&lt;br /&gt;
&lt;br /&gt;
on my T43p the noise definitely comes from the harddisk and can be heard both in Windows and Linux. Only at boot time, before the harddisk spins up, or when I manually spin down the harddisk with&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|hdparm -y /dev/sda}}&lt;br /&gt;
&lt;br /&gt;
the system is silent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi, I don't have an IBM but Dell Latitude D410 laptop. My problem is that not only the high pitch noise is produced but the processor itself comes very busy when speedstep-centrino module is loaded. On karamba monitor (not very reliable but I can feel the difference) I get 50-100% processor occupation. Right now I'm recompiling my 2.6.14 kernel  to 100Hz timer freq. (was 250) and we'll see what happens.&lt;br /&gt;
&lt;br /&gt;
If you have any suggestions don't hestite since I practically can't use speedsteping because battery discharges rapidly &lt;br /&gt;
&lt;br /&gt;
Cheers&lt;br /&gt;
Wojtek&lt;br /&gt;
&lt;br /&gt;
== Noise from Wlan ==&lt;br /&gt;
Hi, I have a high frequency noise from my wifi modul: It occurs only with linux, only in battery mode. Disabling wifi via hardware switch disables the noise!&lt;br /&gt;
Any Ideas?&lt;br /&gt;
Florian&lt;/div&gt;</summary>
		<author><name>Squashball</name></author>
		
	</entry>
</feed>