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.

#376 Le 09/11/2007, à 13:34

utodeb

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

Bonjour,
Pour ce qui sont intéressé par ce problème.
J'ai trouvé de la doc concernant les DD hitachi http://www.hitachigst.com/tech/techlib. … D0005A2F74
Celle-ci m'a confirmer le nombre des 600000 load cycle avant la mort prochaine de mon DD hmm
Bon pour l'instant j'ai un peu de marge

Local Time is:    Fri Nov  9 13:07:18 2007 CET

193 Load_Cycle_Count        0x0012   098   098   000    Old_age   Always       -       22553

Sinon si vous souhaiter en savoir plus voila le lien sur le bug https://launchpad.net/ubuntu/+source/ac … +bug/59695. Si jamais vous avez la motive de tout lire mais je vous préviens c'est long...
Sinon un monsieur très bien vous en a fait un résumé en anglais certes mais bon...
https://wiki.ubuntu.com/DanielHahler/Bug59695
D'après les recherche que j'ai pu faire il y a différentes méthodes comme celle de DiCiCat expliqué précédemment dans ce post ou encore celle de gronk34t http://linuxfr.org/comments/877478.html#877478 qui n'a pas l'air trés différentes... (un avis peut etre DiCicat ?)
Voila je voulais juste partager les recherches que j'ai faite sur ce problème.
Perso je vais appliquer une méthode, faire des test une journée et ainsi de suite pour enfin adopter la mieux

Voila bon courage si vous êtes encore concerné par le problème wink


Smile today tomorrow will be worse
Simple comme Ubuntu n°2 10.04 LTS

Hors ligne

#377 Le 09/11/2007, à 13:57

NoursNours

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

Personnellement j'ai remarqué qu'au bout de 15 minutes, mon Load Cycle Count ne montait pas, sur batterie, puis sur secteur, après une attente d'environ 10 minutes, il s'est incrémenté de 3 points.

Donc en gros un Load qui monte de 3 toutes les 20 minutes à peu près ça me parait vraiment pas énorme.

Oui mais voilà, mon PC a 1 an et 3 mois et il a un Load Cycle de 81 000 déjà, donc je trouve ça légèrement suspect. De plus, même si dans la continuité le compte n'augmente pas beaucoup, il y a des phases contraires où il se déchaine et prend environ 1 point toutes les 2 ou 3 secondes...

Donc je ne sais pas trop comment réagir face au problème...


Commandes de base / El Board | Mon blog perso / Script Shell
Dell Inspiron 6400, Intel Core Duo T2400 (1.83Ghz), 2 Go de RAM à 533Mhz
Carte graphique ATI Mobility Radeon X1400, HD Hitachi 120 Go.
Windows XP MCE / Ubuntu Gutsy (Dual Boot)

Hors ligne

#378 Le 09/11/2007, à 14:03

Astier

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

Personnellement sur un ACER Aspire 1692 de plus de deux ans, j'ai un Load Cycle Count de 64296 donc ça va ; par contre il semblerait que l'augmentation soit assez aléatoire chez moi aussi.

Hors ligne

#379 Le 09/11/2007, à 14:13

DiCiCat

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

http://linuxfr.org/comments/877478.html#877478
C'est exactement la même chose, mais avec d'autres réglages choisi pour laptop-mode.conf, et sans détailler comment optimiser le système de fichiers ou les services qui tournent.
Mais c'est la même chose que ce que j'ai expliqué dans mes posts.

Il n'y as pas de meilleure méthode, l'avantage de passer par laptop-mode, c'est qu'une fois qu'on a tout régler, une simple modification de laptop-mode.conf suffit pour changer les réglages. Tout est centralisé au même endroit, dans le même fichier et tu peut obtenir tous les effets que tu veut. Plus ou moins agressif, activé ou désactivé, etc..

Le jour où tu ne veut plus en entendre parler, un purge de laptop-mode-tools et hop, plus de traces.

Toutes les autres méthodes demandes de modifier les paramètres par défaut de hdparm lors du chargement du système (quand on modifie hdparm.conf au boot pour tous les disques, ca me parais assez radicale) et tu ne peut que stopper la gestion d'énergie, pas la contrôler comme on peut le faire avec laptop-mode.

Bref en fait tu n'a que deux options. Utiliser laptop-mode et le configurer pour gerer l'économie d'énergie des disques, ou stopper l'économie d'énergie des disques via laptop-mode ou la modification directe de hdparm.

Franchement, je préfère de loin une méthode universelle et propre qu'on peut supprimer ou modifier facilement.

Hors ligne

#380 Le 09/11/2007, à 14:13

utodeb

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

Bonjour,
Je ne suis absolument pas spécialiste du problème... mais en même temps ça fais deux jours que je suis sur internet à lire des liens de liens qui parle de cela
Pour la variabilité de ton load cycle cela me parait normal, j'imagine que ca dépend de ce que tu est en train de faire ... Il serait plus intéressant à mon humble avis de faire par exemple un relevé toutes les heures (par exemple) en se servant normalement de son ordi durant une journée est de faire une moyenne. 
Pour la valeur de ton load cycle (81000) moi je serais pluton satisfait (le mien est de 20000 en 3 mois avec seulement 3 semaines de ubuntu donc je ne connaît pas le coupable(de toute façon Ubuntu c'est trop bien)).
En effet si ton dd est prevu comme le mien pour faire environ 600000 LC, il va durer encore ... trés longtemps (environ au tracto 6 ans).
Sinon je peut pas t'en dire plus sans plus d'info comme les modifications que tu as faites, laptop-mode activé ou pas etc etc...

Donc en résumé je serais à ta place je ne m'inquiéterais pas et je reprècise que je suis un débutant

++


Smile today tomorrow will be worse
Simple comme Ubuntu n°2 10.04 LTS

Hors ligne

#381 Le 09/11/2007, à 14:15

fde

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

Bonjour!
J'ai suivi la config que tu proposes, DiCiCat, et je n'ai pas encore testé ce que ça donnait sur batterie mais chez moi, le nombre de cycle augmente beaucoup même sur secteur!

Devrais-je rajouter l'option

ENABLE_LAPTOP_MODE_ON_AC=1

dans le fichier de config ou existe-t-il une solution plus jolie?

EDIT : en plus, je ne sais pas encore si les choses sont arrangées pour le travail sur batterie, donc peut-être cette solution ne fonctionnerait-elle pas de tte façon...

Dernière modification par fde (Le 09/11/2007, à 14:16)

Hors ligne

#382 Le 09/11/2007, à 14:19

DiCiCat

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

j'ai donner toutes les infos pour gerer laptop-mode, ca marche partout, sur toutes les distributions, c'est pas nouveau et ca existe depuis des années.
Maintenant, vous l'utilisez ou pas, vous le réglez comme vous le sentez, mais ça ne sert a  rien de regarder son cycle_load toutes les heures en attendant une modification d'ubuntu ou de toute autre distrib, ils ne le feront probablement pas.

Dans le tread, vous avez toutes les infos pour gerer le problème comme vous voulez.

Le fichier laptop-mode.conf, il faut le paramétrer avec les valeurs qui vous conviennent à vous, a votre utilisation et a votre machine, c'est quand même pas compliquer de vérifier/modifier 6 valeurs dans un fichier.

@fde
tu a redémarrer ta machine? tu a vérifié que laptop-mode fonctionne? Tu as vérifié ce qui se passe en le laissant sur secteur APRES l'avoir laisser quelques secondes sur batterie? Tu as tout configuré (pas seulement le fichier de config de laptop-mode, mais aussi tout le reste)?

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

Hors ligne

#383 Le 09/11/2007, à 14:23

utodeb

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

Re,
je suis tout à fait d'accord avec toi et c'est la méthode que je vais utilisé. En fait aujourd'hui je l'ai virer et j'en suis à plus de 600 en 2h17 (tiens de l'écrire je trouve ca encore plus affollant) alors que je suis sur secteur.
Donc en ce qui me concerne il faudrait LM soit également actif en étant sur secteur....

#redemarage mais w$ et livecd entre tps
#démarrage
Local Time is:    Fri Nov  9 10:50:00 2007 CET 
193 Load_Cycle_Count        0x0012   098   098   000    Old_age   Always       -       21971 

Local Time is:    Fri Nov  9 11:15:43 2007 CET

193 Load_Cycle_Count        0x0012   098   098   000    Old_age   Always       -       21989


Local Time is:    Fri Nov  9 11:33:37 2007 CET

193 Load_Cycle_Count        0x0012   098   098   000    Old_age   Always       -       22014


Local Time is:    Fri Nov  9 11:52:41 2007 CET

193 Load_Cycle_Count        0x0012   098   098   000    Old_age   Always       -       22139


Local Time is:    Fri Nov  9 12:10:33 2007 CET

193 Load_Cycle_Count        0x0012   098   098   000    Old_age   Always       -       22241


Local Time is:    Fri Nov  9 13:07:18 2007 CET

193 Load_Cycle_Count        0x0012   098   098   000    Old_age   Always       -       22553

Ps : Je te mets mon fichier de relevé résumé de ma matinée juste pour rigoler wink
PS2 : Je referrait pareil avec tes réglages puis avec ceux de gronk34t et puis on verra bien

Advienne que pourra et fais ce que doit


Smile today tomorrow will be worse
Simple comme Ubuntu n°2 10.04 LTS

Hors ligne

#384 Le 09/11/2007, à 14:27

DiCiCat

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

si vous avez simplement recopier MON fichier laptop-mode.conf, je ne l'ai paramétré pour être actif que sur batterie, et il coupe l'économie d'énergie quand je REBRANCHE le secteur. Si je boot sur secteur, j'en sait rien, je ne le fait jamais, donc je n'ai pas activé laptop-mode pour être actif sur secteur.

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

Hors ligne

#385 Le 09/11/2007, à 14:38

Soldado

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

DiCiCat, je vais essyer demain ta méthode de plus elle me semble logique car se déplacer avec un laptop sur secteur c'est short comme vision...
Je ne connais rien dans ce domaine mais l'idée d'avoir un mode PC lorsqu'on est sur secteur et d'avoir un mode portable sans secteur est vraiment ce que je cherchais.

Maintenant il est vrai qu'un voyage de la méthode chez ubuntu pour un patch correctif avec se mode ne serait pas de trop au niveau professionel....

Dans une prochaine version avoir laptop-mod auto activé avec un 3 choix de type de lancement serait cool pour les bleues fraîchement arrivés. Et un plus sur la gestion vis à vis de W....s


Kubuntu 12.04 32Bits Asus A6

Hors ligne

#386 Le 09/11/2007, à 14:41

Soldado

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

J'aimerais pour le fun avoir dans l'invite de connextion une phrase type "Plus que X jours avant la mort de votre Dur".
Je saurais peut-être faire le script (run level 3) pour avoir les infos mais je ne sais pas où mettre cette phrase....


Kubuntu 12.04 32Bits Asus A6

Hors ligne

#387 Le 09/11/2007, à 14:42

fde

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

DiCiCat a écrit :

@fde
tu a redémarrer ta machine? tu a vérifié que laptop-mode fonctionne? Tu as vérifié ce qui se passe en le laissant sur secteur APRES l'avoir laisser quelques secondes sur batterie? Tu as tout configuré (pas seulement le fichier de config de laptop-mode, mais aussi tout le reste)?

Oui, le laptop-mode est activé sur batterie, mais sur secteur le nombre de cycles augmente aussi rapidement. J'ai donc ajouté l'option ENABLE_LAPTOP_MODE_ON_AC=1 dans le fichier de config. Les choses ont l'air de s'être un peu améliorées, mis ce n'est pas encore ça.

Je regarderai plus en détail plus tard.

Hors ligne

#388 Le 09/11/2007, à 14:56

DiCiCat

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

@fde

Dans ce cas il faut que tu joue avec les valeurs suivantes


LM_AC_HD_IDLE_TIMEOUT_SECONDS=20      (augmente ici)
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=60
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200


#
# Should laptop mode tools control the hard drive power management settings?
#
CONTROL_HD_POWERMGMT=0      (si ca ne suffit pas, passe a 1 ici)


#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=0          (et met plutot 128 ou 190 là)
LM_AC_HD_POWERMGMT=255       (et 254 ici pour couper completement la  gestion sur secteur)
NOLM_AC_HD_POWERMGMT=255    (ici aussi 254)


Tout les reglages se font sur ces quelques valeurs.

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

Hors ligne

#389 Le 09/11/2007, à 15:06

fde

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

Merci mon brave! Je ne suis plus à proximité de mon portable pour l'instant, mais je ferai quelques tests dès que ce sera le cas.

Hors ligne

#390 Le 09/11/2007, à 15:48

utodeb

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

@

Soldado a écrit :

Qui d'ubuntu peux confirmer s'il faut ou pas mettre

valeur laptop_mode_enable dans /etc/default/acpi

Je n'ai pas eu besoin de modifie /etc/defaul/acpi pour que laptop-mode soit actif par contre j'ai tapé

sudo /etc/init.d/laptop-mode start

++

Dernière modification par utodeb (Le 09/11/2007, à 15:50)


Smile today tomorrow will be worse
Simple comme Ubuntu n°2 10.04 LTS

Hors ligne

#391 Le 09/11/2007, à 17:47

akira86

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

Salut
je vien de découvrir le problème des dd sous gutsy ... et sa fait peur !!!

mon dd date d'aout et j'ai sa :

sudo smartctl -a /dev/hda | grep Load_Cycle
225 Load_Cycle_Count        0x0012   086   086   000    Old_age   Always       -       148601

la valeur s'incrémente d'environ 1 point par minute ... j'ai pourtant suivis les indiquation de DiCiCat et j'ai modifié mon laptop-mode.conf... j'ai mis des valeur énorme pour ne pas accédé à mon dd ... je l'ai activé dans le fichier de conf de l'acpi ... j'ai mis hdparm -B 255 (mais dans mon laptop-mode.conf) ...

J'ai fais tous ce qui est indiqué, j'ai une légère amélioration mais c'est quand même une incrémentation par minute !!! ...

voici mon laptop-mode.conf :

$ more /etc/laptop-mode/laptop-mode.conf
###############################################################################
#
# 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 #0



###############################################################################
# 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=60000 #600
LM_AC_MAX_LOST_WORK_SECONDS=60000 #360


#
# 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=10000     #3072
NOLM_READAHEAD=10000   #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=20000 #20
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20000 #20
NOLM_HD_IDLE_TIMEOUT_SECONDS=20000 #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=1
BATT_HD_POWERMGMT=255 #1
LM_AC_HD_POWERMGMT=255  #255
NOLM_AC_HD_POWERMGMT=255    #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=1 #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=10
LM_AC_TERMINAL_POWERDOWN_MINUTES=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

quelqu'un aurait-il une idée ?? ai-je loupé une étape ??

Merci d'avance pour vos réponses.


astuce de la console :
tab pour compléter automatiquement le nom d'une commande d'un dossier ou d'un fichier.
clique molette pour recopier une sélection.

Hors ligne

#392 Le 09/11/2007, à 18:10

slasher_fun

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

hdparam -B254 peut être meilleur smile

Hors ligne

#393 Le 09/11/2007, à 18:26

The Marauder

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

Gros soucis avec smartmoontool et Feisty, lors de mon passage a Gutsy, une fois installé smartctl m'affiche trois cycles en environs deux trois heures. Il me semble que ce doit être bon.

( Compac HP nx6310 Kubuntu 7.10 Gutsy)


Un prog sans ses Source c'est comme une plage sans le sable.
Desktop Kubuntu 10.04 - netbook Kubuntu 10.04 - Serveur Debian Lenny
Commandes a  ne pas faire

Hors ligne

#394 Le 09/11/2007, à 18:39

slasher_fun

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

1 cycle par heure = 68 ans de fonctionnement, donc c'est bon smile

Hors ligne

#395 Le 09/11/2007, à 18:58

DiCiCat

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

tes valeurs sont trop hautes

LM_AC_HD_IDLE_TIMEOUT_SECONDS=20000 #20
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20000 #20
NOLM_HD_IDLE_TIMEOUT_SECONDS=20000 #7200

Laisse plutot 7200, hdparm n'accepte pas n'importe quelle valeur et à  mon avis ta valeur de 20000 est hors champs. 7200 c'est deja 2H00, c'est plus que largement suffisant (tu laisse souvent ton HDD sans rien faire pendant 2H00 toi).

CONTROL_HD_POWERMGMT=1 #0

Ne passe cette valeur a 1 QUE si les lignes au dessus ne suffisent pas


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

Préfère une valeur de 190 à  254, il semble même que certain disque n'accepte pas des valeurs aussi haute, essaye 128 si cela ne va pas.

Enfin assure toi que laptop-mode fontionne

Maintenant 1 par minute c'est aggressif, mais ca reste viable (tu es au maximum qu'on peut accepter, ça laisse 10 000 heures de fonctionnement)

