Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#426 Le 12/11/2007, à 12:32

DiCiCat

Re : Vieillissement prématuré des disques durs de portables

@Soldado

Tu rales sans donner le contenu complet de ton fichier, sans le contenu complet personne ne pourra dire ce qui va ou pas.
Sinon Le fichier de Hornblende me parait un excellent point de départ, il est bien configuré et devrais fonctionner à  peut près partout je pense (il est plus générique que le mien).
Essaye de le recopier et de partir de là .
je le recopie ici pour plus de facilité

###############################################################################
#
# Configuration for Laptop Mode Tools
# -----------------------------------
#
# There is a "system" to the configuration setting names:
#    CONTROL_something=0/1   Determines whether Laptop Mode Tools controls 
#                            something
#    LM_something=value      Value of "something" when laptop mode is active
#    NOLM_something=value    Value of "something" when laptop mode is NOT
#                            active
#    AC_something=value      Value of "something" when the computer is running
#                            on AC power
#    BATT_something=value    Value of "something when the computer is running
#                            on battery power
#
# There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
# available prefixes are different for each setting. The available ones are 
# documented in the manual page, laptop-mode.conf(8). If there is no LM_/
# NOLM_ in a setting name, then the value is used independently of laptop
# mode state, and similarly, if there is no AC_/BATT_, then the value is used
# independently of power state.
#
# Some options only work on ACPI systems. They are marked ACPI-ONLY.
#
# Note that this configuration file is a fragment of bash shell script: you
# can use all the features of the bash scripting language to achieve your
# desired configuration.
#
# 
# IMPORTANT: Laptop Mode Tools modules have separate configuration files, that
# can be found in /etc/laptop-mode/conf.d. Please look through these
# configuration files as well!
#
###############################################################################



###############################################################################
# Configuration debugging
# -----------------------
###############################################################################


#
# Set this to 1 if you want to see a lot of information when you start/stop 
# laptop_mode.
#
VERBOSE_OUTPUT=0



###############################################################################
# When to enable laptop mode
# --------------------------
#
# "Laptop mode" is the mode in which laptop mode tools makes the computer
# consume less power. This includes the kernel "laptop_mode" feature, which
# allows your hard drives to spin down, as well as various other settings which
# can be tweaked by laptop mode tools. You can enable or disable all of these
# settings using the CONTROL_... options further down in this config file.
###############################################################################


#
# Enable laptop mode when on battery power.
#
ENABLE_LAPTOP_MODE_ON_BATTERY=1


#
# Enable laptop mode when on AC power.
#
ENABLE_LAPTOP_MODE_ON_AC=1


#
# Enable laptop mode when the laptop's lid is closed, even when we're on AC
# power? (ACPI-ONLY)
#
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1



###############################################################################
# When to enable data loss sensitive features
# -------------------------------------------
#
# When data loss sensitive features are disabled, laptop mode tools acts as if
# laptop mode were disabled, for those features only.
#
# Data loss sensitive features include:
# - laptop_mode (i.e., delayed writes)
# - hard drive write cache
#
# All of the options that follow can be set to 0 in order to prevent laptop
# mode tools from using them to stop data loss sensitive features. Use this
# when you have a battery that reports the wrong information, that confuses
# laptop mode tools.
#
# Disabling data loss sensitive features is ACPI-ONLY.
###############################################################################


#
# Disable all data loss sensitive features when the battery level (in % of the
# battery capacity) reaches this value.
#
MINIMUM_BATTERY_CHARGE_PERCENT=3


#
# Disable data loss sensitive features when the battery reports its state
# as "critical".
#
DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1


###############################################################################
# Controlled hard drives and partitions
# -------------------------------------
#
# For spinning down your hard drives, laptop mode will remount file systems and
# adjust hard drive spindown timeouts. These parameters specify which
# devices and partitions are affected by laptop mode.
###############################################################################


#
# The drives that laptop mode controls.
# Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
# wildcard, which will get you all your IDE and SCSI/SATA drives.
#
HD="/dev/[hs]d[abcdefgh]"


#
# The partitions (or mount points) that laptop mode controls.
# Separate the values by spaces. Use "auto" to indicate all partitions on drives
# listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
# also specify mount points, e.g. "/mnt/data".
#
PARTITIONS="auto /dev/mapper/*"


#
# If this is enabled, laptop mode tools will assume that SCSI drives are
# really SATA drives that only _look_ like SCSI drives, and will use hdparm
# to control them. Set this to 0 if you have /dev/sd devices and you want
# laptop mode tools to use the "sdparm" command to control them. 
#
ASSUME_SCSI_IS_SATA=1


###############################################################################
# Hard drive behaviour settings
# -----------------------------
#
# These settings specify how laptop mode tools will adjust the various
# parameters of your hard drives and file systems.
###############################################################################


#
# Maximum time, in seconds, of work that you are prepared to lose when your
# system crashes or power runs out. This is the maximum time that Laptop Mode
# will keep unsaved data waiting in memory before spinning up your hard drive.
#
LM_BATT_MAX_LOST_WORK_SECONDS=3600
LM_AC_MAX_LOST_WORK_SECONDS=3600


#
# Should laptop mode tools control readahead?
#
CONTROL_READAHEAD=1


#
# Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
# by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
# Effectively, the disk will read a complete MP3 at once, and will then spin 
# down while the MP3/OGG is playing. Don't set this too high, because the 
# readahead is applied to _all_ files that are read from disk.
#
LM_READAHEAD=10240#3072
NOLM_READAHEAD=4096#128


#
# Should laptop mode tools add the "noatime" option to the mount options when 
# laptop mode is enabled?
#
CONTROL_NOATIME=1


#
# Should laptop mode tools control the hard drive idle timeout settings?
#
CONTROL_HD_IDLE_TIMEOUT=1


#
# Idle timeout values. (hdparm -S)
# Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
# for battery and for AC with laptop mode on.
#
LM_AC_HD_IDLE_TIMEOUT_SECONDS=7200 #300
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=120 #20
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200


#
# Should laptop mode tools control the hard drive power management settings?
#
CONTROL_HD_POWERMGMT=1 #0


#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=190 #1
LM_AC_HD_POWERMGMT=190 #255
NOLM_AC_HD_POWERMGMT=254 #255


#
# Should laptop mode tools control the hard drive write cache settings?
#
CONTROL_HD_WRITECACHE=1


#
# Write cache settings for HD (hdparm -W values)
#
NOLM_AC_HD_WRITECACHE=1
NOLM_BATT_HD_WRITECACHE=0
LM_HD_WRITECACHE=1



