Comment 23 for bug 340014

Revision history for this message
Thilo-Alexander Ginkel (thilo.ginkel) wrote :

After a lengthy analysis via the referenced Linux Kernel bug report (thanks, Tejun!) it turned out that the HDD most commonly built into the NC10, a SAMSUNG HM160HI, responds kind of picky when handling the APM feature of the ATAPI SET FEATURE command (typically invoked by hdparm -B) and most likely gets stuck if it receives the command while some load is placed on the system or it receives the same comand multiple times in a row.

There are two candidates, which do this after resuming and/or changing the battery state: laptop-mode and acpi-support.

While laptop-mode offers a switch (CONTROL_HD_POWERMGMT) in /etc/laptop-mode/laptop-mode.conf to turn off this behavior, acpi-support offers no way of turning off this behavior (apart from turning on CONTROL_HD_POWERMGMT for laptop-mode). If you'd like to debug which commands are sent to the HDD, there is a debugging patch available, which allows printing out all non-data related commands sent to the HDD: http://bugzilla.kernel.org/show_bug.cgi?id=13416#c51

Consequently, I am switching over this report to the acpi-support package.

As a quick workaround, get rid of all 90-hdparm.sh files below /etc/acpi/ and make sure that CONTROL_HD_POWERMGMT is set to 0 in /etc/laptop-mode/laptop-mode.conf.