ru-ace / dell-fan-mon Goto Github PK
View Code? Open in Web Editor NEWFan monitor for some Dell laptops
License: GNU General Public License v3.0
Fan monitor for some Dell laptops
License: GNU General Public License v3.0
Hi, I appreciate your effort of provide this package, unfortunately I'am not able to run it.
Please forgive if this is some kind of simple but I can't get it to work, can you help me ?
robert@robert-G5-5590:~/Downloads/dell-fan-mon$ sudo ./dell-fan-mon --mode 1 --fan_ctrl_logic_mode 1 --bios_disable_method 2
init_ioperm: Operation not permitted
robert@robert-G5-5590:~/Downloads/dell-fan-mon$ sudo ./dell-fan-mon --mode 0 --fan_ctrl_logic_mode 1 --bios_disable_method 2
discrete_gpu_mode = 1 required mode = 1 (direct SMM BIOS calls) for autodetect and get GPU temp
You can set get_gpu_temp_cmd in /etc/dell-fan-mon.conf for providfing command to get gpu temp. This allow you to use mode = 0.
robert@robert-G5-5590:~/Downloads/dell-fan-mon$ sudo make test
./dell-fan-mon --test
init_ioperm: Operation not permitted
make: *** [Makefile:23: test] Error 1
My fans are still working with --mode 0, even if temp is about 49C so they should be off.
The same behavior I noticed while try to use i8kmon, config table define fans to off, but they always has speed "1"
Hi,
I deactivated BIOS control this way:
sudo dell-fan-mon -v --bios_disable_method 2 --fan_ctrl_logic_mode 1
Just to know, how to reactivate BIOS control now?
clarence@ImperialStarDestroyer:$ cd dell-fan-mon/dell-fan-mon$ sudo make install
clarence@ImperialStarDestroyer:
[sudo] password for clarence:
if test -f "/etc/systemd/system/dell-fan-mon.service" || test -f "/etc/init.d/dell-fan-mon"; then /usr/sbin/service dell-fan-mon stop; fi
install -m0755 dell-fan-mon /usr/bin
install: omitting directory 'dell-fan-mon'
Makefile:26: recipe for target 'install' failed
make: *** [install] Error 1
clarence@ImperialStarDestroyer:~/dell-fan-mon$
I get this message , something I can do?
I get the following results:
$ sudo ./dell-fan-mon -v --bios_disable_method 1
dell-fan-mon v1.2.2 by https://github.com/ru-ace
Fan monitor and control for Dell laptops via direct SMM BIOS calls or dell-smm-hwmon(i8k) kernel module.
Fans autodetect: ƒ0·-1 fans_count = 0
Sensors autodetect: t0·-1 t1·-1 t2·-1 t3·-1
Couldn't autodetect cpu_temp_sensor_id.
$ sudo ./dell-fan-mon -v --bios_disable_method 2
dell-fan-mon v1.2.2 by https://github.com/ru-ace
Fan monitor and control for Dell laptops via direct SMM BIOS calls or dell-smm-hwmon(i8k) kernel module.
Fans autodetect: ƒ0·-1 fans_count = 0
Sensors autodetect: t0·-1 t1·-1 t2·-1 t3·-1
Couldn't autodetect cpu_temp_sensor_id.
My laptop Dell 7250 with intel i7-5600 CPU
Config:
mode smm
discrete_gpu_mode cpu integrated
fan_ctrl_logic_mode default
bios_disable_method 2
period 1000 ms
jump_timeout 5000 ms
jump_temp_delta 40°
t_low / t_low_fan 55° / off
t_mid / t_mid_fan 65° / low
t_high / t_high_fan 90° / high
cpu_temp_sensor_id 0 (autodetected)
Monitor:
61·0 61·0 91·0 ƒ0=2 64·2 62·2 62·2
See 91·0 ƒ0=2 64·2
In period 1s
Jump period 5s
Temp delta 40c...
Why?
For all three values of bios_disable_method, I get the error: g128·0 gƒ(2) set_fan_state smm_send error
In more detail:
$ sudo ./dell-fan-mon -v --bios_disable_method 1
dell-fan-mon v1.1 by https://github.com/ru-ace
Fan monitor and control for Dell laptops via dell-smm-hwmon(i8k) kernel module or direct SMM BIOS calls.
Disabling bios fan control MAY BE succeeded.
Config:
mode smm
discrete_gpu_mode max(cpu_temp, gpu_temp)
fan_ctrl_logic_mode default
bios_disable_method 1
period 1000 ms
jump_timeout 2000 ms
jump_temp_delta 5°
t_low / t_low_fan 45° / off
t_mid / t_mid_fan 60° / low
t_high / t_high_fan 80° / high
gpu_temp_sensor_id 3 (autodetected)
Legend:
[t****] t is temp sensor type: c = CPU, g = GPU
[tTT·F] Current temp and fan state. TT - temp, F - fan state
[tƒ(F)] Set fans state to F. Fan states: 0 = OFF, 1 = LOW, 2 = HIGH
[t¡TT!] Abnormal temp jump detected. TT - temp
Monitor:
g128·0 gƒ(2) set_fan_state smm_send error
$ sudo ./dell-fan-mon -v --bios_disable_method 2
dell-fan-mon v1.1 by https://github.com/ru-ace
Fan monitor and control for Dell laptops via dell-smm-hwmon(i8k) kernel module or direct SMM BIOS calls.
Disabling bios fan control MAY BE succeeded.
Config:
mode smm
discrete_gpu_mode max(cpu_temp, gpu_temp)
fan_ctrl_logic_mode default
bios_disable_method 2
period 1000 ms
jump_timeout 2000 ms
jump_temp_delta 5°
t_low / t_low_fan 45° / off
t_mid / t_mid_fan 60° / low
t_high / t_high_fan 80° / high
gpu_temp_sensor_id 3 (autodetected)
Legend:
[t****] t is temp sensor type: c = CPU, g = GPU
[tTT·F] Current temp and fan state. TT - temp, F - fan state
[tƒ(F)] Set fans state to F. Fan states: 0 = OFF, 1 = LOW, 2 = HIGH
[t¡TT!] Abnormal temp jump detected. TT - temp
Monitor:
g128·0 gƒ(2) set_fan_state smm_send error
$ uname -a
Linux magrathea 4.15.0-64-generic #73-Ubuntu SMP Thu Sep 12 13:16:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ lsb
lsblk lsb_release
$ lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
$ ^C
$
When running sudo ./dell-fan-mon -v --bios_disable_method 1 I get the following error
Fans autodetect: ƒ0·-1 fans_count = 0
Sensors autodetect: t0·-1 t1·-1 t2·-1 t3·-1
Couldn't autodetect cpu_temp_sensor_id.
My sensors -u output
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1:
temp1_input: 32.000
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:
temp1_input: 41.000
temp1_max: 100.000
temp1_crit: 100.000
temp1_crit_alarm: 0.000
Core 0:
temp2_input: 41.000
temp2_max: 100.000
temp2_crit: 100.000
temp2_crit_alarm: 0.000
Core 1:
temp3_input: 41.000
temp3_max: 100.000
temp3_crit: 100.000
temp3_crit_alarm: 0.000
Core 2:
temp4_input: 39.000
temp4_max: 100.000
temp4_crit: 100.000
temp4_crit_alarm: 0.000
Core 3:
temp5_input: 40.000
temp5_max: 100.000
temp5_crit: 100.000
temp5_crit_alarm: 0.000
Core 4:
temp6_input: 40.000
temp6_max: 100.000
temp6_crit: 100.000
temp6_crit_alarm: 0.000
Core 5:
temp7_input: 40.000
temp7_max: 100.000
temp7_crit: 100.000
temp7_crit_alarm: 0.000
BAT0-acpi-0
Adapter: ACPI interface
in0:
in0_input: 12.653
curr1:
curr1_input: 0.001
dell_smm-virtual-0
Adapter: Virtual device
fan1:
fan1_input: 2491.000
fan2:
fan2_input: 2491.000
I try to set --period 5000 because default 1000 was srating and stoping my fans all the time. Unfortunatly this has no result, output is different but fans still star and stop.
Output:
dell-fan-mon v1.1 by https://github.com/ru-ace
Fan monitor and control for Dell laptops via dell-smm-hwmon(i8k) kernel module or direct SMM BIOS calls.
Config:
mode i8k
discrete_gpu_mode cpu integrated
fan_ctrl_logic_mode simple
bios_disable_method 0
period 5000 ms
fan_check_period 1000 ms
monitor_fan_id left
jump_timeout 2000 ms
jump_temp_delta 5°
t_low / t_low_fan 45° / off
t_high / t_high_fan 80° / high
Legend:
[TT·F] Current temp and fan state. TT - CPU temp, F - fan state
[ƒ(F)] Set fans state to F. Fan states: 0 = OFF, 1 = LOW, 2 = HIGH
[¡TT!] Abnormal temp jump detected. TT - CPU temp
Monitor:
44·1 ƒ(0) 43·1 ƒ(0) 44·1 ƒ(0) 43·1 ƒ(0) ƒ(0) ƒ(0) 44·0 ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) ƒ(0) ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) 44·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) ƒ(0) ƒ(0) 45·1 ƒ(0) ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 46·1 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) ƒ(0) ƒ(0) 45·0 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0) 45·1 ƒ(0)
I'm trying to run dell-fan-mon on a recent Latitude 7300 (2019 model), but I can't get it to detect the sensors or fans on Arch linux Linux arch7300 5.4.15-arch1-1
Does dell-fan-mon require any specific kernel modules or other services?
Here are some outputs:
sudo ./dell-fan-mon -v
dell-fan-mon v1.2.2 by https://github.com/ru-ace
Fan monitor and control for Dell laptops via direct SMM BIOS calls or dell-smm-hwmon(i8k) kernel module.
Fans autodetect: ƒ0·-1 fans_count = 0
Sensors autodetect: t0·-1 t1·-1 t2·-1 t3·-1
Couldn't autodetect cpu_temp_sensor_id.
For comparison sensors
works so far.
sensors -u
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:
temp1_input: 54.000
temp1_max: 100.000
temp1_crit: 100.000
temp1_crit_alarm: 0.000
Core 0:
temp2_input: 52.000
temp2_max: 100.000
temp2_crit: 100.000
temp2_crit_alarm: 0.000
Core 1:
temp3_input: 53.000
temp3_max: 100.000
temp3_crit: 100.000
temp3_crit_alarm: 0.000
Core 2:
temp4_input: 53.000
temp4_max: 100.000
temp4_crit: 100.000
temp4_crit_alarm: 0.000
Core 3:
temp5_input: 54.000
temp5_max: 100.000
temp5_crit: 100.000
temp5_crit_alarm: 0.000
dell_smm-virtual-0
Adapter: Virtual device
fan1:
fan1_input: 0.000
pch_cannonlake-virtual-0
Adapter: Virtual device
temp1:
temp1_input: 51.000
acpitz-acpi-0
Adapter: ACPI interface
temp1:
temp1_input: 25.000
temp1_crit: 107.000
iwlwifi-virtual-0
Adapter: Virtual device
temp1:
ERROR: Can't get value of subfeature temp1_input: Can't read
BAT0-acpi-0
Adapter: ACPI interface
in0:
in0_input: 8.359
curr1:
curr1_input: 0.001
Let me know if you need more information. Thanks!
Okay, this is weird. Things have been great since #4 was resolved, except when I go mobile. When I resume from suspend, on battery power, my laptop acts kind of like a phone with haptic feedback turned on. That is, whenever a key is pressed, the laptop vibrates a tiny bit. I'm pretty sure it's the fan being turned on for a small fraction of a second. Also, when I'm moving the mouse, it jumps like this continually, like maybe 5-10 times per second. The problem is resolved by rebooting.
I totally understand if this is too niche to worry about. But if the mystery intrigues you, and you can think of some diagnostics I should try, let me know.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.