###############################################################################
# CPU frequency scaling and throttling
# ------------------------------------
#
# Laptop mode tools can automatically adjust your kernel CPU frequency
# settings. This includes upper and lower limits and scaling governors.
# There is also support for CPU throttling, on systems that don't support
# frequency scaling.
#
# This feature only works on 2.6 kernels.
###############################################################################


#
# Should laptop mode tools control the maximum CPU frequency?
#
CONTROL_CPU_FREQUENCY=0


#
# Legal values are "slowest" for the slowest speed that your
# CPU is able to operate at, "fastest" for the fastest speed,
# "medium" for some value in the middle, or any value listed in
# /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies.
# The "governor" can be any governor installed on your system, this usually
# includes "ondemand", "conservative", and "performance". The
# "IGNORE_NICE_LOAD" setting specifies that background programs that have
# a low priority ("nice level") should not cause the CPU frequency to
# be increased. (You generally want this to be enabled in battery mode.)
#
BATT_CPU_MAXFREQ=medium
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=ondemand
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=performance
NOLM_AC_CPU_IGNORE_NICE_LOAD=0


#
# Should laptop mode tools control the CPU throttling? This is only useful
# on processors that don't have frequency scaling.
# (Only works when you have /proc/acpi/processor/CPU*/throttling.)
#
CONTROL_CPU_THROTTLING=0


#
# Legal values are "maximum" for the maximum (slowest) throttling level,
# "minimum" for minimum (fastest) throttling level, "medium" for a value
# somewhere in the middle (this is usually 50% for P4s), or any value listed
# in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum":
# this may be _very_ slow (in fact, with P4s it slows down the processor
# by a factor 8).
#
BATT_CPU_THROTTLING=medium
LM_AC_CPU_THROTTLING=medium
NOLM_AC_CPU_THROTTLING=minimum



###############################################################################
# Syslog configuration control
# ----------------------------
# 
# Syslog daemons have a tendency to sync their log files when entries are
# written to them. This causes disks to spin up, which is not very nice when
# you're trying to save power. The syslog.conf can be tweaked to *not* sync
# a given file, by prepending the log file name with a dash, like this:
#
#     mail.*        -/var/log/mail/mail.log
#
# Using the following options, you can let laptop mode switch between
# different syslog configurations depending on whether you are working on
# battery or on AC power. To set this up, start by configuring these options
# for your syslog daemon, and then run lm-syslog-setup to create the various
# files. Then edit the laptop mode-specific syslog configuration files to
# remove the syncs only when laptop mode is active.
###############################################################################


#
# Should laptop mode tools control which syslog.conf should be used?
#
CONTROL_SYSLOG_CONF=1


#
# Laptop mode tools controls syslog.conf by replacing /etc/syslog.conf (or
# whatever you specify in SYSLOG_CONF) by a link to the files configured here.
# NOTE: these files are NOT created by default, and if they do not
# exist this feature will not work. You can run the script
# /usr/sbin/lm-syslog-setup to set things up.
#
LM_AC_SYSLOG_CONF=/etc/syslog-on-ac-with-lm.conf
NOLM_AC_SYSLOG_CONF=/etc/syslog-on-ac-without-lm.conf
BATT_SYSLOG_CONF=/etc/syslog-on-battery.conf


#
# Signal this program when syslog.conf has been replaced.
#
SYSLOG_CONF_SIGNAL_PROGRAM=syslogd


#
# This is the syslog configuration file that should be replaced by a link to
# the other files.
#
SYSLOG_CONF=/etc/syslog.conf



###############################################################################
# X display settings
# ------------------
#
# Using these settings, you can let laptop mode tools control the X display
# standby timeouts.
#
# This requires that you have installed the "xset" utility. It is part of the
# X.org server distribution and included in the package xorg-server-utils.
#
# The X settings are not automatically applied on login, and this is
# impossible fix for the user, since laptop mode tools must operate as root.
# Therefore, it is recommended to add the following line to /etc/X11/Xsession
# as well:
#
#   /usr/sbin/laptop_mode force
#
###############################################################################


#
# Should laptop mode tools control DPMS standby settings for X displays?
#
CONTROL_DPMS_STANDBY=0


#
# These settings specify the standby timeout for the X display,
# in seconds. The suspend and poweroff timeouts are somewhat
# larger values derived from these values.
#
BATT_DPMS_STANDBY=300
LM_AC_DPMS_STANDBY=1200
NOLM_AC_DPMS_STANDBY=1200



###############################################################################
# Terminal settings
# -----------------
#
# Using these settings, you can let laptop mode tools control the terminal
# blanking timeouts. This only works for linux virtual consoles.
#
###############################################################################


#
# Should laptop mode tools control terminal blanking settings?
#
CONTROL_TERMINAL=0


#
# Terminal device files that should be affected. (One terminal is enough, this
# affects all consoles. )
#
TERMINALS="/dev/tty1"


#
# These settings specify the blanking and powerdown timeouts. Note that
# the powerdown timeout is counted from the moment the screen is blanked,
# i.e. BLANK_MINUTES=2 and POWERDOWN_MINUTES=5 means the screen powers
# down after 7 minutes of inactivity. The range for all these settings is
# 1 to 60 minutes, or 0 to disable.
#
BATT_TERMINAL_BLANK_MINUTES=1
BATT_TERMINAL_POWERDOWN_MINUTES=2
LM_AC_TERMINAL_BLANK_MINUTES=1 #10
LM_AC_TERMINAL_POWERDOWN_MINUTES=2 #10
NOLM_AC_TERMINAL_BLANK_MINUTES=10
NOLM_AC_TERMINAL_POWERDOWN_MINUTES=50


###############################################################################
# LCD brightness settings
# -----------------------
#
# Using these settings, you can make laptop mode tools automatically adjust
# your LCD's brightness settings. The settings are extremely simple -- they
# only allow for the execution of a command, nothing more. The reason for this
# is that LCD brightness settings are very different between laptop vendors.
#
# Suggestions for commands:
#
#  * If your system has the file "/proc/acpi/video/VID/LCD/brightness" (VID may
#    be VID1 or similar), use this file as BRIGHTNESS_OUTPUT, and use
#    the command "echo <value>". The possible values can be listed using the
#    command:
#
#       cat /proc/acpi/video/VID/LCD/brightness
#
#  * If you have a file /sys/class/backlight/.../brightness, then you can use
#    that file as BRIGHTNESS_OUTPUT, and the command "echo <value>".
#
#    As far as I understand it the values are between 0 and
#    the value contained in the file /sys/class/backlight/.../max_brightness.
#
#  * For Toshiba laptops, use the command "toshset" with the -lcd or -inten
#    command. Read the toshset(1) manual page for more information on the
#    parameters for this command. If you use this command, set
#    BRIGHTNESS_OUTPUT to "/dev/null".
#
###############################################################################


