Code Monkey home page Code Monkey logo

lenovo-fan-controller's Introduction

Lenovo Ideapad Fan Control

Fan control indicator for Ubuntu's Unity desktop.

Provided as-is without support, guarantees or warranty. Use entirely at your own risk. Developed for a Lenovo z570 running Ubuntu 14.10 w/ Unity. May work on other Lenovo Ideapad systems - see the 'Set up' section.

This my first Python project - the best structure and conventions may not be adhered to while I'm still learning!

Setup

This script should auto detect the 'fan_mode' file used by your operating system to set the fan speeds. Toggle it on/off by setting autoDetectEnabled in fileWriter to either True or False. If false, it will revert to the path stored in FAN_MODE_FULLPATH.

FAN_MODE_FULLPATH in fileWriter.py may need to be altered to point to the location of your fan_mode file. This can be found by running the following command in a terminal:

find /sys/devices -name "fan_mode"

Copy and paste the file path into the FAN_MODE_FULLPATH variable and then run fanControl.py. Ensure fileWriter.py is in the same location.

Requirements

  • python 2.7 (sudo apt-get install python)
  • python-gobject package installed (sudo apt-get install python-gobject)
  • gksudo package (sudo apt-get install gksu)
  • Desktop environment w/ support for Appindicators (e.g Unity)

lenovo-fan-controller's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lenovo-fan-controller's Issues

Lenovo İdeapad Z500 Not Working

Hello there,
When I run fileWriter.py I get an error like below how can I fix it? I guess this is why the fan control does not work.

$ sudo ./fileWriter.py Auto detected file_mode path:/sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/fan_mode Traceback (most recent call last): File "./fileWriter.py", line 46, in <module> raise ArgumentError('No second argument to use as fan mode') TypeError: __init__() takes exactly 3 arguments (2 given)

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.