Bug 5042 - laptop harddrive spin down every 5 seconds on battery mode
Summary: laptop harddrive spin down every 5 seconds on battery mode
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: José Jorge
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2012-03-21 13:43 CET by Chris Denice
Modified: 2016-07-08 12:15 CEST (History)
3 users (show)

See Also:
Source RPM: upower-0.9.15-1.mga2.src.rpm
CVE:
Status comment:


Attachments
output of lspcidrake (2.13 KB, text/plain)
2012-03-21 18:01 CET, Chris Denice
Details
System and hardware info (1.81 KB, text/plain)
2015-08-05 13:40 CEST, Martin Volf
Details
hdparm -I âdevâsda (AC power) (4.14 KB, text/plain)
2015-08-05 13:41 CEST, Martin Volf
Details
hdparm -I âdevâsda (battery) (4.12 KB, text/plain)
2015-08-05 13:50 CEST, Martin Volf
Details
lspcidrake -v (4.18 KB, text/plain)
2015-08-05 13:57 CEST, Martin Volf
Details
hdparm -I /dev/sda|grep Advanced (145 bytes, text/plain)
2016-07-08 12:15 CEST, Martin Volf
Details

Description Chris Denice 2012-03-21 13:43:06 CET
Description of problem:

upowerd.service puts too much stress on my laptop harddrive by spinning it off every 5 seconds. 
Disable the service with systemctl --system disable upowerd.service; and resetting the hdparm -B 255 /dev/sda fixes the pb.

I did not find out where the default setting can be configured as the man of upowerd is a joke :) It seems that our old file /etc/systemctl/harddisks is ignored however.

Cheers,
chris.
Comment 1 Marja Van Waes 2012-03-21 15:38:35 CET
assigning to maintainer

CC: (none) => marja11
Assignee: bugsquad => dmorganec

Comment 2 Marja Van Waes 2012-03-21 15:44:28 CET
(In reply to comment #1)
> assigning to maintainer

hmm, a bit fast... dmorgan hasn't got anything to go by.

Can you please tell which HD and which laptop you have ?

What is the output of lspcidrake -v?

And please let your HD spin again and attach output.txt resulting from
tailf /var/log/messages 2>&1 | tee output.txt

Keywords: (none) => NEEDINFO

Comment 3 Chris Denice 2012-03-21 18:00:53 CET
- laptop: dell xps 1210
- lspcidrake attached.
- HD is a

Western Digital 111GB
WD1200BEVS-7

- there is not any output in messages when the drive spin-down or spin-up.

In fact, the upowerd config file is in /usr/lib64/pm-utils/harddrive which specify the default behaviour as hdparm -B 1; which is the most aggressive setting.

The incriminated variable is DRIVE_POWER_MGMT_BAT, if set to 254 solves the issue. I think we should not let it at 1 by default as this pb may happen on other laptop.

Cheers,
Chris.
Comment 4 Chris Denice 2012-03-21 18:01:34 CET
Created attachment 1813 [details]
output of lspcidrake
Marja Van Waes 2012-03-21 19:03:24 CET

Keywords: NEEDINFO => (none)

Comment 5 Marja Van Waes 2012-05-26 13:08:20 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 6 Chris Denice 2012-05-26 16:21:05 CEST
Yes it is.

Cheers.
Sander Lepik 2012-05-26 16:38:14 CEST

Keywords: NEEDINFO => (none)
CC: (none) => sander.lepik

Marja Van Waes 2012-05-28 18:14:22 CEST

Whiteboard: (none) => MGA2TOO

Comment 7 Marja Van Waes 2012-07-06 15:04:51 CEST
Please look at the bottom of this mail to see whether you're the assignee of this  bug, if you don't already know whether you are.


If you're the assignee:

We'd like to know for sure whether this bug was assigned correctly. Please change status to ASSIGNED if it is, or put OK on the whiteboard instead.

If you don't have a clue and don't see a way to find out, then please put NEEDHELP on the whiteboard.

Please assign back to Bug Squad or to the correct person to solve this bug if we were wrong to assign it to you, and explain why.

Thanks :)

**************************** 

@ the reporter and persons in the cc of this bug:

If you have any new information that wasn't given before (like this bug being valid for another version of Mageia, too, or it being solved) please tell us.

@ the reporter of this bug

If you didn't reply yet to a request for more information, please do so within two weeks from now.