#
# Should laptop mode tools control LCD brightness?
#
CONTROL_BRIGHTNESS=0


#
# Commands to execute to set the brightness on your LCD
#
BATT_BRIGHTNESS_COMMAND="echo [value]"
LM_AC_BRIGHTNESS_COMMAND="echo [value]"
NOLM_AC_BRIGHTNESS_COMMAND="echo [value]"
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD/brightness"


###############################################################################
# Auto-hibernation settings
# -------------------------
#
# Using these settings, you can make laptop mode tools automatically put your
# computer into hibernation when the battery level goes critically low.
#
# This feature only works on ACPI, and only works on computers whose batteries
# give off battery events often enough.
###############################################################################


#
# Should laptop mode tools perform auto-hibernation?
#
ENABLE_AUTO_HIBERNATION=0


#
# The hibernation command that is to be executed when auto-hibernation
# is triggered.
#
HIBERNATE_COMMAND=/usr/sbin/hibernate


#
# Auto-hibernation battery level threshold, in percentage of the battery's
# total capacity.
#
AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=2


#
# Enable this to auto-hibernate if the battery reports that its level is
# "critical".
#
AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1



###############################################################################
# Start/Stop Programs settings
# ----------------------------
#
# Laptop mode tools can automatically start and stop programs when entering
# various power modes. Put scripts accepting "start" and "stop" parameters
# in the directories /etc/laptop-mode/batt-stop, batt-start, lm-ac-stop,
# lm-ac-start, nolm-ac-stop and nolm-ac-start. Laptop mode will call the
# scripts in a state-"stop" directory with the "stop" parameter when entering
# the state in question, and it will call the same scripts with the "start"
# parameter when leaving the state. Scripts in a state-"start" directory are
# called with the "start" parameter when the specified state is entered, and
# with the "stop" parameter when the specified state is left.
###############################################################################


#
# Should laptop mode start and stop programs? 
#
CONTROL_START_STOP=1



###############################################################################
# Settings you probably don't want to touch
# -----------------------------------------
#
# It is usually not necessary to change these parameters. They are included
# for completeness' sake.
###############################################################################


#
# Change mount options on partitions in PARTITIONS? You don't really want to
# disable this. If you do, then your hard drives will probably not spin down
# anymore.
#
CONTROL_MOUNT_OPTIONS=1


#
# Dirty synchronous ratio.  At this percentage of dirty pages the process
# which calls write() does its own writeback.
#
LM_DIRTY_RATIO=60
NOLM_DIRTY_RATIO=40


#
# Allowed dirty background ratio, in percent.  Once DIRTY_RATIO has been
# exceeded, the kernel will wake pdflush which will then reduce the amount
# of dirty memory to dirty_background_ratio.  Set this nice and low, so once
# some writeout has commenced, we do a lot of it.
#
LM_DIRTY_BACKGROUND_RATIO=1
NOLM_DIRTY_BACKGROUND_RATIO=10


#
# kernel default settings -- don't touch these unless you know what you're 
# doing.
#
DEF_UPDATE=5
DEF_XFS_AGE_BUFFER=15
DEF_XFS_SYNC_INTERVAL=30
DEF_XFS_BUFD_INTERVAL=1
DEF_MAX_AGE=30


#
# This must be adjusted manually to the value of HZ in the running kernel
# on 2.4, until the XFS people change their 2.4 external interfaces to work in
# centisecs. This can be automated, but it's a work in progress that still
# needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
# external interfaces, and that is currently always set to 100. So you don't
# need to change this on 2.6.
#
XFS_HZ=100


#
# Seconds laptop mode has to to wait after the disk goes idle before doing
# a sync.
#
LM_SECONDS_BEFORE_SYNC=2

Si tu as des problemes avec ce fichier, ne change QUE les valeurs ci dessous


#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=190      (Ici je mettrais moins si ca fonctionne avec son HDD min 0 max 254)
LM_AC_HD_POWERMGMT=190    (ici tu peut eventuellement augmenter, max 254)

essaye les valeurs 128/190/254 (inutile de passer par des intermediaires dans un premier temps)

Dernière modification par DiCiCat (Le 12/11/2007, à 12:36)

Hors ligne

#427 Le 12/11/2007, à 14:37

Soldado

Re : Vieillissement prématuré des disques durs de portables

DiCiCat
Mon espression écrite n'a pas une volonté de raller smile, donc désolé si cela est pris dans ce sens.
Les valeurs que j'ai donnée sont celle qui on été modifiée par rapport au fichier par défaut du laptop-mode.conf. suite à  une partie de ton fichier (encore merci à  toi pour les infos)
Je vais refaire les tests que tu préconise.

Mon anglais doit être movais mais en lisant http://linux.die.net/man/8/laptop-mode.conf les informations sur les variables liées à  HDparm j'ai ceci

CONTROL_HD_POWERMGMT
    When this option is enabled, laptop mode tools adjusts your hard drives' power management settings.
BATT_HD_POWERMGMT
LM_AC_HD_POWERMGMT
NOLM_AC_HD_POWERMGMT
    These values specify the power management level for your hard drives. The legal values for these options can be found in the hdparm(8) manual page, in the documentation of the -B option.

Et allant voir hdparm j'ai ceci http://linux.die.net/man/8/hdparm

-B
    Set Advanced Power Management feature, if the drive supports it. A low value means aggressive power management and a high value means better performance. A value of 255 will disable apm on the drive.

Cela ne veux-t-il pas dire que plus on baisse la valeur plus on solicite (aggressive) le dur ?


Kubuntu 12.04 32Bits Asus A6

Hors ligne

#428 Le 12/11/2007, à 14:44

DiCiCat

Re : Vieillissement prématuré des disques durs de portables

oui c'est ca, 0 c'est le plus aggressif possible et 255 tu stope completement la gestion d'énergie.
Mais, il a été reporté sur différents forum que la valeur 255 n'est pas accepté par tous les HDD, donc il vaut mieux utiliser 254 comme valeure max.

