Code Monkey home page Code Monkey logo

Comments (8)

Andrei-Pozolotin avatar Andrei-Pozolotin commented on August 26, 2024 1

OPINION=NO:YES:YES

  1. Do we need a conversion tool?
  • NO: *.conf file is small enough
  1. Should support for old-format configs be dropped?
  • YES: drop old-format configs after 1.0
  1. Should any of this happen before 1.0 is officially released?
  • YES: use 1.0 as transition release
  • keep old *.conf parser in 1.0
  • provide new *.yaml parser in 1.0
  • startup logic for 1.0 : try *.conf first, fall back to *.yaml

from thinkfan.

dailyherold avatar dailyherold commented on August 26, 2024

Definitely like this idea! Really getting into tweaking my own thinkpad t430s setup as of today, and YAML would be great for the conf file. Especially with the more complex per-sensor setups and additional features added from future development.

from thinkfan.

vmatare avatar vmatare commented on August 26, 2024

ok, this is what a YAML config could look like:

sensors:
  - hwmon: /sys/devices/platform/coretemp.0
    temps: [1, 3]

  - tp_thermal: /proc/acpi/ibm/thermal

pwm_fan: /sys/class/hwmon....
#tp_fan: /proc/acpi/ibm/fan

levels:
  - speed: 0
    upper_limit: [50, 50, 50]

  - speed: 2
    lower_limit: [45, 45, 45]
    upper_limit: [60, 60, 60]

  # ...

The way the dashes are use does not look very intuitive to me... better ideas?

from thinkfan.

hungryseashell avatar hungryseashell commented on August 26, 2024

Is this why I get this error in 1.0_beta2 (AUR)?

ERROR: /etc/thinkfan.conf:46: Invalid syntax:
                                   (0,        0,        42)
                                    ^

from thinkfan.

vmatare avatar vmatare commented on August 26, 2024

@hungryseashell please report a separate issue about this. Don't forget to mention the exact version you're using (git/beta?) and your distribution. The complete config file would be helpful as well ;-)

from thinkfan.

 avatar commented on August 26, 2024

I guess the config file format doesnt matter much but what would make it much easier for the most people is a gui to change the basic options like tpfanco or fancontrol-gui

from thinkfan.

vmatare avatar vmatare commented on August 26, 2024

@sixsixfive Originally I deliberately chose not to have a GUI because I wanted to keep things simple from a technical perspective. However I do see that it would help a lot, which is in fact another reason to switch to YAML, because with a GUI we need to write the config, too, and YAML simplifies this a lot.

from thinkfan.

vmatare avatar vmatare commented on August 26, 2024

YAML config is merged into master. Closing this so new issues are reported individually.

from thinkfan.

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.