12 votes

Comment savoir si mon ventilateur fonctionne sous Ubuntu ?

Je viens d'acheter un netbook tout neuf et je crains que le ventilateur ne fonctionne pas correctement.

lm-sensors ne détecte pas de ventilateur, je n'entends pas de ventilateur et je ne sens pas d'air sortir de la zone du ventilateur.

Le netbook est un Toshiba Satellite NB10-A flambant neuf. J'ai peur que l'utilisation d'Ubuntu détruise mon netbook :(

La température continue à augmenter, mais je n'entends pas de ventilateur.

Voici la sortie de mes capteurs lm :

acpitz-virtual-0
Adapter: Virtual device
temp1:        +33.0°C  (crit = +78.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +48.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:       +48.0°C  (high = +105.0°C, crit = +105.0°C)

EDIT

Un autre auteur de ce modèle a exprimé des inquiétudes quant au fonctionnement du ventilateur, car il ne pouvait ni le détecter ni l'entendre :

http://mentalnirex.wordpress.com/2014/03/25/linux-and-the-toshiba-nb10/

Sortie du ventilateur fwts :

Résultats générés par fwts : Version V14.03.01 (2014-03-27 02:14:17).

Some of this work - Copyright (c) 1999 - 2014, Intel Corp. All rights reserved.
Some of this work - Copyright (c) 2010 - 2014, Canonical.

This test run on 14/06/14 at 12:45:01 on host Linux juke
3.15.0-031500rc8-generic #201406012235 SMP Mon Jun 2 02:36:11 UTC 2014 x86_64.

Command: "fwts fan".
Running tests: fan.

fan: Simple fan tests.
--------------------------------------------------------------------------------
Test 1 of 2: Test fan status.
Test how many fans there are in the system. Check for the current status of the
fan(s).
PASSED: Test 1, Fan cooling_device0 of type Processor has max cooling state 10
and current cooling state 0.
PASSED: Test 1, Fan cooling_device1 of type Processor has max cooling state 10
and current cooling state 0.

Test 2 of 2: Load system, check CPU fan status.
Test how many fans there are in the system. Check for the current status of the
fan(s).
Loading CPUs for 20 seconds to try and get fan speeds to change.
Fan cooling_device0 current state did not change from value 0 while CPUs were
busy.
Fan cooling_device1 current state did not change from value 0 while CPUs were
busy.

ADVICE: Did not detect any change in the CPU related thermal cooling device
states. It could be that the devices are returning static information back to
the driver and/or the fan speed is automatically being controlled by firmware
using System Management Mode in which case the kernel interfaces being examined
may not work anyway.

================================================================================
2 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0 info only.
================================================================================

2 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0 info only.

Test Failure Summary
================================================================================

Critical failures: NONE

High failures: NONE

Medium failures: NONE

Low failures: NONE

Other failures: NONE

Test           |Pass |Fail |Abort|Warn |Skip |Info |
---------------+-----+-----+-----+-----+-----+-----+
fan            |    2|     |     |     |     |     |
---------------+-----+-----+-----+-----+-----+-----+
Total:         |    2|    0|    0|    0|    0|    0|
---------------+-----+-----+-----+-----+-----+-----+

11voto

Pandya Points 32443

Essayez d'utiliser HardInfo qui est une application GUI très utile pour connaître toutes les informations sur le système et le matériel.

Installer HardInfo en sudo apt-get install hardinfo

Voici une capture d'écran montrant l'affichage des informations sur le ventilateur.

screen

J'espère que cela vous aidera.

2voto

Amaç Herdağdelen Points 2452

Utilisation nbfc

Mon ordinateur portable est un Acer Aspire E5-573G et rien d'autre n'a fonctionné pour contrôler le ventilateur de l'unité centrale. nbfc . J'utilise Ubuntu 18.04. Le profil exact pour mon modèle n'existe pas, mais nbfc a bien fonctionné avec un autre profil similaire (Acer Aspire E5-575G). Si vous ne savez pas quel profil utiliser, vous pouvez essayer : mono nbfc.exe config -r

Vous aurez besoin de la dernière version de mono pour le construire sur Ubuntu 18.04, alors n'oubliez pas de lire Comment créer une NBFC sous ubuntu ? .

J'ai également modifié le profil par défaut pour rendre la politique de ventilation plus agressive.

Construire sur Ubuntu

Vous avez besoin de la dernière version de mono, alors mettez-la à jour, si nécessaire :

sudo apt remove mono-complete
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-complete

Cloner le dépôt git et construire

# git is needed, so install it
sudo apt install git

# clone the repository into /tmp/nbfc
git clone https://github.com/hirschmann/nbfc.git /tmp/nbfc
cd /tmp/nbfc

# Build NBFC
./build.sh

Après la construction, "installez" nbfc comme il se doit

sudo mkdir /opt/nbfc
sudo cp -r /tmp/nbfc/Linux/bin/Release /opt/nbfc/
sudo cp /tmp/nbfc/Linux/{nbfc.service,nbfc-sleep.service} /etc/systemd/system/
sudo systemctl enable nbfc --now

Vous devez maintenant découvrir un profil pour votre machine et demander à nbfc de l'utiliser.

# All profiles are into /opt/nbfc/Configs as XML files
cd /opt/nbfc

# Run the following to discover a similar profile to your machine
mono nbfc.exe config -r

# Use one profile from the suggest list the previous command  
mono nbfc.exe config --apply "Config file name without extension"

# Now start the service
mono nbfc.exe start

# To show what is happen with your fan/machine, run
mono nbfc.exe status --all

Le wiki du projet nbfc est très riche et bien documenté. Jetez-y un coup d'œil si vous avez des doutes.

1voto

metator Points 21

Si vous souhaitez tester le ventilateur de votre unité centrale. Il vous suffit alors de lancer ce programme c :

#include <stdio.h>
int main(){
int count=0,found=0;
int a=2,current=2;
while(found<100000){
    while(a<current)
    {
        if(current%a==0){
            count=1;
        }
        a++;
    }
    if(count==0){
        printf("%d\n",current);
        found++;
    }
    current++;
    a=2;
    count=0;
}
}

et donnez ensuite la commande "sensors" dans le terminal pour connaître la vitesse de votre ventilateur. Ce programme est gourmand en ressources et consomme beaucoup de CPU.

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X