De plus, quand tu rentre une valeure hdparm -B, avec certains disques ca ecrase les valeurs hdparm -S que tu as definie avant (c'est pour cette raison, que dans le fichier de config par défaut de laptop-mode, CONTROL_HD_POWERMGMT est à  0 et pas à  1)

En gros, le truc c'est de jouer avec le parametre S (le fichier de Hornblende est bon de ce coté). Si cela ne suffit pas, tu joue avec le parametre -B sachant que ca peut ca peut casser ce que tu as definie avec -S selon ton HDD.

Bref, il n'y aura pas de solution miracle universelle, les "bonnes" valeurs sont fonction de ton matériel et de l'utilisation que tu en fait.

Dernière modification par DiCiCat (Le 12/11/2007, à 14:45)

Hors ligne

#429 Le 12/11/2007, à 20:04

Hornblende

Re : Vieillissement prématuré des disques durs de portables

Salut à  tous!!!!

J'ai fait quelques changements pour mon fichier car ça bougeait encore un peu trop à  mon gout finalement, et sur batterie...J'ai testé, et ça donnait pas de bons résultats.
Donc, après avoir encore tripatouillé ma conf j'ai ça:

###############################################################################
#
# Configuration for Laptop Mode Tools
# -----------------------------------
#
# There is a "system" to the configuration setting names:
#    CONTROL_something=0/1   Determines whether Laptop Mode Tools controls 
#                            something
#    LM_something=value      Value of "something" when laptop mode is active
#    NOLM_something=value    Value of "something" when laptop mode is NOT
#                            active
#    AC_something=value      Value of "something" when the computer is running
#                            on AC power
#    BATT_something=value    Value of "something when the computer is running
#                            on battery power
#
# There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
# available prefixes are different for each setting. The available ones are 
# documented in the manual page, laptop-mode.conf(8). If there is no LM_/
# NOLM_ in a setting name, then the value is used independently of laptop
# mode state, and similarly, if there is no AC_/BATT_, then the value is used
# independently of power state.
#
# Some options only work on ACPI systems. They are marked ACPI-ONLY.
#
# Note that this configuration file is a fragment of bash shell script: you
# can use all the features of the bash scripting language to achieve your
# desired configuration.
#
# 
# IMPORTANT: Laptop Mode Tools modules have separate configuration files, that
# can be found in /etc/laptop-mode/conf.d. Please look through these
# configuration files as well!
#
###############################################################################



###############################################################################
# Configuration debugging
# -----------------------
###############################################################################


#
# Set this to 1 if you want to see a lot of information when you start/stop 
# laptop_mode.
#
VERBOSE_OUTPUT=0



###############################################################################
# When to enable laptop mode
# --------------------------
#
# "Laptop mode" is the mode in which laptop mode tools makes the computer
# consume less power. This includes the kernel "laptop_mode" feature, which
# allows your hard drives to spin down, as well as various other settings which
# can be tweaked by laptop mode tools. You can enable or disable all of these
# settings using the CONTROL_... options further down in this config file.
###############################################################################


#
# Enable laptop mode when on battery power.
#
ENABLE_LAPTOP_MODE_ON_BATTERY=1


#
# Enable laptop mode when on AC power.
#
ENABLE_LAPTOP_MODE_ON_AC=1


#
# Enable laptop mode when the laptop's lid is closed, even when we're on AC
# power? (ACPI-ONLY)
#
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1



###############################################################################
# When to enable data loss sensitive features
# -------------------------------------------
#
# When data loss sensitive features are disabled, laptop mode tools acts as if
# laptop mode were disabled, for those features only.
#
# Data loss sensitive features include:
# - laptop_mode (i.e., delayed writes)
# - hard drive write cache
#
# All of the options that follow can be set to 0 in order to prevent laptop
# mode tools from using them to stop data loss sensitive features. Use this
# when you have a battery that reports the wrong information, that confuses
# laptop mode tools.
#
# Disabling data loss sensitive features is ACPI-ONLY.
###############################################################################


#
# Disable all data loss sensitive features when the battery level (in % of the
# battery capacity) reaches this value.
#
MINIMUM_BATTERY_CHARGE_PERCENT=3


#
# Disable data loss sensitive features when the battery reports its state
# as "critical".
#
DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1


###############################################################################
# Controlled hard drives and partitions
# -------------------------------------
#
# For spinning down your hard drives, laptop mode will remount file systems and
# adjust hard drive spindown timeouts. These parameters specify which
# devices and partitions are affected by laptop mode.
###############################################################################


#
# The drives that laptop mode controls.
# Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
# wildcard, which will get you all your IDE and SCSI/SATA drives.
#
HD="/dev/[hs]d[abcdefgh]"


#
# The partitions (or mount points) that laptop mode controls.
# Separate the values by spaces. Use "auto" to indicate all partitions on drives
# listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
# also specify mount points, e.g. "/mnt/data".
#
PARTITIONS="auto /dev/mapper/*"


#
# If this is enabled, laptop mode tools will assume that SCSI drives are
# really SATA drives that only _look_ like SCSI drives, and will use hdparm
# to control them. Set this to 0 if you have /dev/sd devices and you want
# laptop mode tools to use the "sdparm" command to control them. 
#
ASSUME_SCSI_IS_SATA=1


###############################################################################
# Hard drive behaviour settings
# -----------------------------
#
# These settings specify how laptop mode tools will adjust the various
# parameters of your hard drives and file systems.
###############################################################################


#
# Maximum time, in seconds, of work that you are prepared to lose when your
# system crashes or power runs out. This is the maximum time that Laptop Mode
# will keep unsaved data waiting in memory before spinning up your hard drive.
#
LM_BATT_MAX_LOST_WORK_SECONDS=3600
LM_AC_MAX_LOST_WORK_SECONDS=3600


#
# Should laptop mode tools control readahead?
#
CONTROL_READAHEAD=1


#
# Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
# by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
# Effectively, the disk will read a complete MP3 at once, and will then spin 
# down while the MP3/OGG is playing. Don't set this too high, because the 
# readahead is applied to _all_ files that are read from disk.
#
LM_READAHEAD=10240#3072
NOLM_READAHEAD=4096#128


#
# Should laptop mode tools add the "noatime" option to the mount options when 
# laptop mode is enabled?
#
CONTROL_NOATIME=1


#
# Should laptop mode tools control the hard drive idle timeout settings?
#
CONTROL_HD_IDLE_TIMEOUT=1


#
# Idle timeout values. (hdparm -S)
# Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
# for battery and for AC with laptop mode on.
#
LM_AC_HD_IDLE_TIMEOUT_SECONDS=7200 #300
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=240 #20
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200


#
# Should laptop mode tools control the hard drive power management settings?
#
CONTROL_HD_POWERMGMT=1 #0


#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=254 #1
LM_AC_HD_POWERMGMT=254 #255
NOLM_AC_HD_POWERMGMT=254 #255


#
# Should laptop mode tools control the hard drive write cache settings?
#
CONTROL_HD_WRITECACHE=1


#
# Write cache settings for HD (hdparm -W values)
#
NOLM_AC_HD_WRITECACHE=1
NOLM_BATT_HD_WRITECACHE=0
LM_HD_WRITECACHE=1



###############################################################################
# CPU frequency scaling and throttling
# ------------------------------------
#
# Laptop mode tools can automatically adjust your kernel CPU frequency
# settings. This includes upper and lower limits and scaling governors.
# There is also support for CPU throttling, on systems that don't support
# frequency scaling.
#
# This feature only works on 2.6 kernels.
###############################################################################


#
# Should laptop mode tools control the maximum CPU frequency?
#
CONTROL_CPU_FREQUENCY=0


#
# Legal values are "slowest" for the slowest speed that your
# CPU is able to operate at, "fastest" for the fastest speed,
# "medium" for some value in the middle, or any value listed in
# /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies.
# The "governor" can be any governor installed on your system, this usually
# includes "ondemand", "conservative", and "performance". The
# "IGNORE_NICE_LOAD" setting specifies that background programs that have
# a low priority ("nice level") should not cause the CPU frequency to
# be increased. (You generally want this to be enabled in battery mode.)
#
BATT_CPU_MAXFREQ=medium
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=ondemand
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=performance
NOLM_AC_CPU_IGNORE_NICE_LOAD=0


#
# Should laptop mode tools control the CPU throttling? This is only useful
# on processors that don't have frequency scaling.
# (Only works when you have /proc/acpi/processor/CPU*/throttling.)
#
CONTROL_CPU_THROTTLING=0


#
# Legal values are "maximum" for the maximum (slowest) throttling level,
# "minimum" for minimum (fastest) throttling level, "medium" for a value
# somewhere in the middle (this is usually 50% for P4s), or any value listed
# in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum":
# this may be _very_ slow (in fact, with P4s it slows down the processor
# by a factor 8).
#
BATT_CPU_THROTTLING=medium
LM_AC_CPU_THROTTLING=medium
NOLM_AC_CPU_THROTTLING=minimum



###############################################################################
# Syslog configuration control
# ----------------------------
# 
# Syslog daemons have a tendency to sync their log files when entries are
# written to them. This causes disks to spin up, which is not very nice when
# you're trying to save power. The syslog.conf can be tweaked to *not* sync
# a given file, by prepending the log file name with a dash, like this:
#
# 	mail.*		-/var/log/mail/mail.log
#
# Using the following options, you can let laptop mode switch between
# different syslog configurations depending on whether you are working on
# battery or on AC power. To set this up, start by configuring these options
# for your syslog daemon, and then run lm-syslog-setup to create the various
# files. Then edit the laptop mode-specific syslog configuration files to
# remove the syncs only when laptop mode is active.
###############################################################################


#
# Should laptop mode tools control which syslog.conf should be used?
#
CONTROL_SYSLOG_CONF=1


#
# Laptop mode tools controls syslog.conf by replacing /etc/syslog.conf (or
# whatever you specify in SYSLOG_CONF) by a link to the files configured here.
# NOTE: these files are NOT created by default, and if they do not
# exist this feature will not work. You can run the script
# /usr/sbin/lm-syslog-setup to set things up.
#
LM_AC_SYSLOG_CONF=/etc/syslog-on-ac-with-lm.conf
NOLM_AC_SYSLOG_CONF=/etc/syslog-on-ac-without-lm.conf
BATT_SYSLOG_CONF=/etc/syslog-on-battery.conf


#
# Signal this program when syslog.conf has been replaced.
#
SYSLOG_CONF_SIGNAL_PROGRAM=syslogd


#
# This is the syslog configuration file that should be replaced by a link to
# the other files.
#
SYSLOG_CONF=/etc/syslog.conf



###############################################################################
# X display settings
# ------------------
#
# Using these settings, you can let laptop mode tools control the X display
# standby timeouts.
#
# This requires that you have installed the "xset" utility. It is part of the
# X.org server distribution and included in the package xorg-server-utils.
#
# The X settings are not automatically applied on login, and this is
# impossible fix for the user, since laptop mode tools must operate as root.
# Therefore, it is recommended to add the following line to /etc/X11/Xsession
# as well:
#
#   /usr/sbin/laptop_mode force
#
###############################################################################


#
# Should laptop mode tools control DPMS standby settings for X displays?
#
CONTROL_DPMS_STANDBY=0


#
# These settings specify the standby timeout for the X display,
# in seconds. The suspend and poweroff timeouts are somewhat
# larger values derived from these values.
#
BATT_DPMS_STANDBY=300
LM_AC_DPMS_STANDBY=1200
NOLM_AC_DPMS_STANDBY=1200



###############################################################################
# Terminal settings
# -----------------
#
# Using these settings, you can let laptop mode tools control the terminal
# blanking timeouts. This only works for linux virtual consoles.
#
###############################################################################


#
# Should laptop mode tools control terminal blanking settings?
#
CONTROL_TERMINAL=0


#
# Terminal device files that should be affected. (One terminal is enough, this
# affects all consoles. )
#
TERMINALS="/dev/tty1"


#
# These settings specify the blanking and powerdown timeouts. Note that
# the powerdown timeout is counted from the moment the screen is blanked,
# i.e. BLANK_MINUTES=2 and POWERDOWN_MINUTES=5 means the screen powers
# down after 7 minutes of inactivity. The range for all these settings is
# 1 to 60 minutes, or 0 to disable.
#
BATT_TERMINAL_BLANK_MINUTES=1
BATT_TERMINAL_POWERDOWN_MINUTES=2
LM_AC_TERMINAL_BLANK_MINUTES=1 #10
LM_AC_TERMINAL_POWERDOWN_MINUTES=2 #10
NOLM_AC_TERMINAL_BLANK_MINUTES=10
NOLM_AC_TERMINAL_POWERDOWN_MINUTES=50


###############################################################################
# LCD brightness settings
# -----------------------
#
# Using these settings, you can make laptop mode tools automatically adjust
# your LCD's brightness settings. The settings are extremely simple -- they
# only allow for the execution of a command, nothing more. The reason for this
# is that LCD brightness settings are very different between laptop vendors.
#
# Suggestions for commands:
#
#  * If your system has the file "/proc/acpi/video/VID/LCD/brightness" (VID may
#    be VID1 or similar), use this file as BRIGHTNESS_OUTPUT, and use
#    the command "echo <value>". The possible values can be listed using the
#    command:
#
#       cat /proc/acpi/video/VID/LCD/brightness
#
#  * If you have a file /sys/class/backlight/.../brightness, then you can use
#    that file as BRIGHTNESS_OUTPUT, and the command "echo <value>".
#
#    As far as I understand it the values are between 0 and
#    the value contained in the file /sys/class/backlight/.../max_brightness.
#
#  * For Toshiba laptops, use the command "toshset" with the -lcd or -inten
#    command. Read the toshset(1) manual page for more information on the
#    parameters for this command. If you use this command, set
#    BRIGHTNESS_OUTPUT to "/dev/null".
#
###############################################################################


#
# Should laptop mode tools control LCD brightness?
#
CONTROL_BRIGHTNESS=0


#
# Commands to execute to set the brightness on your LCD
#
BATT_BRIGHTNESS_COMMAND="echo [value]"
LM_AC_BRIGHTNESS_COMMAND="echo [value]"
NOLM_AC_BRIGHTNESS_COMMAND="echo [value]"
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD/brightness"


###############################################################################
# Auto-hibernation settings
# -------------------------
#
# Using these settings, you can make laptop mode tools automatically put your
# computer into hibernation when the battery level goes critically low.
#
# This feature only works on ACPI, and only works on computers whose batteries
# give off battery events often enough.
###############################################################################


#
# Should laptop mode tools perform auto-hibernation?
#
ENABLE_AUTO_HIBERNATION=0


#
# The hibernation command that is to be executed when auto-hibernation
# is triggered.
#
HIBERNATE_COMMAND=/usr/sbin/hibernate


#
# Auto-hibernation battery level threshold, in percentage of the battery's
# total capacity.
#
AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=2


#
# Enable this to auto-hibernate if the battery reports that its level is
# "critical".
#
AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1



###############################################################################
# Start/Stop Programs settings
# ----------------------------
#
# Laptop mode tools can automatically start and stop programs when entering
# various power modes. Put scripts accepting "start" and "stop" parameters
# in the directories /etc/laptop-mode/batt-stop, batt-start, lm-ac-stop,
# lm-ac-start, nolm-ac-stop and nolm-ac-start. Laptop mode will call the
# scripts in a state-"stop" directory with the "stop" parameter when entering
# the state in question, and it will call the same scripts with the "start"
# parameter when leaving the state. Scripts in a state-"start" directory are
# called with the "start" parameter when the specified state is entered, and
# with the "stop" parameter when the specified state is left.
###############################################################################


#
# Should laptop mode start and stop programs? 
#
CONTROL_START_STOP=1



###############################################################################
# Settings you probably don't want to touch
# -----------------------------------------
#
# It is usually not necessary to change these parameters. They are included
# for completeness' sake.
###############################################################################


#
# Change mount options on partitions in PARTITIONS? You don't really want to
# disable this. If you do, then your hard drives will probably not spin down
# anymore.
#
CONTROL_MOUNT_OPTIONS=1


#
# Dirty synchronous ratio.  At this percentage of dirty pages the process
# which calls write() does its own writeback.
#
LM_DIRTY_RATIO=60
NOLM_DIRTY_RATIO=40


#
# Allowed dirty background ratio, in percent.  Once DIRTY_RATIO has been
# exceeded, the kernel will wake pdflush which will then reduce the amount
# of dirty memory to dirty_background_ratio.  Set this nice and low, so once
# some writeout has commenced, we do a lot of it.
#
LM_DIRTY_BACKGROUND_RATIO=1
NOLM_DIRTY_BACKGROUND_RATIO=10


#
# kernel default settings -- don't touch these unless you know what you're 
# doing.
#
DEF_UPDATE=5
DEF_XFS_AGE_BUFFER=15
DEF_XFS_SYNC_INTERVAL=30
DEF_XFS_BUFD_INTERVAL=1
DEF_MAX_AGE=30


#
# This must be adjusted manually to the value of HZ in the running kernel
# on 2.4, until the XFS people change their 2.4 external interfaces to work in
# centisecs. This can be automated, but it's a work in progress that still
# needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
# external interfaces, and that is currently always set to 100. So you don't
# need to change this on 2.6.
#
XFS_HZ=100


#
# Seconds laptop mode has to to wait after the disk goes idle before doing
# a sync.
#
LM_SECONDS_BEFORE_SYNC=2

Les têtes se parquent des fois, mais beaucoup moins souvent, et sur batterie ça va bien aussi.
Il y a quelques trucs que j'ai changé comme ce qu'à  dit DiCiCat, et d'autres pour mon utilisation:lecture mp3 et vidéos-->stocke dans la ram...

Maintenant ça marche bien!!! big_smile
Si je change des trucs dans l'avenir je vous le dirai.
Ne pas oublier que cette conf n'est pas universelle, il faut essayer de l'adapter à  son matériel et ses habitudes.Pour cela voir le site de Pascal S:
http://linux.die.net/man/8/laptop-mode.conf
En anglais mais très bien fait.
Si ça peut aider, je me suis inspiré de ça aussi pour mieux comprendre laptop-mode:http://linuxfr.org/comments/877478.html#877478

Si quelqu'un a des remarques sur ce que j'ai changé, c'est bienvenue:rien n'est parfait!


Vous êtes débutant / nouveau sous Ubuntu et Gnu/Linux ? Pas de panique !
=> commencez par là

Hors ligne

#430 Le 12/11/2007, à 20:20

the_oliver_2000

Re : Vieillissement prématuré des disques durs de portables

Bonsoir à  tous,

Quand je tape sur mon Dell Inspiron 2200

sudo smartctl -S on /dev/sda

J'obtiens ceci:

smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Enable autosave (clear GLTSD bit) failed

J'ai farfouillé un peu avec Google et il semblerait que cela signifie que je ne peux pas utiliser smartctl avec mon disque. Ma question est donc: comment puis je savoir si j'ai un problème avec le load cycle.
Merci de votre aide.

Hors ligne

#431 Le 13/11/2007, à 09:11

jadoman

Re : Vieillissement prématuré des disques durs de portables

Salut, aucun problème sur gutsy, ils ont du fumer un peux trop, moi le seul problème que j'ai c'est que le pc redémarre chaque fois que je veux l'arrêté:, mais ça c'est de ma faute à  vouloir trop bidouiller:)


