LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-30-2007, 05:40 PM   #1
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
acpi bug


Hi,

I recently stumbled across this bug description. The bug is about apci settings in ubuntu leading to way to many load cycles, prematurely killing laptop hard drives.
I'm using Fedora 7 on an Dell Inspiron E1505, but I decided to check if I was in trouble anyway and this is what I found.
I have this laptop for about a year now, and looking up the # load cycles up to now:

Code:
    
[root@localhost /home/sohail]# smartctl -d ata -a /dev/sda|grep Load_Cycle_Count
225 Load_Cycle_Count        0x0012   062   062   000    Old_age   Always       -       387919
As we can see, the load cycle in about a year is 387919. Seeing that a disk can handle 600000 before failure, this is not good! The cycle count increases every 1/2 a minute or so, which is way to much.
So it seems the bug has effected fedora as well.
The thing is, although a remedy had been suggested on the web page linked to above, they assume your working on ubuntu. I have tried doing

Code:
hdparm -B 255 /dev/sda
but that didn't fix the problem.
If anyone could help me out here, I would appreciate it very much.
 
Old 11-01-2007, 05:53 AM   #2
vivedekananda
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
Similar situation here. I installed Kubuntu 7.10 on new Dell Inspiron 1501.
yesterday I tried the fix:
Quote:
hdparm -B 255 /dev/sda
It didn't work for me.

I browsed a bit more on the web (mainly on ubuntuforums.org), I post possible solutions below. I will need to test them out when back from work,
and I'll report if they worked.

Some people recommend the following:
Code:
hdparm -B 254 /dev/sda
or
Code:
hdparm -B 200 /dev/sda
It might be usefull to try to combine the above "hdparm -B" with
Code:
hdparm -S 0 /dev/sda
Also make sure you have "laptop_mode" disabled.

Finally, you might try set your hdd power management settings in BIOS (it isn't possible on my laptop model).

Good luck, I will post my results later.

Last edited by vivedekananda; 11-01-2007 at 05:55 AM. Reason: cosmetic
 
Old 11-01-2007, 04:54 PM   #3
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Yes indeed,

Code:
hdparm -B 254 -S 60 /dev/sda
seems to do the trick. I put this in the /etc/rc.d/init.d/acpid script, but I don't know how nice that solution is. Anyone have a better idea?
 
Old 11-02-2007, 02:21 AM   #4
vivedekananda
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
OK, tried things out. "hdparm -B 254" works on my machine, 255 actually sets the value to 128:
Code:
$ hdparm -B255 /dev/sda
/dev/sda:
 setting Advanced Power Management level to disabled
$
$hdparm -I /dev/sda | grep power
        Advanced power management level: unknown setting (0x0080)
           *    Host-initiated interface power management
                Device-initiated interface power management
This s the only fix I know of. I am going to contact Dell and ask them
to provide a solution for this, since it seems to be a bios/hardware/firmware related issue. Windows probably override the bios settings.
 
Old 11-14-2007, 10:57 PM   #5
lomnhom
Member
 
Registered: Jan 2005
Location: Ha Noi, Viet Nam
Distribution: Fedora Core
Posts: 61

Rep: Reputation: 15
$ hdparm -B255 /dev/sda

I thnk this one only temporally disable the Advanced Power Management. How to disable this permanently ?
 
Old 04-19-2008, 05:44 AM   #6
netsurf
Member
 
Registered: Nov 2004
Location: UK
Distribution: ubuntu 10.04+ distro hopping
Posts: 181

Rep: Reputation: 31
issue is still present in fedora 8 need a permanent fix....
 
Old 04-19-2008, 09:41 PM   #7
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Rep: Reputation: 15
Hi, I've been trying to get fedora up and running on my system, and I came across this topic - and it scared me. Of all things I want, I sincerely cannot afford a HD crash.
Does it apply to all hardware or just yours? Kindly reply.
 
Old 04-21-2008, 09:39 AM   #8
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Rep: Reputation: 15
Can anyone reply atleast?
 
Old 04-22-2008, 03:18 AM   #9
vivedekananda
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
to check if you are affected run:
Quote:
smartctl -d ata -a /dev/sda |grep Load_Cycle_Count
replace "/dev/sda" with your disk if needed

you should get out put like this:
Quote:
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 21000000
If the number at the end of the line rises every few second then you are affected.

I recommend you search eg www.ubuntuforums.org for the latest information about the bug, seems the issue is still not resolved in ubuntu, dont know about fedora.

Last edited by vivedekananda; 04-22-2008 at 03:34 AM. Reason: update
 
Old 04-23-2008, 10:36 AM   #10
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Rep: Reputation: 15
Question

Quote:
Originally Posted by vivedekananda View Post
to check if you are affected run:

replace "/dev/sda" with your disk if needed

you should get out put like this:


If the number at the end of the line rises every few second then you are affected.

I recommend you search eg www.ubuntuforums.org for the latest information about the bug, seems the issue is still not resolved in ubuntu, dont know about fedora.
Ok, so I was affected. I did hdparm -B255 /dev/sda and now the problem seems to be resolved. I even added that into my /etc/rc.d/acpid script and its working well.

One question though - will it affect my power management settings? For example, will the drive keep running on susped as well? I'm running F 8. Is this bug present in slackware and all linux distros?

Last edited by algogeek; 04-23-2008 at 11:11 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux ACPI and BIOS ACPI - problem to understand and giving out bugs marisdembovskis Linux - Software 3 09-20-2007 10:22 PM
2038 bug-Is Debian Bug-Proof? deepclutch Debian 1 08-02-2007 10:59 AM
ACPI: 2.6.17.7; nothing in /proc/acpi/fan; fans not running; problem not seen before. zetabill Linux - Kernel 1 07-30-2006 04:27 PM
I think there might be a bug in my acpi blufire Fedora 4 12-02-2004 02:28 AM
Bug, and a question, re: ACPI Entropius Linux - Laptop and Netbook 0 04-11-2004 11:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration