Coder Social home page Coder Social logo

lenovo-sa120-fanspeed-utility's Introduction

lenovo-sa120-fanspeed-utility

This is currently in prototype status.

Requirements

Requires Python and the sg_ses utility, provided by the sg3_utils package.

Debian-based systems might use:

# apt-get install sg3-utils

On RHEL/CentOS systems:

# yum install sg3_utils

FreeNAS 9.10 includes sg_ses as part of the standard image.

Usage

Find the SCSI Enclosure Services device corresponding to your SA120. On Linux, this is likely one of the /dev/sg* devices. (Try lsscsi?) On FreeBSD, this is likely /dev/ses* instead.

You can use sg_ses to identify SES devices, e.g.:

# sg_ses /dev/sg0
  LSI CORP  SAS2X28           0717
…
# sg_ses /dev/sg1
  LENOVO    ThinkServerSA120  1007
…

Alternatively, you can use 'lsscsi' and 'grep' to identify all SA120 enclosures with a single command, e.g.:

# lsscsi --generic | grep ThinkServerSA120
  [6:0:1:0]    enclosu LENOVO   ThinkServerSA120 1007  -          /dev/sg6
  [6:0:13:0]   enclosu LENOVO   ThinkServerSA120 1007  -          /dev/sg18
…

Once you've found your SA120, use fancontrol.py to set the fan speed:

# python fancontrol.py /dev/sg0 2
Fan 0 speed: 444
Fan 1 speed: 613
Fan 2 speed: 606
Fan 3 speed: 446
Fan 4 speed: 604
Fan 5 speed: 617
Reading current configuration...
Setting fan 0 to 2
Setting fan 1 to 2
Setting fan 2 to 2
Setting fan 3 to 2
Setting fan 4 to 2
Setting fan 5 to 2
  LENOVO    ThinkServerSA120  1007
Sending Enclosure Control [0x2] page, with page length=296 bytes

Fan 0 speed: 820
Fan 1 speed: 945
Fan 2 speed: 932
Fan 3 speed: 812
Fan 4 speed: 926
Fan 5 speed: 945

lenovo-sa120-fanspeed-utility's People

Contributors

andrewx192 avatar matttavares avatar willglynn avatar

Watchers

 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.