Processor Intel dual-core E7400 2.80ghz.
Memory    8 go crucial ddr2 dual-chanel Moniteur 23 pouces ASUS VH236  Résolution 1920*1080 pixels
linuxmint katya 64; ubuntu ultimate 3.4; sabayon; kubuntu 12.04
nvidia  gtx 560 gigabyte

Hors ligne

#432 Le 13/11/2007, à 09:54

Soldado

Re : Vieillissement prématuré des disques durs de portables

Chez moi, pour les changements dans le fichier de conf /etc/laptop-mode/laptop-mode.conf  j'ai besoin de reboot pour qu'il soient pris en compte un stop/start ne suffit pas.
Maintenant ça semble ok pour la partie batterie (0.27 load cycle à  la minute).
Reste à  tester sur secteur.
Voici pour le moment les variables qui ont changées par rapport au fichier originale :

soldado@Forte:~$ cat /etc/laptop-mode/laptop-mode.conf | grep -v ^# | grep -v ^$ | grep "#"
ENABLE_LAPTOP_MODE_ON_AC=1 #0
LM_BATT_MAX_LOST_WORK_SECONDS=1200 #600
LM_AC_MAX_LOST_WORK_SECONDS=1200 #360
LM_AC_HD_IDLE_TIMEOUT_SECONDS=1800 #20
BATT_HD_POWERMGMT=190 #1
LM_AC_HD_POWERMGMT=254 #255
NOLM_AC_HD_POWERMGMT=254 #255 
CONTROL_HD_WRITECACHE=1 #0
LM_HD_WRITECACHE=1 #0
CONTROL_SYSLOG_CONF=1 #0

