dominiksalvet / asus-fan-control

Fan control for ASUS devices running Linux
MIT License
317 stars 37 forks source link

Add support ASUS VivoBook 15 R542UF (mobo X542UF) #66

Closed FadeMind closed 3 years ago

FadeMind commented 3 years ago

Environment Manjaro Linux KDE X64 (unstable branch) asus-fan-control 3.8.1 (AUR)

Type: Laptop System: ASUSTeK product: VivoBook 15_ASUS Laptop X542UF v: 1.0 serial: <filter> 
Mobo: ASUSTeK model: X542UF v: 1.0 serial: <filter> UEFI: American Megatrends v: X542UF.307 date: 06/13/2019 

Basic configuration If only temperatures were configured, add output of:

I tested

sudo asus-fan-control set-temps 60 65 70 75 80 85 90 95
sudo asus-fan-control set-temps 40 45 50 55 59 63 65 67
sudo asus-fan-control set-temps default

Fan speed in sensors is fake. Stay always as 2600 RPM even with lower speed sounds OR turn off fan too.

FAN RUN:
[fademind@manjaro ~]$ sudo asus-fan-control set-temps 40 45 50 55 59 63 65 67
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
FAN STOP:
[fademind@manjaro ~]$ sudo asus-fan-control set-temps default
[sudo] password for fademind: 
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
/usr/bin/asus-fan-control: line 420: warning: command substitution: ignored null byte in input
[fademind@manjaro ~]$ sensors
asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2600 RPM << FAKE it is not running now.

BAT0-acpi-0
Adapter: ACPI interface
in0:           7.70 V  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +37.0 C  (crit = +103.0 C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +38.0 C  (high = +100.0 C, crit = +100.0 C)
Core 0:        +35.0 C  (high = +100.0 C, crit = +100.0 C)
Core 1:        +36.0 C  (high = +100.0 C, crit = +100.0 C)
Core 2:        +38.0 C  (high = +100.0 C, crit = +100.0 C)
Core 3:        +38.0 C  (high = +100.0 C, crit = +100.0 C)

pch_skylake-virtual-0
Adapter: Virtual device
temp1:        +34.5 C  

I added to models file this line.

VivoBook15ASUSLaptopX542UF|1335|55 60 62 65 68 72 76 80

And now with approx 46 C I don't hear FAN work at all. Now with DEFAULT setup temperatures fan turn on for a short while only and power off again. CPU FAN value rise during next work fan. Even if it is turned off. Tested via watch sensors with 2s refresh. Screenshot_20201020_213317

EDIT after while of using AFC:

SET 40 45 50 55 59 63 65 67 Screenshot_20201020_222010

FadeMind commented 3 years ago

I have set:

[fademind@manjaro ~]$ cat /etc/asus-fan-control/temps 
40 45 50 55 59 63 65 67

Results from afc-scout

[fademind@manjaro ~]$ export LANG=C
[fademind@manjaro ~]$ sudo afc-scout 
------ base address 1335 ------
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1334] = 12
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1335] = 40 <- possible start
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1336] = 45
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1337] = 50
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1338] = 55
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1339] = 59
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1340] = 63
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1341] = 65
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1342] = 67 <- possible end
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1343] = 12
------ base address 1431 ------
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1430] = 12
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1431] = 45 <- possible start
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1432] = 52
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1433] = 57
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1434] = 62
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1435] = 68
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1436] = 75
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1437] = 75
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1438] = 90 <- possible end
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1439] = 12

Current sensors results (FAN work):

[fademind@manjaro ~]$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +34.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +32.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +32.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +35.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +32.0°C  (high = +100.0°C, crit = +100.0°C)

BAT0-acpi-0
Adapter: ACPI interface
in0:           7.70 V  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +33.0°C  (crit = +103.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2600 RPM

pch_skylake-virtual-0
Adapter: Virtual device
temp1:        +31.0°C  

With DEFAULT temp set I have:

[fademind@manjaro asus-fan-control]$ sudo afc-scout 
------ base address 1335 ------
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1334] = 12
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1335] = 55 <- possible start
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1336] = 60
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1337] = 62
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1338] = 65
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1339] = 68
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1340] = 72
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1341] = 76
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1342] = 80 <- possible end
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1343] = 12
------ base address 1431 ------
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1430] = 12
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1431] = 45 <- possible start
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1432] = 52
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1433] = 57
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1434] = 62
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1435] = 68
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1436] = 75
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1437] = 75
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1438] = 90 <- possible end
/home/fademind/bin/afc-scout: line 56: warning: command substitution: ignored null byte in input
[1439] = 12
dominiksalvet commented 3 years ago

Hello @FadeMind, sorry for the delay and welcome to the AFC community! :wave:

Please note that sensors are far from the AFC business. Even I personally have bad values when reading them. I am a bit confused by your posts. So what are the suggested default temperatures for your laptop model?

BTW, does the ignored null byte in input error happen to you frequently?

FadeMind commented 3 years ago

@dominiksalvet Ignored null byte in input is all time during call acpi_call as you see. I set safety 40 45 50 55 59 63 65 67 and fan work all time with 35 in iddle (or not after fresh start from cold). With minimum 55 (defult generic) fan started often with 45 - 47 temp. At end I just purged AFC after testing, and reported to you this model. :)

Sensors data are misleading. Max speed cpu_fan is 4800-4900 RPM. Default is 2500-2600-2800, but after COLD DOWN to 35 fan still work.

Project is great but at end ACPI FW is sensitive and buggy here (lastest fw is applied).

You can add default generic temps or 40 + your call.

On my end safer was roll back to generic kernel manage this cause fan did not start always after minimum temp.

Thanks for your time.

dominiksalvet commented 3 years ago

I have added the support for your model in the latest release. Run sudo gitpack install https://github.com/dominiksalvet/asus-fan-control to update and your proposed temperatures will become the default ones for your laptop, officially by AFC.

Ignored null byte in input is all time during call acpi_call as you see.

I have never seen this warning withing my scripts. If it happens to you with other scripts as well, there may be an issue on your side with your software configuration. Should it happen only within my scripts, please create a new issue on this topic and we can take a look at that (if it even bothers you).

Thank you for the contribution! :octocat: :heart: :point_right: @FadeMind