Jump to content

Dell monitoring by SMM and fan control


Slice
 Share

50 posts in this topic

Recommended Posts

So the function get_temp_type is not working with your PCH.

I may propose to manually set

-      int type = i8k_get_temp_type(i);

+    int type = i;

Which is not correct but gives your sensors.

Link to comment
Share on other sites

I got it, registered without acpimonitor.kext

 

2019-11-15 16:04:08.866523+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: Got sigs 44494147 and 44454c4c


2019-11-15 16:04:08.866526+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: Based on I8kfan project adopted to HWSensors by Slice 2014
2019-11-15 16:04:08.866879+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: [Warning] No power status
2019-11-15 16:04:09.211434+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: found fan 0 type -1
2019-11-15 16:04:09.212126+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor:    min speed 2500
2019-11-15 16:04:09.212826+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor:    max speed 4900
2019-11-15 16:04:09.229816+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: found fan 1 type -1
2019-11-15 16:04:09.230378+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor:    min speed 2500
2019-11-15 16:04:09.231072+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor:    max speed 4900
2019-11-15 16:04:09.234111+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: sensor 0 type 0
2019-11-15 16:04:09.234766+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: sensor 1 type 1
2019-11-15 16:04:09.235420+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: sensor 2 type 2
2019-11-15 16:04:09.236075+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: sensor 3 type 3
2019-11-15 16:04:09.236725+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: sensor 4 type 4
2019-11-15 16:04:09.237379+0700  localhost kernel[0]: (SMIMonitor) SMIMonitor: sensor 5 type 5

hopefully someday I can't monitor the PCH temp,

 

thank you @Slice

Edited by Regi Yassin
Link to comment
Share on other sites

  • 1 month later...
On 8/12/2019 at 9:22 AM, Slice said:

Big news!

I added an ability to manually set Fan speed.

See how it works:

1. The computer is cool and the fan is stopped

Снимок экрана 2019-08-12 в 18.52.21.png

2. I set Manual Drive

sudo smcwrite F0Md 0100

and then set the fan 0 to low speed

sudo smcwrite F0As 0100

Снимок экрана 2019-08-12 в 19.01.36.png

3. Then I forced the fan to HIGH speed

sudo smcwrite F0As 0200

Снимок экрана 2019-08-12 в 19.01.57.png

OK, I need no more the high speed so I stopped the fan

sudo smcwrite F0As 0000

Or I want to give the computer automatic control on fans

sudo smcwrite F0Md 0000

 

@vector sigma

Can we add this function to HWMonitorSMC2? I see there is a template for FAN control.

What I need is to set in preferences

Temp01 - a temperature to switch fan from OFF to LOW. (default 50)

Temp12 - from LOW to HIGH (default 70)

Temp21 - from HIGH to LOW (default 60)

Temp10 - from LOW to OFF (default 40)

and a switch manual/auto.

When the Monitor checks CPU Temp it will write SMC keys as shown above.

This is great! it works quite well on my DELL m3800, and I can use it to control the speed. Slice, is the source code of SMIMonitor updated on sf.net to include the change? I'm currently using Rehabman's fakesmc which gives me quick boot time. I used your version of fakesmc, but it gave me random restart when booting into the system. I will be interested to look at the codes, and hopefully integrate your fan control function in Rehabman's fakesmc sets. Thanks!

Edited by roswellian
Link to comment
Share on other sites

3 hours ago, roswellian said:

This is great! it works quite well on my DELL m3800, and I can use it to control the speed. Slice, is the source code of SMIMonitor updated on sf.net to include the change? I'm currently using Rehabman's fakesmc which gives me quick boot time. I used your version of fakesmc, but it gave me random restart when booting into the system. I will be interested to look at the codes, and hopefully integrate your fan control function in Rehabman's fakesmc sets. Thanks!

Take my sources from github. The link is in my signature.

Link to comment
Share on other sites

  • 4 months later...
On 11/16/2019 at 2:09 AM, Regi Yassin said:

yeah, I see it, but I wonder why multiplier isn't showing the correct value with istatmenus ?

I haven't corrected the name of the temp

 

1477213250_ScreenShot2019-11-16at01_07_45.png.58f501121d593f66c248d92559ff653a.png

 

EDIT:

got it fixed for multiplier

 

How did you fix the multiplier? I have the value from 1025x to 51200x

Link to comment
Share on other sites

  • 3 months later...
12 hours ago, adiif1 said:

Please help me :/

 

sudo: unable to execute ./SMC_util3: Bad CPU type in executable

 

and me only work 

 

sudo ./smcwrite F1Tg 0100

 

+- 2500 rpm

 

dell m4800 :/

you have to use smcwrite only. See post #2 in the thread.

Link to comment
Share on other sites

38 minutes ago, Slice said:

Do the follow

sudo smcwrite F0Md 0100

sudo smcwrite F0As 0200

Nothing :/

edit:

 

sudo smcwrite F0Md 0100

sudo smcwrite F0As 0200

sudo smcwrite F0Tg 0200

 

 3 commands and then it works

Edited by adiif1
Link to comment
Share on other sites

  • 10 months later...
10 hours ago, LIMITANT said:

@Slice thank you 

I've followed your instructions and everything is working great. 

Please I'd to keep my fan settings every boot without using terminal every time to set it up ; second how to make the low value for fan more lower , in my case low fan mode is 2300 prm i want it max 1800 prm 

Thank you 

It is not possible. I can set {Off, Low, High...}. Other values are out of my control.

About preset values consider to use some script at startup.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
2 minutes ago, WhenMusicAttacks said:

Is this going to work with OpenCore and VirtulSMC? I have a Dell Precision 3530 that will blow full speed at just 60c and also takes more than 10 minutes at 40c to go back to quiet operation after workloads. I have tried to use sudo ./smcwrite F1Tg 0100 without result

No. It is invented for FakeSMC.

Link to comment
Share on other sites

  • 8 months later...

Hi there, I want to ask how is this project going on? Actually, My Dell Laptop meets the problem of fan scheduling. The speed of the fan will increase to the MAX value in a short time, when the temperature of the core of the CPU is cooling, the speed is still very high, and it needs more than 10~20 mins to let the fan quiet. Can this project could solve the problem? Any reply will be appreciated.

Link to comment
Share on other sites

2 hours ago, jianzhao654 said:

Hi there, I want to ask how is this project going on? Actually, My Dell Laptop meets the problem of fan scheduling. The speed of the fan will increase to the MAX value in a short time, when the temperature of the core of the CPU is cooling, the speed is still very high, and it needs more than 10~20 mins to let the fan quiet. Can this project could solve the problem? Any reply will be appreciated.

Yes, I think the project will help you. All file are up to date.

But you should apply some effort.

Compilation is possible with Xcode11 or older. I am not tested in newer versions.

Link to comment
Share on other sites

9 hours ago, Slice said:

Yes, I think the project will help you. All file are up to date.

But you should apply some effort.

Compilation is possible with Xcode11 or older. I am not tested in newer versions.

Sure, effort is necessary. I will try. Thanks!!!

Link to comment
Share on other sites

10 hours ago, Slice said:

Yes, I think the project will help you. All file are up to date.

But you should apply some effort.

Compilation is possible with Xcode11 or older. I am not tested in newer versions.

The latest release just works fine. But the sensors shown by istat menus is less than using VirtualSMC. And the kexts with red tags are the kexts I am using.

SCR-20220729-fqx.png.1adc650e1356fd3e7ddde6eb9a8c4cf2.png

SCR-20220729-fjk.png.d85d453a5635344b44f3ccb42bdafcde.png

SCR-20220729-fm2.png.1ad1bcb04d88e8e939472f9067a97481.png

One more little question, can I use HWMonitorSMC2 to control the fan?

Link to comment
Share on other sites

To monitor only. The functionality of CONTROL is still not embedded into HWMonitorSMC2. The author is abandoned.

If you will then you may modify the project. I will accept your changes.

 

Don't wonder about different temperatures. Second screen also shows high CPU frequency -> high CPU load so why its temperature is higher and fan is faster.

Link to comment
Share on other sites

4 hours ago, Slice said:

To monitor only. The functionality of CONTROL is still not embedded into HWMonitorSMC2. The author is abandoned.

If you will then you may modify the project. I will accept your changes.

 

Don't wonder about different temperatures. Second screen also shows high CPU frequency -> high CPU load so why its temperature is higher and fan is faster.

Ok, then I should just use my machine. Sorry, I not good at coding. 🙂

Link to comment
Share on other sites

39 minutes ago, jianzhao654 said:

Ok, then I should just use my machine. Sorry, I not good at coding. 🙂

See first post. Are those instruction helpful for you?

Link to comment
Share on other sites

 Share

×
×
  • Create New...