hdparm ( click clack hard-disk hdd disable APM)

Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    pebibyte
    Registrato
    Jun 2005
    Messaggi
    4,371

    Predefinito hdparm ( click clack hard-disk hdd disable APM)

    Sui portatili linux setta un APM (advanced power menagement) troppo aggressivo, con il risultato che di continuo si sente il rumore delle testine andare a fondo corsa, il cosi' detto click clack. Sospensione , che durante un normale utilizzo puo' creare dei rallentamenti, o parziali bloccaggi.
    Per risolvere si puo' installare un applicativo (che in moltissime distro e' preinstallato):
    hdparm
    L'utilizzo:
    da console (root) , digitare "hdparm -B 255 /dev/nome-del-device"
    L'opzione 255 disattiva completamente l'APM.
    Il programma funziona solo su ATA,SATA,SCSI ... quindi non tentate su drive USB.
    setting Advanced Power Management level to disabled
    HDIO_DRIVE_CMD failed: Invalid exchange
    HDIO_DRIVE_CMD(identify) failed: Invalid exchange

    Ci sono diverse soluzioni per tutte le distro, questa e' la piu' veloce .
    Linux sui portatili brucia gli hard disk | HTML.it forum

    Qui per sapere tutto del vostro HDD:
    GSmartControl

    Ultima modifica di giostark : 10-01-2010 a 14:55

  2. #2
    pebibyte
    Registrato
    Jun 2005
    Messaggi
    4,371

    Predefinito

    Link diretto ad una guida su opensuse:
    Disk Power Management - openSUSE


    Disk Power Management Configuration

    Create a configuration file to management disk power management:
    /etc/pm/config.d/disk
    # Configure disk power management settings to ensure both
    # long disk life and good power management.
    #
    # Space delimited list of disk devices this affects.
    #
    DEVICES_DISK_PM_NAMES="/dev/sda"
    #
    #
    # Power management modes
    #
    # Powersave mode off
    # Disable APM and spin-down
    #
    DEVICES_DISK_PM_POWERSAVE_OFF="hdparm -q -B 255 -q -S 0"
    #
    # Powersave mode on
    # Enable APM to conservative 200 and set spin-down for 21 minutes
    #
    DEVICES_DISK_PM_POWERSAVE_ON="hdparm -q -B 200 -q -S 252"
    Note: Your laptop drive can get hot with no power management if you leave your laptop plugged in all the time. You may want to set DEVICES_DISK_PM_POWERSAVE_OFF to a large value, but not disabled completely. If you were going to do this, you might use something like: hdparm -q -B 254 -q -S 242
    This means set the least power management, but not off, and spin down the disk after an hour.
    Note: Some drives do not support the setting of -B 255 to switch off power management, i.e. this setting has no effect at all. (This would be the case if the Load_Cycle_Count increases despite this setting). For those drives -B 254 is the 'next best thing'.
    Note: Also, some harddisks do not allow a lot of variability in the setting, e.g. they default to 128 for any value lower than 254. In those cases, you might want to include -B 254 (or 255), even for the POWERSAVE_ON setting. You can find out if this is the case by:
    hdparm -B 252 drive (e.g. /dev/sda)
    hdparm -I | grep 'Advanced power management'
    Then check whether the setting corresponds to what you set it at.
    Disk Power Management Script

    Then create the power management script:
    /etc/pm/power.d/disk
    #!/bin/bash
    . /usr/lib/pm-utils/functions
    . /etc/pm/config.d/disk

    if test -z "${DEVICES_DISK_PM_NAMES}"; then
    exit 1
    fi

    case "$1" in
    true)
    echo "**enabled pm for harddisk"
    for DISK_NAME in `echo ${DEVICES_DISK_PM_NAMES}`; do
    ${DEVICES_DISK_PM_POWERSAVE_ON} ${DISK_NAME}
    done ;;
    false)
    echo "**disabled pm for harddisk"
    for DISK_NAME in `echo ${DEVICES_DISK_PM_NAMES}`; do
    ${DEVICES_DISK_PM_POWERSAVE_OFF} ${DISK_NAME}
    done ;;
    esac
    Make the script executable.
    chmod +x /etc/pm/power.d/disk
    Test the script

    You can then test the set up by using the following commands:
    pm-powersave true
    hdparm -I /dev/sda | grep 'Advanced Power'
    An asterisk next to 'Advanced Power Management feature set' means its enabled. Now try this:
    pm-powersave false
    hdparm -I /dev/sda | grep 'Advanced Power'
    No asterisk means it's disabled.
    These settings are immediately accessible to kpowersave or gnome-power-manager and are used by default when plugging in your power adapter or removing it on a laptop.

  3. #3
    Super Moderatore L'avatar di frakka
    Registrato
    May 2001
    Località
    Casalecchio di Reno (Bo)
    Età
    43
    Messaggi
    23,379
    configurazione

    Predefinito

    Questo me lo segno, potrebbe servirmi!!

    Questa è la storia di 4 persone chiamate Ognuno, Qualcuno, Ciascuno e Nessuno. C'era un lavoro importante da fare e Ognuno era sicuro che Qualcuno lo avrebbe fatto. Ciascuno poteva farlo, ma Nessuno lo fece, Qualcuno si arrabbiò perché era il lavoro di Ognuno. Ognuno pensò che Ciascuno potesse farlo, ma Ognuno capì che Nessuno l'avrebbe fatto. Finì che Ognuno incolpò Qualcuno perché Nessuno fece ciò che Ciascuno avrebbe potuto fare.

Informazioni Thread

Users Browsing this Thread

Ci sono attualmente 1 utenti che stanno visualizzando questa discussione. (0 utenti e 1 ospiti)

Discussioni simili

  1. Hard Disk 1.5 Tb o 2 Tb?
    By Thor86 in forum -= Periferiche di memorizzazione =-
    Risposte: 3
    Ultimo messaggio: 27-04-2011, 14:23
  2. Consiglio Hard Disk iMac o Hard Disk in Rete
    By martino89 in forum -= Periferiche di memorizzazione =-
    Risposte: 5
    Ultimo messaggio: 06-03-2011, 11:51
  3. Hard disk esterno 500 GB HDD TARGA
    By AlexCyber in forum -= Periferiche di memorizzazione =-
    Risposte: 1
    Ultimo messaggio: 25-02-2009, 02:27
  4. Testati 3 Solid State Disk e 4 Hard Disk da 2.5" - [NEWS]
    By stoner in forum -= Periferiche di memorizzazione =-
    Risposte: 2
    Ultimo messaggio: 16-07-2008, 22:13
  5. HDD Generic ide disk type47???
    By xadoom in forum -= Hardware generico =-
    Risposte: 52
    Ultimo messaggio: 29-06-2001, 08:45

Tags

Regole d'invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
nexthardware.com - © 2002-2022