Giter Site home page Giter Site logo

Comments (5)

IgnIVertiKalCaD avatar IgnIVertiKalCaD commented on June 11, 2024 1
#!/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.

dominiksalvet avatar dominiksalvet commented on June 11, 2024

It seems newer CPUs and related hardware are not supported...

from asus-fan-control.

IgnIVertiKalCaD avatar IgnIVertiKalCaD commented on June 11, 2024

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.

ezaron avatar ezaron commented on June 11, 2024

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.

dominiksalvet avatar dominiksalvet commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.