J'espère que je n'aurrais pas de pb de surchauffe tongue


Kubuntu 12.04 32Bits Asus A6

Hors ligne

#433 Le 13/11/2007, à 12:15

Soldado

Re : Vieillissement prématuré des disques durs de portables

Pour info global disque dur
[url]http://www.commentcamarche.net/pc/disque.php3


Kubuntu 12.04 32Bits Asus A6

Hors ligne

#434 Le 14/11/2007, à 19:55

spectre

Re : Vieillissement prématuré des disques durs de portables

bonjour alors j'ai un probleme , avec un portable msi, lorsque je regarde des films il saute, j'ai l'impreession que c'est quand il parque les tetes. sinon sous xp pas de ce probleme. demain j'essaye les manip mais dans la dernier eoptimisation de dicidat je comprend pas .

sinon je l'utilise principalement sur secteur.
si vous avez des idees, je suis preneur.
merci

au fait comment vous faites pour la video et le son pour mettre dans la ram?

Dernière modification par spectre (Le 14/11/2007, à 20:10)

Hors ligne

#435 Le 14/11/2007, à 20:41

Link31

Re : Vieillissement prématuré des disques durs de portables

spectre a écrit :

au fait comment vous faites pour la video et le son pour mettre dans la ram?

C'est le laptop-mode qui s'occupe de gérer le readahead. Il suffit de l'activer le laptop-mode si ce n'est pas déjà  fait.

