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.

#1 Le 16/08/2018, à 21:05

dasys

Senors n'indique d'information sur les ventilateurs

Bonsoir a tous,

J'avais pose cette question au milieu d'autres questions. Je l'isole car c'est le point le plus bloquant dans ma decouverte d'ubuntu et je me laisse encore une journee avant de repasser, la mort dan l'ame, a windows sad

En effet il semble que les ventilateurs de mon Xiaomi Air 13 ne soit pas visible du systeme et donc non ou mal geres. Donc j'herite d'un ordi pas discret et dont l'autonomie prend un sacre coup.

La commande Sensors me retourne :

iwlwifi-virtual-0
Adapter: Virtual device
temp1:        +50.0°C  

acpitz-virtual-0
Adapter: Virtual device
temp1:        +45.0°C  (crit = +99.0°C)
temp2:        +46.0°C  (crit = +92.0°C)

nouveau-pci-0100
Adapter: PCI adapter
GPU core:     +0.90 V  (min =  +0.60 V, max =  +1.20 V)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +45.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +45.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +44.0°C  (high = +100.0°C, crit = +100.0°C)

Auparavant, j'ai pris soin de lancer la commande sudo sensors-detect en prenant les choix par defaut :

# sensors-detect revision 6284 (2015-05-31 14:00:33 +0200)
# System: Timi TM1613 [A05] (laptop)
# Kernel: 4.15.0-30-generic x86_64
# Processor: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (6/78/3)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): 
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 16h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 thermal sensor...                       No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): 
/dev/port: Operation not permitted

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): 
/dev/port: Operation not permitted

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): 
Found unknown SMBus adapter 8086:9d23 at 0000:00:1f.4.
Sorry, no supported PCI bus adapters found.

Next adapter: i915 gmbus dpc (i2c-0)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: i915 gmbus dpb (i2c-1)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: i915 gmbus dpd (i2c-2)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: DPDDC-A (i2c-3)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: DPDDC-B (i2c-4)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: nvkm-0000:01:00.0-bus-0001 (i2c-5)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: nvkm-0000:01:00.0-bus-0002 (i2c-6)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: nvkm-0000:01:00.0-bus-0005 (i2c-7)
Do you want to scan it? (yes/NO/selectively): 


Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)

Unloading cpuid... OK

Help ! je ne veux pas retourner Windows ^^

Top ne m'indique pas de processus gourmand...

D'avance mille mercis pour votre aide precieuse smile

Hors ligne

#2 Le 17/08/2018, à 08:33

MicP

Re : Senors n'indique d'information sur les ventilateurs

Bonjour

Le fil de discussion accessible par le lien suivant : forums.linuxmint : topic 263828 -> fan speed Xiaomi mi notebook air 13
propose une solution qui semble correspondre à ce que tu cherches.

Dernière modification par MicP (Le 17/08/2018, à 16:48)

Hors ligne

#3 Le 18/08/2018, à 13:29

dasys

Re : Senors n'indique d'information sur les ventilateurs

Bonjour,

Et merci beaucoup pour le lien. Comme je possede la version 2016 (et non 2017), j'ai adapter le script.

La premiere chose qui m'interpelle est la version du bios : simplement A05 pour moi et XMAKB3M0P0907 dans le tuto. Ai-je fait une erreur ? voici ce que me retourne sudo dmidecode :

# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
29 structures occupying 2070 bytes.
Table at 0x7B42F000.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
	Vendor: Insyde Corp.
	Version: A05
	Release Date: 08/11/2016
	Address: 0xE0000
	Runtime Size: 128 kB
	ROM Size: 8192 kB
	Characteristics:
		PCI is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		Boot from CD is supported
		Selectable boot is supported
		EDD is supported
		8042 keyboard services are supported (int 9h)
		CGA/mono video services are supported (int 10h)
		ACPI is supported
		USB legacy is supported
		BIOS boot specification is supported
		Targeted content distribution is supported
		UEFI is supported
	BIOS Revision: 1.5
	Firmware Revision: 1.6

Handle 0x0001, DMI type 1, 27 bytes
System Information
	Manufacturer: Timi
	Product Name: TM1613
	Version: A05
	Serial Number: 13138/00067077
	UUID: F66F71E2-A626-11E6-7DDF-EC4C0BC05A00
	Wake-up Type: Power Switch
	SKU Number: Sku Number
	Family: Timibook

