Lower fan frequency, simplify fan curve

This commit is contained in:
Jeremy Soller 2020-02-17 20:50:34 -07:00
parent fa8447cd4d
commit db698ee6d9
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
6 changed files with 18 additions and 30 deletions

View File

@ -106,8 +106,8 @@ void main(void) {
lid_event();
// Checks for keyboard/mouse packets from host
kbc_event(&KBC);
// Only run the following once out of every 256 loops
if (main_cycle == 0) {
// Only run the following once a second
if (time_get() % 1000 == 0) {
// Updates fan status and temps
peci_event();
// Updates battery status

View File

@ -25,14 +25,10 @@ struct FanPoint {
// Fan curve with temperature in degrees C, duty cycle in percent
struct FanPoint __code FAN_POINTS[] = {
FAN_POINT(65, 30),
FAN_POINT(70, 35),
FAN_POINT(75, 40),
FAN_POINT(78, 45),
FAN_POINT(80, 50),
FAN_POINT(81, 55),
FAN_POINT(82, 65),
FAN_POINT(83, 75),
FAN_POINT(65, 40),
FAN_POINT(70, 45),
FAN_POINT(75, 55),
FAN_POINT(80, 75),
FAN_POINT(84, 100),
};

View File

@ -108,8 +108,8 @@ void main(void) {
lid_event();
// Checks for keyboard/mouse packets from host
kbc_event(&KBC);
// Only run the following once out of every 256 loops
if (main_cycle == 0) {
// Only run the following once a second
if (time_get() % 1000 == 0) {
// Updates fan status and temps
peci_event();
// Updates battery status

View File

@ -25,14 +25,10 @@ struct FanPoint {
// Fan curve with temperature in degrees C, duty cycle in percent
struct FanPoint __code FAN_POINTS[] = {
FAN_POINT(65, 30),
FAN_POINT(70, 35),
FAN_POINT(75, 40),
FAN_POINT(78, 45),
FAN_POINT(80, 50),
FAN_POINT(81, 55),
FAN_POINT(82, 65),
FAN_POINT(83, 75),
FAN_POINT(65, 40),
FAN_POINT(70, 45),
FAN_POINT(75, 55),
FAN_POINT(80, 75),
FAN_POINT(84, 100),
};

View File

@ -110,8 +110,8 @@ void main(void) {
lid_event();
// Checks for keyboard/mouse packets from host
kbc_event(&KBC);
// Only run the following once out of every 256 loops
if (main_cycle == 0) {
// Only run the following once a second
if (time_get() % 1000 == 0) {
// Updates fan status and temps
peci_event();
// Updates battery status

View File

@ -25,14 +25,10 @@ struct FanPoint {
// Fan curve with temperature in degrees C, duty cycle in percent
struct FanPoint __code FAN_POINTS[] = {
FAN_POINT(65, 30),
FAN_POINT(70, 35),
FAN_POINT(75, 40),
FAN_POINT(78, 45),
FAN_POINT(80, 50),
FAN_POINT(81, 55),
FAN_POINT(82, 65),
FAN_POINT(83, 75),
FAN_POINT(65, 40),
FAN_POINT(70, 45),
FAN_POINT(75, 55),
FAN_POINT(80, 75),
FAN_POINT(84, 100),
};