Friday, 30 January 2009

Configuring lm_sensors for Asus P5E3 motherboard

Standard configuration of lm_sensors with sensors-detect find right monitoring chip and it was showing all reasonable data except voltage, that was differing by more than 10% of nominal. And it was slightly bothering me.

Finally, after reading lm_sensors Asus article, I was able to craft right voltage sensor formulas for my Asus P5E3 motherboard that give the same values as BIOS.

First, need to decompile description tables (iasl package had to be installed):
# cat /proc/acpi/dsdt > dsdt.bin
# iasl -d dsdt.bin

Deciphering all ACPI magic that is written to dsdt.dsl is not very easy. I was looking for RVLT function that gives the formula for voltage:
Method (RVLT, 1, NotSerialized)
{
    And (Arg0, 0xFFFF, Local0)
    Store (VGET (Local0), Local1)
    Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), Zero)),
        Local2)
    Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), One)),
        Local3)
    Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), 0x02)),
        Local4)
    Multiply (Local1, Add (Local2, Local3), Local5)
    Divide (Local5, Local3, , Local5)
    Add (Local5, Local4, Local5)
    Return (Local5)
} 

Translating to normal language it does approximately the following:
Local1 = VGET(Local0);
Local2 = VPAR[Local0][0];
Local3 = VPAR[Local0][1];
Local4 = VPAR[Local0][2];
return Local1 * (Local2 + Local3) / Local3 + Local4;

To find out Local parameters for each sensors, need to look at VPAR definition:
Name (VPAR, Package (0x04)
{
    Package (0x03)
    {
        Zero,
        One,
        Zero
    },

    Package (0x03)
    {
        0x22,
        0x22,
        Zero
    },

    Package (0x03)
    {
        0x14,
        0x0A,
        Zero
    },

    Package (0x03)
    {
        0x3C,
        0x0A,
        Zero
    }
})

Comparing this to order of data in other places of tables (VCore, +3.3V, +12V, +5V) one can see that right coefficients for +12V is 60/10 and for +5V is 20/10.

Resulting config is here.

21 comments:

andron said...

What version of lm_sensors you are using?

Alexey Torkhov said...

That is lm_sensors-3.0.2.

Anonymous said...

[url=http://www.mulberryinoutlet.co.uk]Mulberry outlet[/url] The inn offers rooms with kitchens, balconies and queen-sized beds with an additional sleeper sofa. http://dkgoose.com Edqvcwndv http://csrhelix.com
eahohg 795594 [url=http://www.chilliwackbombersoutlet.com]goose identification[/url] 624937 [url=http://www.officialcanadagooseparkas.ca]canada goose jackets sale toronto[/url]

Anonymous said...

[url=http://www.mulberryinoutlet.co.uk]Mulberry Alexa[/url] Why I didn play with girls before? And why they call me guy to just play with guys?Korean girls are very different with Canadian girls. [url=http://dkgoose.com]Canada Goose tilbud[/url] Pwfolruro [url=http://csrhelix.com]canada goose jacka[/url]
avkkex 351421 [url=http://www.chilliwackbombersoutlet.com]canada goose jacket review[/url] 288552 [url=http://www.officialcanadagooseparkas.ca]canada goose jackets price[/url]

Anonymous said...

[url=http://bestlouboutinshop.co.uk]christian louboutin shoe sale[/url] You had to spend over $1,000 on your home or vacation home. [url=http://dkgoose.com]Canada Goose jakke[/url] Scaukarwg [url=http://www.louboutinoutletuks.co.uk]christian louboutin outlet online[/url]
uiilmv 586481 976375 [url=http://www.beatsbydreaonsales.com]beats by dre christmas sales[/url]

Hamlet said...

That is lm_sensors-3.0.2.

Anonymous said...

Payday lenders offer loans of moderateness ranging between $500 and $1500
for the first-time customer payday loans obviously,
in case you do that a great deal you might
be shooting yourself within the financial foot.

Anonymous said...

http://www.site.com - [url=http://www.site.com]site[/url] site
site

Anonymous said...

I like it when individuals come together and share
views. Great site, stick with it!

Here is my website: Christian Louboutin Boots

Anonymous said...

Can you tell us more about this? I'd want to find out more details.

Have a look at my website: replica christian louboutin

Anonymous said...

Recommended Pages:
bad credit consolidation loans
debt consolidation loans bad credit
debt consolidation loans bad credit
debt consolidation loans bad credit
debt consolidation loans bad credit
unsecured debt consolidation loans
debt consolidation loans bad credit
bad credit debt consolidation loan
unsecured debt consolidation loans
debt consolidation loans bad credit
bill consolidation loans
unsecured debt consolidation loan
unsecured debt consolidation loans
unsecured debt consolidation loan
bad credit debt consolidation loans

Anonymous said...

Can you tell us more about this? I'd want to find out some additional information.

Also visit my web page: discount christian louboutin

Karlaicck said...

Recommended Pages: bad credit consolidation loans debt consolidation loans bad credit debt consolidation loans bad credit debt consolidation loans bad credit debt consolidation loans bad credit unsecured debt consolidation loans debt consolidation loans bad credit bad credit debt consolidation loan unsecured debt consolidation loans debt consolidation loans bad credit bill consolidation loans unsecured debt consolidation loan unsecured debt consolidation loans unsecured debt consolidation loan bad credit debt consolidation loans

Richard Sandberg said...

These blogs are quite incredible that have provided the best knowledge.best graphics card 2014

Albert einstien said...

That’s really a nice one, I have seen many blogs but they are outdated so I’m pleased to see this blog now.
open multiple urls at once

jake Bercher said...

wow this good but ,I like your post and good pics may be any peoples not like because defrent mind all poeple , q551ln-bbi706

nelsongregloanfirms greg said...

Let unite our self
Let come for a better loan today

This is to inform the general public that Mr Nelson Greg is a private dynamic loan lender, has open up a financial opportunity for everyone in need of any financial help. We give out loan at 2% interest rate to individuals, firms and companies under a clear and understandable terms and condition. contact us today by e-mail: nelsongregloanfirms2@gmail.com with the following personal details

1) Full Name: ..............................
2) Country: ................................
3) Address: ................................
4) State: ..................................
5) Sex: .............................. .....
6) Marital status: .........................
7) Occupation: .............................
8) Telephone Number: .......................
9) At present position in the workplace: ...
10) Monthly Income: ........................
11) Loan Amount Needed: ....................
12) Loan Duration: .........................
13) Purpose of Loan: .......................
14) Religion: ..............................
15) Have you ever applied before ...........

Contact us today and get your loan transfer tomorrow.
Await your respond, nelsongregloanfirms2@gmail.com.
Thanks
Regard
Mr Nelson Greg G.M.D

nelsongregloanfirms greg said...

Let unite our self
Let come for a better loan today

This is to inform the general public that Mr Nelson Greg is a private dynamic loan lender, has open up a financial opportunity for everyone in need of any financial help. We give out loan at 2% interest rate to individuals, firms and companies under a clear and understandable terms and condition. contact us today by e-mail: nelsongregloanfirms2@gmail.com with the following personal details

1) Full Name: ..............................
2) Country: ................................
3) Address: ................................
4) State: ..................................
5) Sex: .............................. .....
6) Marital status: .........................
7) Occupation: .............................
8) Telephone Number: .......................
9) At present position in the workplace: ...
10) Monthly Income: ........................
11) Loan Amount Needed: ....................
12) Loan Duration: .........................
13) Purpose of Loan: .......................
14) Religion: ..............................
15) Have you ever applied before ...........

Contact us today and get your loan transfer tomorrow.
Await your respond, nelsongregloanfirms2@gmail.com.
Thanks
Regard
Mr Nelson Greg G.M.D

nelsongregloanfirms greg said...

Let unite our self
Let come for a better loan today

This is to inform the general public that Mr Nelson Greg is a private dynamic loan lender, has open up a financial opportunity for everyone in need of any financial help. We give out loan at 2% interest rate to individuals, firms and companies under a clear and understandable terms and condition. contact us today by e-mail: nelsongregloanfirms2@gmail.com with the following personal details

1) Full Name: ..............................
2) Country: ................................
3) Address: ................................
4) State: ..................................
5) Sex: .............................. .....
6) Marital status: .........................
7) Occupation: .............................
8) Telephone Number: .......................
9) At present position in the workplace: ...
10) Monthly Income: ........................
11) Loan Amount Needed: ....................
12) Loan Duration: .........................
13) Purpose of Loan: .......................
14) Religion: ..............................
15) Have you ever applied before ...........

Contact us today and get your loan transfer tomorrow.
Await your respond, nelsongregloanfirms2@gmail.com.
Thanks
Regard
Mr Nelson Greg G.M.D

nelsongregloanfirms greg said...

Let unite our self
Let come for a better loan today

This is to inform the general public that Mr Nelson Greg is a private dynamic loan lender, has open up a financial opportunity for everyone in need of any financial help. We give out loan at 2% interest rate to individuals, firms and companies under a clear and understandable terms and condition. contact us today by e-mail: nelsongregloanfirms2@gmail.com with the following personal details

1) Full Name: ..............................
2) Country: ................................
3) Address: ................................
4) State: ..................................
5) Sex: .............................. .....
6) Marital status: .........................
7) Occupation: .............................
8) Telephone Number: .......................
9) At present position in the workplace: ...
10) Monthly Income: ........................
11) Loan Amount Needed: ....................
12) Loan Duration: .........................
13) Purpose of Loan: .......................
14) Religion: ..............................
15) Have you ever applied before ...........

Contact us today and get your loan transfer tomorrow.
Await your respond, nelsongregloanfirms2@gmail.com.
Thanks
Regard
Mr Nelson Greg G.M.D

nelsongregloanfirms greg said...

Let unite our self
Let come for a better loan today

This is to inform the general public that Mr Nelson Greg is a private dynamic loan lender, has open up a financial opportunity for everyone in need of any financial help. We give out loan at 2% interest rate to individuals, firms and companies under a clear and understandable terms and condition. contact us today by e-mail: nelsongregloanfirms2@gmail.com with the following personal details

1) Full Name: ..............................
2) Country: ................................
3) Address: ................................
4) State: ..................................
5) Sex: .............................. .....
6) Marital status: .........................
7) Occupation: .............................
8) Telephone Number: .......................
9) At present position in the workplace: ...
10) Monthly Income: ........................
11) Loan Amount Needed: ....................
12) Loan Duration: .........................
13) Purpose of Loan: .......................
14) Religion: ..............................
15) Have you ever applied before ...........

Contact us today and get your loan transfer tomorrow.
Await your respond, nelsongregloanfirms2@gmail.com.
Thanks
Regard
Mr Nelson Greg G.M.D