Dernière modification par DiCiCat (Le 09/11/2007, à 19:02)

Hors ligne

#396 Le 09/11/2007, à 19:10

KnarNantais

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

Bonsoir,

Beuuuuurk !!!!!!!!!!:rolleyes::rolleyes::rolleyes:

Pour ce qui est des postes de travail, j'en suis à  3 mises à  jour gutsy sur des portables différents smile, 3 mises à  jour sur des postes fixes wink , 1 installation complète smile et je n'ai pas eu 1 problème big_smile:D:D. J'ai juste eu un problème sur un serveur que j'ai voulu installer avec ubuntu server gutsy, je n'ai pas réussi à  démarrer shorewall. J'ai donc mis en place une debian etch (les doigts dans le nez big_smile ).

Dernière modification par KnarNantais (Le 09/11/2007, à 19:11)


------------------------------------------------------------------
Kubuntu 11.10 64 bits - KDE 4.7.1 - Fixe   Montage perso - Core2 Duo E8400 - P5Q Deluxe + 4Go - Nvidia Gforce 8400 GS - 2x500 Go
   ""         11.10 64 bits                     - Portable : ASUS  K72JT-TY185V core i3 380M + 4 Go - AMD Radeon HD 6370M - 500 Go

Hors ligne

#397 Le 09/11/2007, à 19:21

franco12

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

KnarNantais a écrit :

Bonsoir,

Beuuuuurk !!!!!!!!!!:rolleyes::rolleyes::rolleyes:

Pour ce qui est des postes de travail, j'en suis à  3 mises à  jour gutsy sur des portables différents smile, 3 mises à  jour sur des postes fixes wink , 1 installation complète smile et je n'ai pas eu 1 problème big_smile:D:D. J'ai juste eu un problème sur un serveur que j'ai voulu installer avec ubuntu server gutsy, je n'ai pas réussi à  démarrer shorewall. J'ai donc mis en place une debian etch (les doigts dans le nez big_smile ).

WHHAAAOUUUU t'es super fort!! Pourrais-je avoir un autographe?

plus sérieusement, ne lis pas uniquement le premier post de ce topic..

Dernière modification par franco12 (Le 09/11/2007, à 19:22)


"La route est (peut-être un peu) longue, mais la voie est (plus que jamais) libre" - Citation de Framasoft modifiée
Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org
Mon jabber : francois_@jabber.fr

Hors ligne

#398 Le 09/11/2007, à 22:29

ludo&linux

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

Salut à  tous,
moi, cette commande ne fonctionne pas :
sudo smartctl -a /dev/hda | grep Load_Cycle

je ne comprend pas ! j'ai essayer aussi avec sda


