Comments (5)
#!/bin/bash
# my English is very bad, sorry me
#Asus zenbook duo UX482 bios 318
# 0 - full speed
# 2 - auto / silent. I dont know
# 1 - dont working. Why? I dont know XD
set_fan_speed() {
local speed=$2
echo "$speed" > "$1"
}
hwmon_number=""
for entry in /sys/devices/platform/asus-nb-wmi/hwmon/hwmon[0-9]*/; do
hwmon_number="${entry%/}"
done
if [[ -n "$hwmon_number" ]]; then
hwmon_number="${hwmon_number##*hwmon}"
full_path_to_real_hwmon="/sys/devices/platform/asus-nb-wmi/hwmon/hwmon${hwmon_number}/pwm1_enable"
sudo chmod -R 777 $full_path_to_real_hwmon
read -r mode_fans < $full_path_to_real_hwmon
if [ "$mode_fans" -eq 2 ]; then
set_fan_speed "$full_path_to_real_hwmon" 0
else
set_fan_speed "$full_path_to_real_hwmon" 2
fi
else
echo "Nothing found."
fi
I wrote a script like this that works on my laptop. Maybe someone will need...
from asus-fan-control.
It seems newer CPUs and related hardware are not supported...
from asus-fan-control.
Not so terrible then, since I can directly set fan RPM with
sudo echo 0 > /sys/devices/platform/asus-nb-wmi/hwmon/hwmon4/pwm1_enable.
But there is a problem that, hwmon changes, after every reboot of the laptop and I don't know how to fix it. Do you have any ideas?
Thank you very much in advance
from asus-fan-control.
I receive the same AE_NOT_FOUND error on my desktop ASUS PA90.
Running ubuntu linux 23.04 (GNU/Linux 5.19.0-23-generic x86_64)
My fan runs loud/high since upgrade to 23.04.
sensors-detect returns these:
Driver `coretemp':
- Chip
Intel digital thermal sensor' (confidence: 9) Driver
nct6775': - ISA bus, address 0x290
Chip `Nuvoton NCT6796D Super IO Sensors' (confidence: 9)
And sensors give this:
~$ sensors
nouveau-pci-0100
Adapter: PCI adapter
fan1: 3472 RPM
temp1: +51.0°C (high = +95.0°C, hyst = +3.0°C)
(crit = +105.0°C, hyst = +5.0°C)
(emerg = +135.0°C, hyst = +5.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +37.0°C (high = +86.0°C, crit = +100.0°C)
Core 0: +36.0°C (high = +86.0°C, crit = +100.0°C)
Core 1: +37.0°C (high = +86.0°C, crit = +100.0°C)
Core 2: +35.0°C (high = +86.0°C, crit = +100.0°C)
Core 3: +35.0°C (high = +86.0°C, crit = +100.0°C)
Core 4: +35.0°C (high = +86.0°C, crit = +100.0°C)
Core 5: +34.0°C (high = +86.0°C, crit = +100.0°C)
Core 6: +36.0°C (high = +86.0°C, crit = +100.0°C)
Core 7: +35.0°C (high = +86.0°C, crit = +100.0°C)
acpitz-acpi-0
Adapter: ACPI interface
temp1: +44.0°C (crit = +100.0°C)
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1: +36.0°C
pch_cannonlake-virtual-0
Adapter: Virtual device
temp1: +51.0°C
nvme-pci-0200
Adapter: PCI adapter
Composite: +33.9°C (low = -273.1°C, high = +80.8°C)
(crit = +81.8°C)
Sensor 1: +33.9°C (low = -273.1°C, high = +65261.8°C)
Sensor 2: +35.9°C (low = -273.1°C, high = +65261.8°C)
And fancontrol says this:
fancontrol
Loading configuration from /etc/fancontrol ...
Some mandatory settings missing, please check your config file!
from asus-fan-control.
Not so terrible then, since I can directly set fan RPM with
sudo echo 0 > /sys/devices/platform/asus-nb-wmi/hwmon/hwmon4/pwm1_enable.
But there is a problem that, hwmon changes, after every reboot of the laptop and I don't know how to fix it. Do you have any ideas? Thank you very much in advance
Maybe you can use a similar approach to AFC's. Have a look at the installation script https://github.com/dominiksalvet/asus-fan-control/blob/master/.install/install-global-Linux and focus on afc.service file. That could be helpful.
from asus-fan-control.
Related Issues (20)
- Add support for Vivobook Pro X3400PH K3400PH HOT 3
- Can't install via gitpack HOT 3
- Installation HOT 2
- Add support for Fedora Workstation 37 HOT 3
- [Typo] Uninstallation hooks through pacman HOT 6
- Add support for TP550LAB HOT 4
- Add support for FX505GT HOT 4
- Add support for G751JY HOT 2
- Add support for F515EA HOT 3
- Add support for X540LA HOT 1
- Add support for Zenbook UP6502ZD HOT 4
- Add support for UM3504D HOT 1
- Add support for K6502HE HOT 1
- Add support for UX581GV HOT 2
- Add support for UX3402ZA HOT 3
- Add support for FX516PMFX516PM HOT 1
- Temp settings not working outside of default
- Unexpected AE_NOT_FOUND error HOT 1
- Add support for UX533FN/RX533FN (A8059T) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asus-fan-control.