Handle 0x0002, DMI type 2, 17 bytes
Base Board Information
	Manufacturer: Timi
	Product Name: TM1613
	Version: A05
	Serial Number: MMG5S000000226B5P02JX
	Asset Tag: No Asset Tag
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: Type2 - Board Chassis Location
	Chassis Handle: 0x0003
	Type: Motherboard
	Contained Object Handles: 0

Handle 0x0003, DMI type 3, 22 bytes
Chassis Information
	Manufacturer: Timi
	Type: Notebook
	Lock: Not Present
	Version: A05
	Serial Number: 13138/00067077
	Asset Tag: No Asset Tag
	Boot-up State: Safe
	Power Supply State: Safe
	Thermal State: Safe
	Security Status: None
	OEM Information: 0x00000000
	Height: Unspecified
	Number Of Power Cords: 1
	Contained Elements: 0
	SKU Number: Sku Number

Handle 0x0004, DMI type 4, 42 bytes
Processor Information
	Socket Designation: U3E1
	Type: Central Processor
	Family: Core i5
	Manufacturer: Intel(R) Corporation
	ID: E3 06 04 00 FF FB EB BF
	Signature: Type 0, Family 6, Model 78, Stepping 3
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		DS (Debug store)
		ACPI (ACPI supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		SS (Self-snoop)
		HTT (Multi-threading)
		TM (Thermal monitor supported)
		PBE (Pending break enabled)
	Version: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
	Voltage: 0.8 V
	External Clock: 100 MHz
	Max Speed: 8300 MHz
	Current Speed: 2000 MHz
	Status: Populated, Enabled
	Upgrade: Other
	L1 Cache Handle: 0x0006
	L2 Cache Handle: 0x0007
	L3 Cache Handle: 0x0008
	Serial Number: To Be Filled By O.E.M.
	Asset Tag: To Be Filled By O.E.M.
	Part Number: To Be Filled By O.E.M.
	Core Count: 2
	Core Enabled: 2
	Thread Count: 4
	Characteristics:
		64-bit capable
		Multi-Core
		Hardware Thread
		Execute Protection
		Enhanced Virtualization
		Power/Performance Control

Handle 0x0005, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L1 Cache
	Configuration: Enabled, Not Socketed, Level 1
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 64 kB
	Maximum Size: 64 kB
	Supported SRAM Types:
		Synchronous
	Installed SRAM Type: Synchronous
	Speed: Unknown
	Error Correction Type: Parity
	System Type: Data
	Associativity: 8-way Set-associative

Handle 0x0006, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L1 Cache
	Configuration: Enabled, Not Socketed, Level 1
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 64 kB
	Maximum Size: 64 kB
	Supported SRAM Types:
		Synchronous
	Installed SRAM Type: Synchronous
	Speed: Unknown
	Error Correction Type: Parity
	System Type: Instruction
	Associativity: 8-way Set-associative

Handle 0x0007, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L2 Cache
	Configuration: Enabled, Not Socketed, Level 2
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 512 kB
	Maximum Size: 512 kB
	Supported SRAM Types:
		Synchronous
	Installed SRAM Type: Synchronous
	Speed: Unknown
	Error Correction Type: Single-bit ECC
	System Type: Unified
	Associativity: 4-way Set-associative

Handle 0x0008, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L3 Cache
	Configuration: Enabled, Not Socketed, Level 3
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 3072 kB
	Maximum Size: 3072 kB
	Supported SRAM Types:
		Synchronous
	Installed SRAM Type: Synchronous
	Speed: Unknown
	Error Correction Type: Multi-bit ECC
	System Type: Unified
	Associativity: 12-way Set-associative

Handle 0x0009, DMI type 10, 6 bytes
On Board Device Information
	Type: Video
	Status: Enabled
	Description: Video Graphics Controller

Handle 0x000A, DMI type 11, 5 bytes
OEM Strings
	String 1: OemString1

Handle 0x000B, DMI type 12, 5 bytes
System Configuration Options
	Option 1: ConfigOptions1
	Option 2: ConfigOptions2
	Option 3: ConfigOptions3

Handle 0x000C, DMI type 14, 17 bytes
Group Associations
	Name: Firmware Version Info
	Items: 4
		0x0017 (OEM-specific)
		0x0015 (OEM-specific)
		0x0014 (OEM-specific)
		0x0013 (OEM-specific)

Handle 0x000D, DMI type 14, 8 bytes
Group Associations
	Name: Intel(R) Silicon View Technology
	Items: 1
		0x001B (OEM-specific)

Handle 0x000E, DMI type 14, 8 bytes
Group Associations
	Name: $MEI
	Items: 1
		0x0016 (OEM-specific)

Handle 0x000F, DMI type 16, 23 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: 32 GB
	Error Information Handle: No Error
	Number Of Devices: 2

Handle 0x0010, DMI type 17, 40 bytes
Memory Device
	Array Handle: 0x000F
	Error Information Handle: No Error
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 8192 MB
	Form Factor: SODIMM
	Set: None
	Locator: ChannelA-DIMM0
	Bank Locator: BANK 0
	Type: DDR4
	Type Detail: Synchronous
	Speed: 2133 MT/s
	Manufacturer: Samsung
	Serial Number: 00000000
	Asset Tag: 9876543210
	Part Number: M471A1K43BB0-CPB    
	Rank: 1
	Configured Clock Speed: 2133 MT/s
	Minimum Voltage: 1.5 V
	Maximum Voltage: 1.5 V
	Configured Voltage: 1.2 V

Handle 0x0011, DMI type 17, 40 bytes
Memory Device
	Array Handle: 0x000F
	Error Information Handle: No Error
	Total Width: Unknown
	Data Width: Unknown
	Size: No Module Installed
	Form Factor: Unknown
	Set: None
	Locator: ChannelA-DIMM1
	Bank Locator: BANK 1
	Type: Unknown
	Type Detail: None
	Speed: Unknown
	Manufacturer: Not Specified
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified
	Rank: Unknown
	Configured Clock Speed: Unknown
	Minimum Voltage: Unknown
	Maximum Voltage: Unknown
	Configured Voltage: Unknown

Handle 0x0012, DMI type 17, 40 bytes
Memory Device
	Array Handle: 0x000F
	Error Information Handle: No Error
	Total Width: Unknown
	Data Width: Unknown
	Size: No Module Installed
	Form Factor: Unknown
	Set: None
	Locator: ChannelB-DIMM0
	Bank Locator: BANK 2
	Type: Unknown
	Type Detail: None
	Speed: Unknown
	Manufacturer: Not Specified
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified
	Rank: Unknown
	Configured Clock Speed: Unknown
	Minimum Voltage: Unknown
	Maximum Voltage: Unknown
	Configured Voltage: Unknown

Handle 0x0013, DMI type 17, 40 bytes
Memory Device
	Array Handle: 0x000F
	Error Information Handle: No Error
	Total Width: Unknown
	Data Width: Unknown
	Size: No Module Installed
	Form Factor: Unknown
	Set: None
	Locator: ChannelB-DIMM1
	Bank Locator: BANK 3
	Type: Unknown
	Type Detail: None
	Speed: Unknown
	Manufacturer: Not Specified
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified
	Rank: Unknown
	Configured Clock Speed: Unknown
	Minimum Voltage: Unknown
	Maximum Voltage: Unknown
	Configured Voltage: Unknown

Handle 0x0014, DMI type 19, 31 bytes
Memory Array Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x001FFFFFFFF
	Range Size: 8 GB
	Physical Array Handle: 0x000F
	Partition Width: 1

Handle 0x0015, DMI type 20, 35 bytes
Memory Device Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x001FFFFFFFF
	Range Size: 8 GB
	Physical Device Handle: 0x0010
	Memory Array Mapped Address Handle: 0x0014
	Partition Row Position: Unknown
	Interleave Position: 1
	Interleaved Data Depth: 1

Handle 0x0016, DMI type 219, 81 bytes
OEM-specific Type
	Header and Data:
		DB 51 16 00 01 03 01 45 02 00 A0 06 01 10 86 00
		02 00 00 00 40 08 00 00 00 00 00 00 00 00 40 02
		FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
		FF FF FF FF FF FF FF FF 03 00 00 00 80 00 00 00
		00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
		00
	Strings:
		MEI1
		MEI2
		MEI3

Handle 0x0017, DMI type 221, 26 bytes
OEM-specific Type
	Header and Data:
		DD 1A 17 00 03 01 00 01 09 00 00 00 02 00 00 00
		00 8A 00 03 00 00 05 00 00 00
	Strings:
		Reference Code - CPU
		uCode Version
		TXT ACM version

Handle 0x0018, DMI type 221, 26 bytes
OEM-specific Type
	Header and Data:
		DD 1A 18 00 03 01 00 01 09 00 00 00 02 00 01 09
		00 00 00 03 04 0B 00 0A EA 03
	Strings:
		Reference Code - ME 11.0
		MEBx version
		ME Firmware Version
		Consumer SKU

Handle 0x0019, DMI type 221, 68 bytes
OEM-specific Type
	Header and Data:
		DD 44 19 00 09 01 00 01 09 00 00 00 02 03 FF FF
		FF FF FF 04 00 FF FF FF 21 00 05 00 FF FF FF 21
		00 06 00 FF FF FF FF FF 07 00 3E 00 00 00 00 08
		00 34 00 00 00 00 09 00 3E 00 00 00 00 0A 00 34
		00 00 00 00
	Strings:
		Reference Code - SKL PCH
		PCH-CRID Status
		Disabled
		PCH-CRID Original Value
		PCH-CRID New Value
		OPROM - RST - RAID
		SKL PCH H Bx Hsio Version
		SKL PCH H Dx Hsio Version
		SKL PCH LP Bx Hsio Version
		SKL PCH LP Cx Hsio Version

Handle 0x001A, DMI type 221, 54 bytes
OEM-specific Type
	Header and Data:
		DD 36 1A 00 07 01 00 01 09 00 00 00 02 00 01 09
		00 00 00 03 00 01 09 00 00 00 04 05 FF FF FF FF
		FF 06 00 FF FF FF 08 00 07 00 FF FF FF 08 00 08
		00 FF FF FF FF FF
	Strings:
		Reference Code - SA - System Agent
		Reference Code - MRC
		SA - PCIe Version
		SA-CRID Status
		Disabled
		SA-CRID Original Value
		SA-CRID New Value
		OPROM - VBIOS

Handle 0x001B, DMI type 222, 14 bytes
OEM-specific Type
	Header and Data:
		DE 0E 1B 00 01 99 00 03 10 01 20 02 30 03
	Strings:
		Memory Init Complete
		End of DXE Phase
		BIOS Boot Complete

Handle 0xFEFF, DMI type 127, 4 bytes
End Of Table

A partir de ces elements j'ai adapte le script comme suit :

#!/bin/bash
#
# acers3fand - Rudimentary automatic fan control for noisy Acer Aspire S3 models
#
# Orginal author Rachel Greenham (for Acer Aspire One, ported from 0.07)
# Author Juho Tykkälä from Enymind Oy (for S3)
#
ACERS3FAND_VERSION="0.04"
# version 0.04 (2013-01-16) Francois
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the
# Enymind Oy, Ahdinkatu 26, 40700 Jyväskylä, Finland
#
# Feel free to send any confirmations of working or not with your hardware.
# mail: enyone@enymind.fi
#
# To modify the parameters, create a file /etc/acers3fand.conf and add
# these 6 lines into it:
#
# INTERVAL=5 # temperature poll interval in seconds
# STARTTEMP=50 # temperature in C to start fan
# MAXTEMP=65 # temperature in C to spin fan at max. speed
# STARTRPM=99 # value (0-99) as lowest RPM you like (0 max. vs. 99 min.)
# MAXRPM=0 # value (0-99) as highest RPM you like (0 max. vs. 99 min.)
# RAMPUP=5 # increase this much RPM per. one degree C increase
#


LOGGER=$(which logger)
if [ ! -x $LOGGER ] ; then
	LOGGER="/usr/bin/logger"
fi
if [ ! -x $LOGGER ] ; then
	echo "Warning, logger can't be found. Will log to stdout"
	unset LOGGER
fi

LOGLEVEL="info"

log() {
	if [ ! -z "$LOGGER" ] ; then
		$LOGGER -p daemon.$LOGLEVEL -t acers3fand "$@"
	else
		echo "$@"
	fi
}

info() {
	LOGLEVEL="info"
	log "$@"
}

notice() {
	LOGLEVEL="notice"
	log "$@"
}

err() {
	LOGLEVEL="err"
	log "$@"
}

info "acers3fand $ACERS3FAND_VERSION starting"

# if pgrep acers3fand  | grep -v $$ > /dev/null; then
# 	info "acers3fand already running"
# 	exit 0
# fi

ME=$(readlink -f $0)

BIOS_VERSION_115="1.15"
BIOS_VERSION_116="1.16"
BIOS_VERSION_118="1.18"
BIOS_VERSION_121="V1.21"
BIOS_VERSION_209="V2.09"

BIOS_VERSION_XIAOMI="A05"
BIOS_VERSION=$BIOS_VERSION_XIAOMI

BIOS_VERSION_DEFAULT=$BIOS_VERSION_XIAOMI

#getBiosVersion() {
#	DMIDECODE=$(which dmidecode)
#	if [ -z $DMIDECODE ] ; then
#		info "Can't find dmidecode. Assuming bios $BIOS_VERSION_DEFAULT"
#		BIOS_VERSION=$BIOS_VERSION_DEFAULT
#	else
#		BIOS_VERSION=$($DMIDECODE -s bios-version)
#		info "Detected bios version $BIOS_VERSION"
#	fi
#}

ACEREC=$(which acer_ec.pl)
if [ -z $ACEREC ] ; then
	ACEREC=$(dirname $ME)/acer_ec.pl
fi

if [ ! -r $ACEREC ] ; then
	err "acer_ec.pl can't be found"
	exit 1
fi

INTERVAL=5
STARTTEMP=50
MAXTEMP=65
STARTRPM=99
MAXRPM=0
RAMPUP=5

#getBiosVersion

if [ -r "/etc/acers3fand.conf" ] ; then
	source "/etc/acers3fand.conf"
fi

case "$BIOS_VERSION" in
	"${BIOS_VERSION_XIAOMI}")
		R_FAN="0x93"
		R_SPEED="0x94"
		R_TEMP="0xA8"
		FAN_CMD_MANUAL="0x14"
		FAN_CMD_AUTO="0x04"
		;;
	"${BIOS_VERSION_116}")
		R_FAN="0x93"
		R_SPEED="0x94"
		R_TEMP="0xA8"
		FAN_CMD_MANUAL="0x14"
		FAN_CMD_AUTO="0x04"
		;;
	"${BIOS_VERSION_118}")
		R_FAN="0x93"
		R_SPEED="0x94"
		R_TEMP="0xA8"
		FAN_CMD_MANUAL="0x14"
		FAN_CMD_AUTO="0x04"
		;;
	"${BIOS_VERSION_121}")
		R_FAN="0x93"
		R_SPEED="0x94"
		R_TEMP="0xA8"
		FAN_CMD_MANUAL="0x14"
		FAN_CMD_AUTO="0x04"
		;;
	"${BIOS_VERSION_209}")
		R_FAN="0x93"
		R_SPEED="0x94"
		R_TEMP="0xA8"
		FAN_CMD_MANUAL="0x14"
		FAN_CMD_AUTO="0x04"
		;;
	*)
		err "Unsupported bios version ${BIOS_VERSION} found. Aborting."
		exit 1
	;;
