Comments (9)
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 usesudo 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.
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.
Thanks
from asus-fan-control.
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.
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.
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.
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.
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.
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)
- 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 Asus zenbook duo UX482 HOT 5
- 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 1
- 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.