Giter Site home page Giter Site logo

Comments (9)

dominiksalvet avatar dominiksalvet commented on May 31, 2024 1

Hello @Greifent! 👋

how are the temperatures set?

The lowest level of setting temperatures in asus-fan-control is write_acpi_temp() function. It sets a single temperature at a given address with a given value. This function is called by write_temps() several times.

The write_temps() function gets the base address and a list of temperature values. It sets the temperature at the base address with the first temperature of the list and continues with base address + 1 and the second temperature of the list. That repeats for all values of the list.

This is how the temperatures are actually set to ACPI/hardware. All wrapper functions just check temperature values, and their number based on model information stored in models file. If there is no record for a device (not tested ones), it will use defaults from UX430UA model.

Did you know you can enable execution tracing? E.g. for sudo asus-fan-control get-temps, you can use sudo sh -x /usr/local/bin/asus-fan-control get-temps and you will see every step the program does. How handy! 🚀


And which system variable is used to read the temperature of the computer and select the correct fan speed?

Did I answer this above with the models file? If not, please clarify this question. BTW, there are functions with similar yet opposite effects as the ones above – read_acpi_temp() and read_temps().

from asus-fan-control.

Greifent avatar Greifent commented on May 31, 2024 1

Thanks!
Edit: I thought it worked in another way, I'll look if I can find a way to do what i have in mind

from asus-fan-control.

Greifent avatar Greifent commented on May 31, 2024 1

Thanks

from asus-fan-control.

Greifent avatar Greifent commented on May 31, 2024

Thanks, that helped clarifying what the acpi do.
I meant: how the computer know the current temperature inside? Which sensor does it use? There is a way to know the temperature that the program use?

from asus-fan-control.

dominiksalvet avatar dominiksalvet commented on May 31, 2024

Ah I see. Asus-fan-control uses ACPI entry points \_SB.PCI0.LPCB.EC0.RRAM for read and \_SB.PCI0.LPCB.EC0.WRAM for write. Those entry points are used in the mentioned write_acpi_temp() and read_acpi_temp() functions. For more information, I suggest you to see the daringer/asus-fan#44 (comment) and maybe other posts in the referred issue as well.

from asus-fan-control.

dominiksalvet avatar dominiksalvet commented on May 31, 2024

Please close this issue once you feel it is resolved. 😸

We can continue in the discussion if an associated question arises and we can reopen the issue then.

from asus-fan-control.

dominiksalvet avatar dominiksalvet commented on May 31, 2024

I thought it worked in another way, I'll look if I can find a way to do what i have in mind

BTW, all you need should be asus-fan-control API and hence you wouldn't need to know these details... That also prevents from breaking afc-gui after modification of asus-fan-control internals. This is the reason why public APIs exist.

from asus-fan-control.

Greifent avatar Greifent commented on May 31, 2024

What do you mean with asus-fan-control API?
I had in mind to show the live temperature of the computer in the GUI, I think that we misunderstood each other

from asus-fan-control.

dominiksalvet avatar dominiksalvet commented on May 31, 2024

By API I mean the functionality accessible from a terminal. E.g., asus-fan-control help, asus-fan-control get-temps, etc. are part of the asus-fan-control API.

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.