Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


CPU Temperature Gadget

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
VikFreeze
Newbie cheater
Reputation: 0

Joined: 14 Feb 2010
Posts: 21
Location: Basking in the warm glow of several computer monitors

PostPosted: Mon Aug 01, 2016 9:40 am    Post subject: CPU Temperature Gadget Reply with quote

Hi everyone!
I see the Forum is still alive and looks exactly the same as it did years ago, man its good to be back!(DB your avatar cracks me up)

<Backstory>
Back in in the dark ages(Vista) there were these little Plug-ins called gadgets, witch were(mostly) just a flashy way to use up the little system resources you had left... but there was one that was actually useful, a little gadget that sat in the corner and shows ram usage, load and temperature for each core.
Now i didn't stick too long with Vista because i like my PC to not run like a cheetah with 3 legs but i did want to keep using that gadget... and i did, retrofitting the gadgets functionality to win7 on my devices, i got it to work till recently with the advent of both a new rig(and what a rig it is Wink ) and the switch to win10, the driver used by the gadget doesn't work with this CPU(i7 5960X) Crying or Very sad
<\Backstory>

So with that i decided to remake the gadget in C#.
And i managed to do almost everything with just .NET and WMI, there's even a section for CPU temperature define in WMI but unfortunately no one bothers to implement it so i look like i have to read this info from the CPU using the RDMSR instruction witch requires ring0 witch requires a kernel driver... this is where the plot thickens

I use RealTemp on my system and it reads out the info i need so i nicked the driver it uses but im drawing a blank on how to use it and im hoping someone here can help me.
I have 4 files: WinRing0.dll, WinRing0.sys, WinRing0x64.dll and WinRing0x64.sys
The dlls export a RDMSR function but it doesn't seem to return anything, i believe im suppose to hookup the .sys file in the OS but i don't know how...
Any help please?

_________________
When at first u don't succeed, blame you parents, and then try again using more POWER!!
- Jeremy Clarkson
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Mon Aug 01, 2016 1:19 pm    Post subject: Reply with quote

Before you dive into this more, have you heard of rainmeter?
https://www.rainmeter.net/

It is an open source project that brings the gadgets back and is fairly popular.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
VikFreeze
Newbie cheater
Reputation: 0

Joined: 14 Feb 2010
Posts: 21
Location: Basking in the warm glow of several computer monitors

PostPosted: Mon Aug 01, 2016 2:08 pm    Post subject: Reply with quote

No, i didn't know about it but this looks like a lot more stuff then what i want...
I might look into this later on but for now i really want to put the final touch on this project since i'm so pumped about it(see attachment).

Simple clean sharp no nonsense info window witch is nailed in place and impossible to close aside from killing the process.
This is the best part about doing it myself, i can make it behave just as i want it to, im thinking of tacking on GPU info afterwards



Untitled-2.fw.png
 Description:
Really proud of how it looks(Note the correct RAM specs witch a lot of these monitoring tools tend to get wrong)
 Filesize:  233.84 KB
 Viewed:  12068 Time(s)

Untitled-2.fw.png



_________________
When at first u don't succeed, blame you parents, and then try again using more POWER!!
- Jeremy Clarkson
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Mon Aug 01, 2016 7:43 pm    Post subject: Reply with quote

WinRing0 is open source, just google around for it and you should be able to find it as well as how to use it.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
VikFreeze
Newbie cheater
Reputation: 0

Joined: 14 Feb 2010
Posts: 21
Location: Basking in the warm glow of several computer monitors

PostPosted: Tue Aug 02, 2016 1:45 am    Post subject: Reply with quote

Ive been googleing around for a week now and all i found is http://openlibsys.org/ witch doesn't seem to be active anymore, even all the other tools(core temp, real temp etc) seem to be using some old version of winring0 and there's no trace of any source code for it...

Hmm... the source for virtual checker is available and it uses winring0, perhaps i can figure out how it uses the driver and replicate it in my project.

_________________
When at first u don't succeed, blame you parents, and then try again using more POWER!!
- Jeremy Clarkson
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Tue Aug 02, 2016 4:03 pm    Post subject: Reply with quote

Here you go:
https://github.com/zacblazic/open-hardware-monitor/tree/master/External/WinRing0

There are a ton of repos on Github with WinRing0's source code and usage. Search on Github for how to make use of it too.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
VikFreeze
Newbie cheater
Reputation: 0

Joined: 14 Feb 2010
Posts: 21
Location: Basking in the warm glow of several computer monitors

PostPosted: Wed Aug 03, 2016 1:48 am    Post subject: Reply with quote

Nice, i only came across a old github projects that didn't have any source in them.

I also figured out how to hook up the .sys file and managed to read the TjMax from the CPU, now i just have to find the addresses for the temp values out of the intel docs.

I might even write my own driver for the lols.

If anyone wants this gadget too leave a message here and i might make a consumer friendly version for the masses if there are enough ppl interested.

_________________
When at first u don't succeed, blame you parents, and then try again using more POWER!!
- Jeremy Clarkson
Back to top
View user's profile Send private message
VikFreeze
Newbie cheater
Reputation: 0

Joined: 14 Feb 2010
Posts: 21
Location: Basking in the warm glow of several computer monitors

PostPosted: Fri Aug 12, 2016 5:51 am    Post subject: Reply with quote

And here it is, the final thing including auto start on login and auto positioning in the upper-right corner were it belongs

Now i can uninstall the whole deprecated gadgets runtime and call it a job well done.
Now to call up Domino's and see if they will make me a balogne sandwich with pizzas instead on bread and 3 pizzas instead of balogne Cool



Gage.png
 Description:
 Filesize:  29.29 KB
 Viewed:  11332 Time(s)

Gage.png



_________________
When at first u don't succeed, blame you parents, and then try again using more POWER!!
- Jeremy Clarkson
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites