Skip to content

YoyPa/isw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8fb9ce8 · Mar 7, 2018

History

24 Commits
Nov 4, 2017
Nov 4, 2017
Oct 23, 2017
Mar 7, 2018
Mar 7, 2018

Repository files navigation

ISW / Ice-Sealed Wyvern

Warning

Purpose

isw was made as an equivalent of "control tools by pherein" but under linux.

In details

  • Replace value at ADDRESS,ADDRESS+1,...,ADDRESS+5.
  • The ADDRESS value will be replaced by VALUE and following one incremented by X (from VALUE).
  • VALUE correspond to °C.
  • X is the increment for VALUE.
  • In Short: Fan will start spinning at VALUE and increase speed every X °C.

NB: EC contain 7 values, only 6 of them are edited, last value is unchanged (100°C).

How to use it ?

  • It's just a python script to launch with wanted options, you can have a list with ./isw.py -h
  • It will need ec_sys module so you should use isw -l or isw -ls to load it (read below).
  • Then use options -a -v -x if you want to change default and -w to write in EC.
  • Option -c can be used alone or in conjuction with -w like -cw -wc -cwc to print EC before/after write or both.

NB: all option exept -h need priviledges.

isw -s

It add the following for ec_sys to load at startup:

"ec_sys" > /etc/modules-load.d/isw-ec_sys.conf
"options ec_sys write_support=1" > /etc/modprobe.d/isw-ec_sys.conf

isw -l

It load ec_sys directly with:

modprobe ec_sys write_support=1

isw -c

It check your EC with:

od -A x -t x1z /sys/kernel/debug/ec/ec0/io

TODO

  • Daemonisation ?
    • Launch at startup
    • Launch at event(power source change)