esac

FAN_STATE_UNRECOGNIZED=0
FAN_STATE_AUTO=1
FAN_STATE_MANUAL=2
FAN_STATE_NAMES=("Unrecognized" "Auto" "Manual")
FAN_STATE_CMDS=("$FAN_CMD_MANUAL" "$FAN_CMD_AUTO" "$FAN_CMD_MANUAL")

acer_ec() {
	perl $ACEREC $@
}

getTemp() {
	TEMP=$[$(acer_ec ?= $R_TEMP | cut -f 3 -d' ')]
	notice "temp: $TEMP"
}

getRawFanState() {
	RAW_FAN_STATE=$(acer_ec ?= $R_FAN | cut -f 3 -d' ')
}

getFanState() {
	FAN_STATE=$FAN_STATE_UNRECOGNIZED
	getRawFanState
	if [ "$RAW_FAN_STATE" == "$FAN_CMD_MANUAL" ]; then
		FAN_STATE=$FAN_STATE_MANUAL
	else
		let A="$RAW_FAN_STATE & 0x10" || true
		if [ "$A == 0" ] ; then
			# ASSUMPTION: All values with nybble 1==0 denote auto
			FAN_STATE=$FAN_STATE_AUTO
		fi
	fi
	notice "read fan state ${FAN_STATE_NAMES[$FAN_STATE]}"
}

