Today I read in SlashDot a remarcable pice of new. Ubuntu’s compatibility problem that was reducing some HD’s life time has been fixed. The problem appeared turning the powersaving mode on. Once it done, the HD’s load cycle count started increasing at giant steps (more…).
People are still arguing who’s fault was, if hardware manufacturers or software developers (the thing is it was just happening in some hard disks brands).
Long time ago I found a way to solve it, tunning hdparm:
hdparm -R 255 /dev/sdaX
255 is the maximum value it can have, would turn off completely APM.
Neighter that or couple more tricks I found googleing worked for me.
For users of Ubuntu 8.04 or higher, the problem seems to be definitely solved. To download the fix you must use the test repositries as it has just appeared and is not yet in the update repositories.
Finally, i solved it on my dell studio 1555. First, gksudo gedit /boot/grub/menu.lst. And edit it by adding ‘noapic’ without quotes at the end of the boot loader entry for the os, after ‘ro quiet splash’. Then, run sudo update-grub. Then, edit /etc/laptop-mode.conf and change enable_laptop_mode_on_battery to 0. Then, edit all files of the form, /etc/acpi/*.d/90-hdparm.sh, and replace the line following if ["$State"="battery"] then;
hdparm -B 254 $dev
Else
hdparm -B 254 $dev. Thats all.. The noapic solves the dell studio ubuntu problem of not recognizing ac adapter, no changing brightness, closing lid lcd switch off, and elect key. Try it and let me know!