Giter Site home page Giter Site logo

michaelsoeren / lenovo-yoga-fan-control Goto Github PK

View Code? Open in Web Editor NEW

This project forked from senior-sigan/lenovo-yoga-fan-control

1.0 1.0 0.0 20 KB

Program for Linux to control Fan Speed on Lenovo Yoga 13.

License: GNU General Public License v2.0

CMake 9.49% C++ 45.50% Shell 45.01%

lenovo-yoga-fan-control's Introduction

lenovo-yoga-fan-control

Program for Linux-based OS to control Fan Speed on Lenovo Yoga 13.

Inside the Lenovo Yoga is an embedded controller (EC), which is responsible for some of the Yoga's low-level tasks. One of them is Fan controling.

There is 'notebook fan control' programm for controlling Fan on windows in internet.

Temperature Monitoring and Fan Control

There is a CPU temperature sensor connected to the EC via SMBus; note that this SMBus is not accessible by the CPU, and so the Linux i2c drivers cannot see any devices on this bus.

The fan is connected to a fan controller in the EC, which allows the fan speed to be varied (using PWM) between 0% and 100% duty cycle. By default, the EC sets the fan speed very strange. All time works on 60% of maximum fan speed.

This program works in automatic mode. It's controling Fan with my custom temp table. You should run it as root in background. I plane to make linux kernel with this functioanlity.

HowTo use

You can compile program from source.

Compiling from sourse:

sudo apt-get install gcc-4.9-base cmake git g++
git clone https://github.com/blan4/lenovo-yoga-fan-control.git
cd lenovo-yoga-fan-control
cmake CMakeLists.txt
make
sudo ./yoga_fan

For running script at runtime do this as ROOT:

sudo -s
make install
update-rc.d yoga_fan_daemon defaults

If you use system.d you should copy service file yoga_fan.service to /etc/systemd/system/ directory. After that enable service by sudo systemctl enable yoga_fan.service

Useful links

Ec specification

Yoga TempTable Bios patch for old versions

Linux IO programming

Kernel module for Asus eeePc

NBFC

###TODO:

  • add daemon for ubuntu
  • add daemon for systemd based
  • add config file
  • widget with fan speed and temperature
  • add fan device output and input to /sys/class/hwmon

lenovo-yoga-fan-control's People

Contributors

senior-sigan avatar

Stargazers

Michael Holstein avatar

Watchers

James Cloos avatar

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.