setFan() {
	notice "Set fan ${FAN_STATE_NAMES[$1]}"
	acer_ec := $R_FAN ${FAN_STATE_CMDS[$1]} > /dev/null
}

setSpeed() {
	notice "Set speed $1"
	acer_ec := $R_SPEED $1 > /dev/null
}

govern() {
trap "info exiting;setFan $FAN_STATE_AUTO; exit" INT TERM EXIT
info "Starting to govern acer fan speed. Interval: $INTERVAL, start-temp: $STARTTEMP, max-temp: $MAXTEMP, start-rpm: $STARTRPM, max-rpm: $MAXRPM, ramp-up: $RAMPUP"
setFan $FAN_STATE_MANUAL
while true; do
	getTemp
	setFan $FAN_STATE_MANUAL
	getFanState
	notice "Raw fan state: $RAW_FAN_STATE, fan state: ${FAN_STATE_NAMES[$FAN_STATE]}, temp: $TEMP"
	case "$FAN_STATE" in
		$FAN_STATE_AUTO)
			err "Somebody (maybe kernel) set fan to mode AUTO. Not me... Not fatal, but stuppid."
			setFan $FAN_STATE_MANUAL
			;;
		$FAN_STATE_MANUAL)
			if [ "$TEMP" -le "$STARTTEMP" ] ; then
				setSpeed 0xFF
			else 
				if [ "$TEMP" -ge "$MAXTEMP" ] ; then
					setSpeed $MAXRPM
				else
					B=$[ $STARTRPM - $[ $[ $TEMP - $STARTTEMP ] * $RAMPUP ] ]
					setSpeed $B
				fi
			fi
			;;
		*)
			# weird state. Let's turn it off,
			# then decide next time around
			info "Unexpected fan state $FAN_STATE"
			setFan $FAN_STATE_AUTO
			;;
	esac
	sleep $INTERVAL