Dernière modification par Link31 (Le 14/11/2007, à 20:42)

Hors ligne

#436 Le 14/11/2007, à 20:50

spectre

Re : Vieillissement prématuré des disques durs de portables

merci pour ta reponse je vais essayer en esperant que le films arrete de sauter  quand le dur parque les tetes.

Hors ligne

#437 Le 20/11/2007, à 12:58

DiCiCat

Re : Vieillissement prématuré des disques durs de portables

La vraie question est : si il n'y à  plus de claquement, il y a plus de problèmes ?

Pas forcement, il faut voir l'évolution du Load_Cycle_Count dans le temps.

Si ton problème persiste, regarde les posts page 14/15 de ce topic, il y as toute la procédure pour installer et paramétrer laptop-mode sur debian

Dernière modification par DiCiCat (Le 20/11/2007, à 13:00)

Hors ligne

#438 Le 20/11/2007, à 13:07

nknico

Re : Vieillissement prématuré des disques durs de portables

Je viens de me pencher sur ce problème...

Dans mon cas le laptop-mode est désativé

nico@nico-laptop:~$ less /etc/default/acpi-support |grep LAPTOP
ENABLE_LAPTOP_MODE=false

Pourtant le nombre de parcage est hallucinant :

nico@nico-laptop:~$ sudo smartctl -a /dev/sda|grep Load_Cycle
193 Load_Cycle_Count        0x0032   083   083   000    Old_age   Always       -       175253

et augmente à  vue d'oeil !!

En passant la commande

nico@nico-laptop:~$ sudo hdparm -B 250 /dev/sda

J'obtiens :

nico@nico-laptop:~$ sudo smartctl -a /dev/sda|grep Load_Cycle
193 Load_Cycle_Count        0x0032   083   083   000    Old_age   Always       -       175390

Et la valeur reste stable en observant sur quelques minutes, reste à  voir au bout de plusieurs heures comment ça évolue.

Si ça continue d'augmenter je dois essayer d'augmenter  la valeur encore un peu ???

Dernière modification par nknico (Le 20/11/2007, à 13:20)


Nico

Hors ligne

#439 Le 20/11/2007, à 13:40

philpep-tlse

Re : Vieillissement prématuré des disques durs de portables

DiCiCat a écrit :

La vraie question est : si il n'y à  plus de claquement, il y a plus de problèmes ?

Pas forcement, il faut voir l'évolution du Load_Cycle_Count dans le temps.

Si ton problème persiste, regarde les posts page 14/15 de ce topic, il y as toute la procédure pour installer et paramétrer laptop-mode sur debian

OK, j'ai bloqué le désastre avec

hdparm -B 254 /dev/hda

car j'étais à  au moins 3 cycle/minutes
et là  depuis 5 minutes ça n'a pas bougé

Je teste la méthode de DiCiCat page 14

effrayant tout ça, 1/3 de vie de mon disque dur flinguée en 1 an ....

Il faudrais prévenir la communauté et surtout que les dev nous pondent quelque chose au plus vite...


le "lol" est aux boulets ce que le ";" est aux programmeurs
blog | Wiki Fvwm | Essayez le Window Manager From Scatch | Topic WMFS

Hors ligne

#440 Le 20/11/2007, à 14:03

LeSmurf

Re : Vieillissement prématuré des disques durs de portables

philpep-tlse a écrit :

OK, j'ai bloqué le désastre avec

hdparm -B 254 /dev/hda

car j'étais à  au moins 3 cycle/minutes
et là  depuis 5 minutes ça n'a pas bougé

Attention, il se peut qu'il ne bouge plus du tout, y compris à  l'extinction et au rallumage.

philpep-tlse a écrit :

effrayant tout ça, 1/3 de vie de mon disque dur flinguée en 1 an ....

De même lol

philpep-tlse a écrit :

Il faudrais prévenir la communauté et surtout que les dev nous pondent quelque chose au plus vite...

Déjà  fait  : https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695
... mais l'anomalie reste à  Wishlist.

Dernière modification par LeSmurf (Le 20/11/2007, à 14:04)

Hors ligne

#441 Le 20/11/2007, à 15:25

SgtGarcia

Re : Vieillissement prématuré des disques durs de portables

Apparemment j'avais le problème sur mon portable. Mon premier réflexe en lisant les premiers posts a été de virer laptop-mode (puisque c'était lui le coupable). Mais je me suis rendu compte que ça ne changeait rien car j'entendais le clac même branché sur le secteur. Et de toutes façon, par défaut laptop-mode n'était pas activé

