1
0
mirror of https://github.com/AndrewX192/lenovo-sa120-fanspeed-utility synced 2025-12-06 01:23:19 +00:00
Andrew Sorensen 6cfedbaf2f Merge pull request #1 from willglynn/make_script_executable
Make script executable
2016-05-24 18:22:19 -07:00
2016-05-24 12:47:25 -05:00
2016-04-09 22:03:01 -07:00

lenovo-sa120-fanspeed-utility

This is currently in prototype status.

Requirements

apt-get install sg3-utils

Usage

find your scsi controller (one of the /dev/sgX devices, perhaps using lsscsi)

change /dev/sgX in fanspeed.py if needed.

# python fan.py 2
Fan 0 speed: 0
Fan 1 speed: 947
Fan 2 speed: 932
Fan 3 speed: 812
Fan 4 speed: 932
Fan 5 speed: 947
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: 0
Fan 1 speed: 945
Fan 2 speed: 932
Fan 3 speed: 812
Fan 4 speed: 926
Fan 5 speed: 945

Description
No description provided
Readme Apache-2.0 57 KiB
Languages
Python 100%