Lower fan frequency, simplify fan curve
This commit is contained in:
parent
fa8447cd4d
commit
db698ee6d9
@ -106,8 +106,8 @@ void main(void) {
|
|||||||
lid_event();
|
lid_event();
|
||||||
// Checks for keyboard/mouse packets from host
|
// Checks for keyboard/mouse packets from host
|
||||||
kbc_event(&KBC);
|
kbc_event(&KBC);
|
||||||
// Only run the following once out of every 256 loops
|
// Only run the following once a second
|
||||||
if (main_cycle == 0) {
|
if (time_get() % 1000 == 0) {
|
||||||
// Updates fan status and temps
|
// Updates fan status and temps
|
||||||
peci_event();
|
peci_event();
|
||||||
// Updates battery status
|
// Updates battery status
|
||||||
|
@ -25,14 +25,10 @@ struct FanPoint {
|
|||||||
|
|
||||||
// Fan curve with temperature in degrees C, duty cycle in percent
|
// Fan curve with temperature in degrees C, duty cycle in percent
|
||||||
struct FanPoint __code FAN_POINTS[] = {
|
struct FanPoint __code FAN_POINTS[] = {
|
||||||
FAN_POINT(65, 30),
|
FAN_POINT(65, 40),
|
||||||
FAN_POINT(70, 35),
|
FAN_POINT(70, 45),
|
||||||
FAN_POINT(75, 40),
|
FAN_POINT(75, 55),
|
||||||
FAN_POINT(78, 45),
|
FAN_POINT(80, 75),
|
||||||
FAN_POINT(80, 50),
|
|
||||||
FAN_POINT(81, 55),
|
|
||||||
FAN_POINT(82, 65),
|
|
||||||
FAN_POINT(83, 75),
|
|
||||||
FAN_POINT(84, 100),
|
FAN_POINT(84, 100),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -108,8 +108,8 @@ void main(void) {
|
|||||||
lid_event();
|
lid_event();
|
||||||
// Checks for keyboard/mouse packets from host
|
// Checks for keyboard/mouse packets from host
|
||||||
kbc_event(&KBC);
|
kbc_event(&KBC);
|
||||||
// Only run the following once out of every 256 loops
|
// Only run the following once a second
|
||||||
if (main_cycle == 0) {
|
if (time_get() % 1000 == 0) {
|
||||||
// Updates fan status and temps
|
// Updates fan status and temps
|
||||||
peci_event();
|
peci_event();
|
||||||
// Updates battery status
|
// Updates battery status
|
||||||
|
@ -25,14 +25,10 @@ struct FanPoint {
|
|||||||
|
|
||||||
// Fan curve with temperature in degrees C, duty cycle in percent
|
// Fan curve with temperature in degrees C, duty cycle in percent
|
||||||
struct FanPoint __code FAN_POINTS[] = {
|
struct FanPoint __code FAN_POINTS[] = {
|
||||||
FAN_POINT(65, 30),
|
FAN_POINT(65, 40),
|
||||||
FAN_POINT(70, 35),
|
FAN_POINT(70, 45),
|
||||||
FAN_POINT(75, 40),
|
FAN_POINT(75, 55),
|
||||||
FAN_POINT(78, 45),
|
FAN_POINT(80, 75),
|
||||||
FAN_POINT(80, 50),
|
|
||||||
FAN_POINT(81, 55),
|
|
||||||
FAN_POINT(82, 65),
|
|
||||||
FAN_POINT(83, 75),
|
|
||||||
FAN_POINT(84, 100),
|
FAN_POINT(84, 100),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -110,8 +110,8 @@ void main(void) {
|
|||||||
lid_event();
|
lid_event();
|
||||||
// Checks for keyboard/mouse packets from host
|
// Checks for keyboard/mouse packets from host
|
||||||
kbc_event(&KBC);
|
kbc_event(&KBC);
|
||||||
// Only run the following once out of every 256 loops
|
// Only run the following once a second
|
||||||
if (main_cycle == 0) {
|
if (time_get() % 1000 == 0) {
|
||||||
// Updates fan status and temps
|
// Updates fan status and temps
|
||||||
peci_event();
|
peci_event();
|
||||||
// Updates battery status
|
// Updates battery status
|
||||||
|
@ -25,14 +25,10 @@ struct FanPoint {
|
|||||||
|
|
||||||
// Fan curve with temperature in degrees C, duty cycle in percent
|
// Fan curve with temperature in degrees C, duty cycle in percent
|
||||||
struct FanPoint __code FAN_POINTS[] = {
|
struct FanPoint __code FAN_POINTS[] = {
|
||||||
FAN_POINT(65, 30),
|
FAN_POINT(65, 40),
|
||||||
FAN_POINT(70, 35),
|
FAN_POINT(70, 45),
|
||||||
FAN_POINT(75, 40),
|
FAN_POINT(75, 55),
|
||||||
FAN_POINT(78, 45),
|
FAN_POINT(80, 75),
|
||||||
FAN_POINT(80, 50),
|
|
||||||
FAN_POINT(81, 55),
|
|
||||||
FAN_POINT(82, 65),
|
|
||||||
FAN_POINT(83, 75),
|
|
||||||
FAN_POINT(84, 100),
|
FAN_POINT(84, 100),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user