En lisant les posts de ce forum et de launchpad, j'ai fini par comprendre que ce n'était pas la bonne solution. Et du coup j'ai réinstallé, configuré (https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695/comments/63) et activé laptop-mode.

A présent je ne vois plus le Load_Cycle augmenter de façon inquiétante. Avec toute la désinformation qu'il y eu sur le sujet je ne suis pas sûr d'avoir fait ce qu'il fallait. Merci donc à marc31 (et autres) d'essayer de mettre tout ça au clair.

Hors ligne

#442 Le 20/11/2007, à 15:31

DiCiCat

Re : Vieillissement prématuré des disques durs de portables

si, tu as fait ce qu'il faut
Utiliser laptop-mode en le configurant correctement si tu as le probleme.

Hors ligne

#443 Le 20/11/2007, à 16:08

marc31

Re : Vieillissement prématuré des disques durs de portables

pour information, j'avais un portable concerné par la chose, puisque j'ai Load_Cycle_Count >>> Power_Cycle_Count ; mais sans rien toucher, je n'ai plus d'évolution sur Gutsy. D'autre part ce ne doit pas être Windows qui m'affecte la valeur Load_Cycle_Count l'ayant vérifié.

D'autre part, je n'entends plus ce bruit ce parquage de tete alors qu'avec Feisty, c'était nettement audible.

voila pour mon expérience perso ; je ne sais pas si certains paquets logiciels ont évolué dans le bon sens. A moins que j'ai configuré le mode qui va bien, mais je m'en souviens pas spécialement ... :-(

PS: en fait j'ai toujours le problème ! allez savoir pourquoi il n'y etais plus pendant un moment. peut-etre que la sortie du mode hibernation y serait pour quelque chose ...

Dernière modification par marc31 (Le 21/11/2007, à 09:45)


ubuntu-gutsy / ATI RC410 [Radeon Xpress 200] + Nvidia GeForce 7300 SE / wireless RaLink RT2500 / toulouse-ouest / xmpp://marc.quinton@jabber.org

Hors ligne

#444 Le 20/11/2007, à 17:17

nknico

Re : Vieillissement prématuré des disques durs de portables

J'ai l'impression d'être transparent des fois....


Nico

Hors ligne

#445 Le 20/11/2007, à 17:23

slasher_fun

Re : Vieillissement prématuré des disques durs de portables

Si un disque dur est prévu pour supporter 600 000 cycles, c'est pas pour que ça n'augmente pas...

Hors ligne

#446 Le 20/11/2007, à 17:31

nknico

Re : Vieillissement prématuré des disques durs de portables

Nan mais je sais bien !!

Là  ça augmente à  raison de 3-4 toutes les 10 mins ...à‡a ma l'aire d'être trop.


Nico

Hors ligne

#447 Le 20/11/2007, à 17:33

slasher_fun

Re : Vieillissement prématuré des disques durs de portables

3 toutes les 10 min = 18 par heure = 4 ans de durée de vie minimale, ça me parait correct comme augmentation smile

Hors ligne

#448 Le 20/11/2007, à 19:14

teke

Re : Vieillissement prématuré des disques durs de portables

bonjour,

Un grand merci pour tout le travail que vous avez fait !!!

Je me suis permit une petite correction sur la page de doc, je ne suis pas spécialiste en la matière... loin s'en faut... mais 7200 était indiqué pour vingts minutes, j'ai ramené à  1200...

J'aurais une question à  vous poser. La section "diagnostique" de la page m'est totalement impénétrable... donc par la commande j'obtiens :

sudo smartctl -a `mount | grep '/ ' | cut -d' ' -f1 | sed -e 's#[0-9]##'` | grep 'Cycle_Count'
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       249
193 Load_Cycle_Count        0x0012   094   094   000    Old_age   Always       -       62251

ok, mais quel sont les chiffres à  contrà´ler ??? Si j'ai bien compris c'est ceux qui sont tout au bout de la ligne ? c'est bien ça ?
D'autre part, le Power_Cycle_Count compte le nombre de redémarage de la machine ? ci c'est le cas mon 249 me semble totalement erroné car ma machine à  63 jour ouvré derrière elle, que je la redémare au minimum 13 fois par jour (une à  chaque leçon plus à  chaque changement de lieu et de salle) sans compter les we et les reboot à  la maison donc elle devrait avoir un strict minimum de 63*13=819, mais ça c'est vraiment compté bas... alors je comprend pas trop...

Merci encore pour votre travail, et d'avance pour vos réponses.

ps.

slasher-fun a écrit :

3 toutes les 10 min = 18 par heure = 4 ans de durée de vie minimale, ça me parait correct comme augmentation smile

Mon dernier portable m'a fait cinq ans à  raison de 10 à  12 heures d'usages journalier. c'est maintenant ma femme qui l'a pour sa formation, et j'attends bien qu'il tienne encore trois ou quatre ans... au pris d'une tel machine (3900 CHF à  l'époque) c'est un strict minimum non ?!?!?!?

SI je compte bien (mais je crois que ce n'est pas le cas) si j'ai 62'251 cycle en 63 jours, cela veut dire que mon DD ne tiendra même pas deux ans ???? Bon j'ai fait les manÅ“uvres indiquées dans la doc, on verra si l'hémorragie stoppe là ...

Pour suivre cela de près, j'ai introduit dans ~/.bash_aliases :

alias mydisk="date >> ~/disk.log && sudo smartctl -a `mount | grep '/ ' | cut -d' ' -f1 | sed -e 's#[0-9]##'` | egrep \(Load_Cycle_Count\|Power_Cycle    _Count\) >> ~/disk.log && tail ~/disk.log"

Ainsi, un petit "mydisk" dans une console logue le résulta et donne les dernière comparaison.

Dernière modification par teke (Le 20/11/2007, à 19:28)

#449 Le 20/11/2007, à 20:08

compte supprimé

Re : Vieillissement prématuré des disques durs de portables

Bonsoir,

Je pense qu'il faut tout diviser par Power_On_Hours, converti en minutes. Là  on voit mieux si ça a des chances d'être une valeur fiable (normale ou excessive) ou bien une valeur aberrante...

cf un exemple :
http://forum.ubuntu-fr.org/viewtopic.php?pid=1337765#p1337765

A+

Dernière modification par faustus (Le 20/11/2007, à 20:09)

#450 Le 20/11/2007, à 20:24

slasher_fun

Re : Vieillissement prématuré des disques durs de portables

Quand je dis 4 ans, c'est à raison de 24h d'allumage par jour. Donc si tu l'utilises 12h par jour, on peut monter à 8 ans minimum smile

Hors ligne