Giter Site home page Giter Site logo

simpfand's People

Contributors

hspak avatar warrenguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

simpfand's Issues

BASE_LVL cannot be 0

On low temperature, fan should be off. I tried to set BASE_LVL = 0 but that lead to a segfault on startup.

found temp path: /proc/acpi/ibm/fan

For some reason, today my laptop's hwmon is available through /sys/devices/platform/coretemp.0/hwmon/hwmon8/temp1_input, I discovered that simpfand was not working any more because my laptop was very hot, and after investigating, turns out that it was broken but not that much I'd have noticed.

I patched the sources to add hwmon8 to the list of possible paths, but I don't think it is a viable solution, it should probably be doing things like opendir /sys/devices/platform/coretemp.0/hwmon and look at what's in there instead of adding more paths.

And there is the strangen thing is that simpfand was not failing to start after not finding the temp path, it somehow ended up defaulting to /proc/acpi/ibm/fan, which does exist but does not contain what was expected, leading to strange logs like this:

juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: found temp path: /usr/bin/simpfand
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: found max temp path: /usr/bin/simpfand
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "INC_LOW_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "INC_HIGH_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "INC_MAX_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "DEC_LOW_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "DEC_HIGH_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: warning: "DEC_MAX_TEMP" set greater than max temp (0), using default value
juin 01 14:24:50 aching.in.mat.cc simpfand[91625]: lvl: 100(32) -> 1(32)
juin 01 14:24:52 aching.in.mat.cc simpfand[91625]: lvl: 1(32) -> 1(32)

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.