All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali.rohar@gmail.com>
To: Jean Delvare <jdelvare@suse.de>
Cc: Guenter Roeck <linux@roeck-us.net>, linux-kernel@vger.kernel.org
Subject: Re: Dell Latitude E6440 & i8k
Date: Fri, 16 May 2014 21:23:02 +0200	[thread overview]
Message-ID: <201405162123.02112@pali> (raw)
In-Reply-To: <20140516211117.0c766287@endymion.delvare>

[-- Attachment #1: Type: Text/Plain, Size: 2347 bytes --]

On Friday 16 May 2014 21:11:17 Jean Delvare wrote:
> Hi Pali,
> 
> On Fri, 16 May 2014 20:37:41 +0200, Pali Rohár wrote:
> > Hello,
> > 
> > on Dell Latitude E6440 driver i8k reporting total nonsense
> > values
> 
> That's kind of excessive wording, the output isn't that bad.
> 

I mean fan RPM & temp4. Those are for sure incorrect.

> > $ sensors
> > i8k-virtual-0
> > Adapter: Virtual device
> > Right Fan:   93450 RPM
> > CPU:          +57.0°C
> > temp2:        +57.0°C
> > temp3:        +40.0°C
> > temp4:       +127.0°C
> > 
> > Right Fan and temp4 are for sure incorrect.
> 
> Driver is reverse-engineered so this is best effort and some
> tweaking may be needed.
> 

Ok, if driver is developed without any documentation, then it 
make sense that not working correctly on new machines...

So is not there any documentation? I think that Dell released 
some SMM/BIOS code... But I'm not sure about it.

> > Value temp4 is always 127 and is never changing, but value
> > for Right Fan is increasing when fan is more noisy. So it
> > looks like value for Right Fan is not correctly normalized
> > or multiplier is incorrect.
> > 
> > And name "Right" is incorrect too. Fan is on left side of
> > this notebook, not right as reported by driver.
> > 
> > It is possible to fix these problems?
> 
> Load the i8k driver with fan_mult=1.
> 

Looks like now it reports more plausible value for fan. When fan 
is at low it reporting between 3000 - 3100 RPM.

> Add the following to /etc/sensors.d/i8k.conf:
> 
> chip "i8k-virtual-0"
> 
>    label fan2 "Left Fan"
>    ignore temp4

And this fixing output from sensors program.

$ sensors
i8k-virtual-0
Adapter: Virtual device
Left Fan:    3088 RPM
CPU:          +54.0°C  
temp2:        +57.0°C  
temp3:        +40.0°C

But Right Fan name is still present in kernel sysfs:

$ grep "" /sys/class/hwmon/hwmon1/*
/sys/class/hwmon/hwmon1/fan2_input:3091
/sys/class/hwmon/hwmon1/fan2_label:Right Fan
/sys/class/hwmon/hwmon1/name:i8k
/sys/class/hwmon/hwmon1/pwm2:128
/sys/class/hwmon/hwmon1/temp1_input:56000
/sys/class/hwmon/hwmon1/temp1_label:CPU
/sys/class/hwmon/hwmon1/temp2_input:57000
/sys/class/hwmon/hwmon1/temp3_input:40000
/sys/class/hwmon/hwmon1/temp4_input:127000

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2014-05-16 19:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-16 18:37 Dell Latitude E6440 & i8k Pali Rohár
2014-05-16 19:11 ` Jean Delvare
2014-05-16 19:23   ` Pali Rohár [this message]
2014-05-17  9:44     ` Jean Delvare
2014-05-17 15:34     ` Guenter Roeck
2014-05-17 23:01       ` Pali Rohár
2014-05-18  8:23         ` Jean Delvare
2014-05-17 15:25   ` Guenter Roeck
2014-05-17 21:09     ` Jean Delvare
2014-05-17 22:18       ` Guenter Roeck
  -- strict thread matches above, loose matches on Subject: below --
2014-05-17 22:54 Pali Rohár

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=201405162123.02112@pali \
    --to=pali.rohar@gmail.com \
    --cc=jdelvare@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /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.