www.ludovicplot.com
Toshiba A100-386 / Feisty fawn 7.10

Hors ligne

#399 Le 09/11/2007, à 22:40

Di@bl@l

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

ludo&linux a écrit :

Salut à  tous,
moi, cette commande ne fonctionne pas :
sudo smartctl -a /dev/hda | grep Load_Cycle

je ne comprend pas ! j'ai essayer aussi avec sda

deux possibilités : t'as installer smartontools ou je sais pas quoi OU t'as un disque dur récent comme moi samsung et ça marche pas enfin moi j'ai pas réussi !

Hors ligne

#400 Le 10/11/2007, à 00:16

akira86

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

Salut ...

j'ai suivis ce que vous m'avais dit ... j'ai diminuer la valeur 255 à 128 ... mais en deux minutes la valeur  Load_Cycle_Count à augmenter de 6 point ...

je vais donc mettre 254 ... j'ai fait quelque autre modif car apparemment mes valeurs été trop haute ...

Voici mon nouveau laptop-mode.conf :

###############################################################################
#
# 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=10


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


###############################################################################
# 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=7200
LM_AC_MAX_LOST_WORK_SECONDS=7200


#
# 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=8192 #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=1
BATT_HD_POWERMGMT=20
LM_AC_HD_POWERMGMT=128 #255
NOLM_AC_HD_POWERMGMT=128 #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=0


#
# 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=1


#
# 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=60
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=10
LM_AC_TERMINAL_POWERDOWN_MINUTES=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

PS : est-ce que sa pourrait être un problème de bios ???


astuce de la console :
tab pour compléter automatiquement le nom d'une commande d'un dossier ou d'un fichier.
clique molette pour recopier une sélection.

Hors ligne