Thanks all :-D
D Morgan 2013-09-17 23:52:30 CEST

Assignee: dmorganec => bugsquad

Manuel Hiebel 2013-09-18 11:34:15 CEST

Version: Cauldron => 2

Comment 8 Manuel Hiebel 2013-10-22 12:11:24 CEST
This message is a reminder that Mageia 2 is nearing its end of life.
Approximately one month from now Mageia will stop maintaining and issuing updates for Mageia 2. At that time this bug will be closed as WONTFIX (EOL) if it remains open with a Mageia 'version' of '2'.

Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Mageia version prior to Mageia 2's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Mageia 2 is end of life.  If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Mageia release includes newer upstream software that fixes bugs or makes them obsolete.

-- 
The Mageia Bugsquad
Comment 9 Manuel Hiebel 2013-11-23 16:14:43 CET
Mageia 2 changed to end-of-life (EOL) status on ''22 November''. Mageia 2 is no
longer maintained, which means that it will not receive any further security or
bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Mageia
please feel free to click on "Version" change it against that version of Mageia
and reopen this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

--
The Mageia Bugsquad

Status: NEW => RESOLVED
Resolution: (none) => OLD

Comment 10 Martin Volf 2015-08-05 13:40:20 CEST
Created attachment 6909 [details]
System and hardware info

CC: (none) => yullaw

Comment 11 Martin Volf 2015-08-05 13:41:04 CEST
Created attachment 6910 [details]
hdparm -I âdevâsda (AC power)
Comment 12 Martin Volf 2015-08-05 13:50:58 CEST
Created attachment 6911 [details]
hdparm -I âdevâsda (battery)

Hi,

this bug is too old, but still persist on all Mageia releases.

When a laptop is disconnected from AC power and system works on battery, the harddisk stops very often and stopping the user's work.

As it is written above (hdparm -B 255 /dev/sda) fixes the issue.

For more information, see attached files.

Next documentation:
- https://wiki.archlinux.org/index.php/Hdparm
- https://sites.google.com/site/quiethdd/#TOC-APM-Feature:

FYI: I could not find any configuration file as such /etc/hdparm, but exists /usr/lib64/pm-utils/power.d/harrdrive
Martin Volf 2015-08-05 13:51:56 CEST

Status: RESOLVED => REOPENED
Version: 2 => 5
Resolution: OLD => (none)
Target Milestone: --- => Mageia 1
Whiteboard: MGA2TOO => MGA2TOO, MGA3TOO, MGA4TOO, MGA5TOO

Comment 13 Martin Volf 2015-08-05 13:57:45 CEST
Created attachment 6912 [details]
lspcidrake -v

added
Comment 14 Marja Van Waes 2016-06-26 20:49:29 CEST
Assigning to upower maintainer.

@ Chris
@ Martin

However, is this bug still valid? Last comment dates from over 10 months ago.

Keywords: (none) => NEEDINFO
Assignee: bugsquad => lists.jjorge
Target Milestone: Mageia 1 => ---
Whiteboard: MGA2TOO, MGA3TOO, MGA4TOO, MGA5TOO => (none)

Comment 15 José Jorge 2016-06-27 21:13:58 CEST
(In reply to Martin Volf from comment #12)

> FYI: I could not find any configuration file as such /etc/hdparm, but exists
> /usr/lib64/pm-utils/power.d/harrdrive

You can override the defaults of this file, but they only spin down the disk after 30 seconds, not 5 :

DRIVE_SPINDOWN_VALUE_BAT = time until a drive will spin down on battery
Defaults to 6, which will spin the drive down after 30 seconds of inactivity.

I wonder if you don't have an old laptop-mode package that bugs it. Please re-open the bug if it is still reproductible.

Status: REOPENED => RESOLVED
Resolution: (none) => OLD

Comment 16 Chris Denice 2016-07-05 18:47:12 CEST
lol...
This bug is so old, that the laptop with which I opened it is dead since long, and now, my hard-drive is solid state, so I have absolutely no mean to test if that bug still exist :)
Comment 17 Martin Volf 2016-07-08 12:15:43 CEST
Created attachment 8142 [details]
hdparm -I /dev/sda|grep Advanced

It works well for long time with battery mode. No spinning down anymore, because in default is the mode disabled. See attached output from hdparm -I /dev/sda|grep Advanced command.

Thanks!

Note You need to log in before you can comment on or make changes to this bug.