Giter Site home page Giter Site logo

Comments (8)

Arnavion avatar Arnavion commented on June 27, 2024 1

I want to support setting fan speeds with it but haven't had the time to implement it.

Care to open an issue that I could subscribe to?

Arnavion/hwtop#1

from tpfancontrol-rs.

Arnavion avatar Arnavion commented on June 27, 2024

https://github.com/Arnavion/tpfancontrol-rs/blob/master/README.md

The program reads a config file /etc/tpfancontrol/config.toml for the names of the temperature sensors and for the temperature-to-fan-level mapping. There is an example config.toml.example in this repository.

from tpfancontrol-rs.

Arnavion avatar Arnavion commented on June 27, 2024

Also,

Error: sysfs error with /sys/class/hwmon/hwmon2/temp1_input: No such file or directory (os error 2)

The hwmon2 part comes from autodetecting whichever hwmon that has name == "thinkpad". But then you say:

/sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input

... which implies your hwmon2 identifies as "thinkpad" but hwmon3 is the one with the temp sensors? Or were these two taken across reboots and thus the hwmon numbers changed?

What's the output of:

grep -Hn . /sys/class/hwmon/hwmon*/name

?

from tpfancontrol-rs.

Arnavion avatar Arnavion commented on June 27, 2024

On top of that, #2 was also you, and I gave you the same answer that time too.

from tpfancontrol-rs.

smhmd avatar smhmd commented on June 27, 2024

On top of that, #2 was also you, and I gave you the same answer that time too.

Hhh, I didn't realize that. If I'm not wrong, at the time I had mid-semester exams. So, I apologize for not going back to you.

$ grep -Hn . /sys/class/hwmon/hwmon*/name
/sys/class/hwmon/hwmon0/name:1:acpitz
/sys/class/hwmon/hwmon1/name:1:ADP1
/sys/class/hwmon/hwmon2/name:1:thinkpad
/sys/class/hwmon/hwmon3/name:1:coretemp

It's hwmon2 as was auto-detected, then. And:

$ ls /sys/class/hwmon/hwmon2
power
device -> ../../../thinkpad_hwmon
fan1_input
name
pwm1
pwm1_enable
subsystem -> ../../../../../class/hwmon
uevent

So, temp1_input does not exist.

from tpfancontrol-rs.

smhmd avatar smhmd commented on June 27, 2024

Or were these two taken across reboots and thus the hwmon numbers changed?

No. And since I just booted my PC, here's the output once again:

$ find /sys/devices -type f -name "temp*_input"
/sys/devices/platform/coretemp.0/hwmon/hwmon3/temp3_input
/sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input
/sys/devices/platform/coretemp.0/hwmon/hwmon3/temp2_input
/sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_input
/sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp2_input

from tpfancontrol-rs.

Arnavion avatar Arnavion commented on June 27, 2024
$ ls /sys/class/hwmon/hwmon2
power
device -> ../../../thinkpad_hwmon
fan1_input
name
pwm1
pwm1_enable
subsystem -> ../../../../../class/hwmon
uevent

So your thinkpad_acpi module doesn't report any temp sensors. Not sure if it's just for your particular model, or if there's some config you need to enable in the kernel module for it.

Apart from that, the hwmon3 that's being reported by coretemp is the Intel CPU's own temp sensors. Apparently you have a dual-core, so the three sensors are probably CPU 1, CPU 2 and the package as a whole (look at their corresponding temp*_label files). The hwmon0 that's being reported by acpitz is a generic one probably being reported by the motherboard.

Anyway, tpfancontrol-rs only supports the thinkpad_acpi's hwmon sensors. It could support arbitrary sensors like thinkfan apparently does, but at that point it's kind of not Thinkpad-specific any more. I have been working on another TUI monitor for generic hwmons at https://github.com/Arnavion/hwtop. But that one currently cannot set fan speeds, only monitor them. I want to support setting fan speeds with it but haven't had the time to implement it.

from tpfancontrol-rs.

smhmd avatar smhmd commented on June 27, 2024

Thanks for the explanation (hand-holding, if you ask me.)

$ cat /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_label
Package id 0
$ cat /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp2_label
Core 0
$ cat /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp3_label
Core 1

I want to support setting fan speeds with it but haven't had the time to implement it.

Care to open an issue that I could subscribe to?

from tpfancontrol-rs.

Related Issues (6)

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.