Skip to content

Commit

Permalink
rebase with atx_next branch..
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxd3v committed Dec 10, 2018
1 parent 0e9b7c1 commit 0a21333
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 270 deletions.
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@


v0.2.0 - master
Add option for 'allways on' - DONE
Improve rockspec to create a rock, so that it could be easilly downloaded. WIP
Add support for SysVinit systems. WIP

Expand Down
17 changes: 12 additions & 5 deletions etc/ats.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,36 +52,43 @@ SYSTEM = {
-- CPU used on this Board
CPU = "RK3399"
},



--- Assigning SysFs Locations for control..
--

-- CPU Thermal Zone[ String ]
THERMAL0_CTL = "/sys/class/thermal/thermal_zone0/temp",
-- GPU Thermal Zone[ String ]
THERMAL1_CTL = "/sys/class/thermal/thermal_zone1/temp",
-- FAN Control[ String ]
PWM_CTL = "/sys/class/hwmon/hwmon0/pwm1",


--- Temperature Control Constants
--

-- Max Temperature Allowed for adjusting fan pwm( On this threshold, and above, fan is always on MaxValue )
MAX_CONTINUOUS_THERMAL_TEMP = 60,
-- Min Temperature threshold to activate/deactivate Fan
MIN_CONTINUOUS_THERMAL_TEMP = 40,


--- PWM Parameters Constants
--

-- Adjust conform your Fan specs, some neds greater values, others work with less current( currently not being used .. )
MAX_PWM = 255,
-- Adjust conform your Fan specs, some neds greater values, others work with less current( currently not being used .. )
MIN_PWM = 40,


--- Fan Cilying ON/OFF [ boolean ]
--
-- true - Fan will ve always on
-- false - Fan is start/stop, cycling..
ALWAYS_ON = false,


--- Active profiles, 3 profiles{ profile0, profile1, profile2 }
--

-- Equation to get PWM, PWM( TEMP )
--
-- if( TEMP < MIN_CONTINUOUS_THERMAL_TEMP )
Expand Down
4 changes: 4 additions & 0 deletions include/ats.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ struct Cooling {
/* Adjust conform your Fan specs, some neds greater values, others work with less current( currently not being used .. ) */
unsigned char MIN_PWM;

/*** ON_OFF Cycling Control Constants
**/
unsigned char ALWAYS_ON;

/*** Timers and Instant_PWM_ratio( TEMP )
**/

Expand Down
Loading

0 comments on commit 0a21333

Please sign in to comment.