From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Asus M2NPV-VM and lm-sensors not working
Date: Sat, 26 Aug 2006 20:40:48 +0000 [thread overview]
Message-ID: <20060826224048.699ce8c8.khali@linux-fr.org> (raw)
In-Reply-To: <200608241001.14052.prakash@punnoor.de>
Hi Rudolf,
> Here are the results extracted from DSDT bytecode:
Thanks for doing that :)
> Method (RVLT, 1, NotSerialized)
> {
> Store (DerefOf (Index (VCRE, 0x00)), Local0)
> //if the user wants VCORE
> If (LEqual (Arg0, Local0))
> {
> Store (VCOR, Local0)
> //READ VCORE reg 0x20
> Store (0x00, Local1)
> While (LEqual (Local0, 0xFF))
> {
> Store (VCOR, Local0)
> If (LEqual (Local1, 0x000186A0))
> {
> Break
> }
>
> //this loop is strange it tests if vcore_reg < 0xff (maybe >)
> //if so then read it again, if loop iteration is 0x000186A0 exit loop
>
> Add (Local1, 0x01, Local1)
> }
>
> Multiply (Local0, 0x10, Local0)
> Multiply (0x0F, 0x0A, Local1)
> Add (Local1, Local0, Local0)
>
> // VCORE = in1*16+150
I guess you mean in0.
>
> Return (Local0)
> }
>
> Store (DerefOf (Index (V333, 0x00)), Local0)
> If (LEqual (Arg0, Local0))
> {
> Store (V33V, Local0)
> Store (0x00, Local1)
> While (LEqual (Local0, 0xFF))
> {
> Store (V33V, Local0)
> If (LEqual (Local1, 0x000186A0))
> {
> Break
> }
>
> Add (Local1, 0x01, Local1)
> }
> Multiply (Local0, 0x10, Local0)
> //V33V = in1 * 16
> Return (Local0)
> }
>
> Store (DerefOf (Index (V500, 0x00)), Local0)
> If (LEqual (Arg0, Local0))
> {
> Store (V50V, Local0)
> Store (0x00, Local1)
> While (LEqual (Local0, 0xFF))
> {
> Store (V50V, Local0)
> If (LEqual (Local1, 0x000186A0))
> {
> Break
> }
>
> Add (Local1, 0x01, Local1)
> }
>
> Multiply (Local0, 0x10, Local0)
> Store (0x22, Local1)
> Store (0x32, Local2)
> Add (Local1, Local2, Local1)
> Multiply (Local0, Local1, Local0)
> Divide (Local0, Local2, Local3, Local0)
> Multiply (0x14, 0x0A, Local1)
> Add (Local1, Local0, Local0)
> // 5V = (((in3 * 16) * (34 + 50)) / 50) + 34
> Return (Local0)
> }
I think it's actually "+ 200" at the end?
I wonder why they compute these constants using multiply, rather than
puting the right value directly...
>
> Store (DerefOf (Index (V120, 0x00)), Local0)
> If (LEqual (Arg0, Local0))
> {
> Store (V12V, Local0)
> Store (0x00, Local1)
> While (LEqual (Local0, 0xFF))
> {
> Store (V12V, Local0)
> If (LEqual (Local1, 0x000186A0))
> {
> Break
> }
>
> Add (Local1, 0x01, Local1)
> }
>
> Multiply (Local0, 0x10, Local0)
> Store (0x1E, Local1)
> Store (0x0A, Local2)
> Add (Local1, Local2, Local1)
> Multiply (Local0, Local1, Local0)
> Divide (Local0, Local2, Local3, Local0)
> Multiply (0x28, 0x0A, Local1)
> Add (Local1, Local0, Local0)
> // 12V = (((in4 * 16) * (30 + 10)) / 10) + 280
> Return (Local0)
> }
And here I think it's "+ 400" at the end.
> All in all they are adding small number to rise the numbers ;)
Yeah, that's really weird. On the one hand, it looks completely broken
to do this, but on the other hand the readings are indeed better that
way. In particular, the battery voltage is really external to the
system, and the the 2.88V reported by the chip are rather low for a
brand new system, so it looks like the chip is not measuring the values
properly in the first place. I don't understand why. I've seen another
board (Asus too) where it works just fine.
Anyway, the driver does its job so there's nothing I can fix. It's up
to the system owner to adjust the voltages in sensors.conf to match the
BIOS ones if they want to.
> I can find also formula for the fans if someone wants.
I think we're OK with the fans now, thanks.
--
Jean Delvare
next prev parent reply other threads:[~2006-08-26 20:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 8:01 [lm-sensors] Asus M2NPV-VM and lm-sensors not working Prakash Punnoor
2006-08-24 15:09 ` Jean Delvare
2006-08-24 15:33 ` Prakash Punnoor
2006-08-25 5:21 ` Prakash Punnoor
2006-08-25 6:53 ` Jean Delvare
2006-08-25 9:12 ` Jean Delvare
2006-08-25 10:41 ` Prakash Punnoor
2006-08-25 17:50 ` Jean Delvare
2006-08-25 18:04 ` Prakash Punnoor
2006-08-25 18:23 ` Jean Delvare
2006-08-25 20:27 ` Rudolf Marek
2006-08-26 9:04 ` Rudolf Marek
2006-08-26 20:40 ` Jean Delvare [this message]
2006-08-27 6:50 ` Prakash Punnoor
2006-08-27 12:47 ` Jean Delvare
2006-08-27 14:31 ` Prakash Punnoor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060826224048.699ce8c8.khali@linux-fr.org \
--to=khali@linux-fr.org \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.