Code Monkey home page Code Monkey logo

Comments (5)

vmatare avatar vmatare commented on August 26, 2024

Hm, it's strange that there's no error being logged. Try running journalctl -xe as the message states after trying to start thinkfan. If that doesn't reveal any error message as well, try running thinkfan directly on the terminal: thinkfan -n. That should definitely give some kind of hint about what's going wrong.

from thinkfan.

arooni avatar arooni commented on August 26, 2024

Thanks for the quick response;

You were right; there was a problem with my config file. Which I fixed; but I'm still experiencing the problem in getting it to run automatically. It appears to run fine if I do sudo thinkfan ;; (Daemon PID: 22285) ;; but then how can I have this run on startup?

`

[I] ✘  ~  sudo thinkfan -n
[sudo] password for david:

/etc/thinkfan.conf:43:sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

/etc/thinkfan.conf:44:sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

/etc/thinkfan.conf:45:sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

/etc/thinkfan.conf:46:sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

/etc/thinkfan.conf:57:(127, 79, 32767)
LOWER limit doesn't overlap with previous UPPER limit.
Refusing to run without usable config file!
[I] ✘  ~  sudo vim /etc/thinkfan.conf
[I] ~  sudo thinkfan -n

/etc/thinkfan.conf:43:sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

/etc/thinkfan.conf:44:sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

/etc/thinkfan.conf:45:sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

/etc/thinkfan.conf:46:sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

WARNING: Using default fan control in /proc/acpi/ibm/fan.

WARNING: You're using simple temperature limits without correction values, and your fan will only start at 55 °C. This can be dangerous for your hard drive.

sleeptime=5, tmax=56, last_tmax=56, biased_tmax=56 -> fan="level 3"

^C
Caught deadly signal. Cleaning up and resetting fan control.
[I] ~  systemctl status thinkfan.service
● thinkfan.service - simple and lightweight fan control program
Loaded: loaded (/lib/systemd/system/thinkfan.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-02-06 13:50:27 CST; 6h ago
Process: 1153 ExecStart=/usr/sbin/thinkfan (code=exited, status=4)

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
[I] ✘  ~  sudo thinkfan -n

/etc/thinkfan.conf:43:sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

/etc/thinkfan.conf:44:sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

/etc/thinkfan.conf:45:sensor /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

/etc/thinkfan.conf:46:sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input
WARNING: The sensor' keyword is deprecated. Please use the hwmon' or `tp_thermal' keywords instead!

WARNING: Using default fan control in /proc/acpi/ibm/fan.

WARNING: You're using simple temperature limits without correction values, and your fan will only start at 55 °C. This can be dangerous for your hard drive.

sleeptime=5, tmax=55, last_tmax=55, biased_tmax=55 -> fan="level 3"
^C
Caught deadly signal. Cleaning up and resetting fan control.
[I] ~ 
`

from thinkfan.

arooni avatar arooni commented on August 26, 2024

ps; my config file is here: https://gist.github.com/d9475f5b6926f8b5cd40222037f9e8c6

from thinkfan.

vmatare avatar vmatare commented on August 26, 2024

Well, once you fixed your config file, everything should be fine. I don't use Ubuntu, so I don't know how you're supposed to enable a service on bootup there. However on any halfways compliant Linux that runs systemd, it should suffice to enable the systemd service:

systemctl enable thinkfan

from thinkfan.

arooni avatar arooni commented on August 26, 2024

It's working now! Thanks for your help... what a great piece of software you've written. You can close out this issue.

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.