done
}

set -e

govern &

Enfin comme indique, j'ai lance la commande

sudo ln -s /etc/init.d/acers3fand_init /etc/rc2.d/S99acers3fand

Puis j'ai redemarre pour verifier si dans /var/log/syslog apparaissait la ligne "acers3fand"

Resultat : la ligne n'apparait pas et le ventilo continue de souffler sad

P.S : le fichier log est d'ailleurs impressionnant avec pas mal d'erreur et de warning

D'avance mille mercis pour votre aide.

Hors ligne

#4 Le 18/08/2018, à 15:26

MicP

Re : Senors n'indique d'information sur les ventilateurs

Bonjour

Il me faudrait pouvoir lire le contenu du fichier log.

Tu n'en parles pas dans ton message,
mais je suppose que tu as bien lu et suivi les conseils donnés
dans la page accessible à https://github.com/enyone/acers3fand
dont je cite ci-dessous un extrait :

Pre-requirements

    perl
    acer_ec.pl (see: http://code.google.com/p/aceracpi/wiki/EmbeddedController)
    acers3fand (thanks to Rachel Greenham)
    acers3fand_init (thanks to Cliff L. Biffle cbiffle@gmail.com)

Installation:####

    Copy acer_ec.pl and acers3fand to /usr/local/bin/
    Make sure both are executable (chmod +x) and owned by the root user
    Copy acers3fand_init to /etc/init.d/
    Make sure it is executable (chmod +x) and owned by the root user
    Run: sudo ln -s /etc/init.d/acers3fand_init /etc/rc2.d/S99acers3fand
    Reboot and check /var/log/syslog for lines "acers3fand"

Usage

    This is maintainance-free appplication, should work out of the box
    See acers3fand -file for changelog and limitations (bios versions etc.)

et que tu avais bien tous les prérequis nécessaires.

Hors ligne