Skip to contentSkip to conversation

Dell Latitude E6440 & i8k

DISCUSSION Pali Rohár 3 participants 10 messages May 16, 2014 – May 18, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

on Dell Latitude E6440 driver i8k reporting total nonsense values

$ 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.

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?

Signature · 2 lines
Pali Rohár
[email protected]
#1 lore raw

Hi Pali,

Quoted 3 lines · Pali Rohár

Hello,

on Dell Latitude E6440 driver i8k reporting total nonsense values

That's kind of excessive wording, the output isn't that bad.

Quoted 10 lines
$ 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.

Quoted 9 lines

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.

Add the following to /etc/sensors.d/i8k.conf:

chip "i8k-virtual-0"

label fan2 "Left Fan"
ignore temp4

Signature · 2 lines
Jean Delvare
SUSE L3 Support
#2 lore raw
Quoted 10 lines · On Friday 16 May 2014 21:11:17 Jean Delvare wrote:

Hi Pali,

Quoted 4 lines · Pali Rohár

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.

Quoted 9 lines
Quoted 9 lines
$ 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
Quoted 5 lines
Quoted 1 line

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.

Quoted 5 lines
Quoted 5 lines

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.

Quoted 7 lines
Quoted 4 lines

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.

Quoted 6 lines

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
Signature · 2 lines
Pali Rohár
[email protected]
#3 lore raw
Quoted 2 lines · Pali Rohár

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

I don't know either. But even with some SMM/BIOS code, it doesn't tell you which sensors are present on which machines, nor what they correspond to, nor what scaling factors need to be applied.

Quoted 25 lines
Quoted 2 lines

(...)
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.

Quoted 6 lines

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:

Quoted 10 lines
$ 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

The drivers sets default labels in sysfs, the libsensors configuration files lets you override these defaults with your own labels.

Signature · 2 lines
Jean Delvare
SUSE L3 Support
#4 lore raw
In reply to Pali Rohár
Quoted 29 lines · Pali Rohár
Quoted 10 lines · On Friday 16 May 2014 21:11:17 Jean Delvare wrote:

Hi Pali,

Quoted 4 lines · Pali Rohár

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.

Quoted 9 lines
Quoted 9 lines
$ 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
Quoted 5 lines
Quoted 1 line

Right Fan and temp4 are for sure incorrect.

Driver is reverse-engineered so this is best effort and some tweaking may be needed.

Quoted 6 lines

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.

If you find it, please let us know.

Guenter

#5 lore raw
Quoted 32 lines · On Saturday 17 May 2014 17:34:34 Guenter Roeck wrote:
Quoted 31 lines · Pali Rohár
Quoted 10 lines · On Friday 16 May 2014 21:11:17 Jean Delvare wrote:

Hi Pali,

Quoted 4 lines · Pali Rohár

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.

Quoted 9 lines
Quoted 9 lines
$ 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
Quoted 4 lines
Quoted 1 line

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...

Quoted 6 lines
Quoted 2 lines

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

If you find it, please let us know.

Guenter

Now I remembered... Dell has released info about their smbios extensions with example programs at:

https://linux.dell.com/libsmbios/main/
https://linux.dell.com/cgi-bin/gitweb/gitweb.cgi?p=libsmbios.git;a=summary

But there is nothing about fan control or temperature.

Also I found smbios specification:

http://www.dmtf.org/standards/smbios

There is something written about fan and temp, but no idea if it is usefull for something...

Signature · 2 lines
Pali Rohár
[email protected]
#6 lore raw
Quoted 9 lines · Pali Rohár

Now I remembered... Dell has released info about their smbios extensions with example programs at:

https://linux.dell.com/libsmbios/main/
https://linux.dell.com/cgi-bin/gitweb/gitweb.cgi?p=libsmbios.git;a=summary

But there is nothing about fan control or temperature.

Quoted 6 lines

Also I found smbios specification:

http://www.dmtf.org/standards/smbios

There is something written about fan and temp, but no idea if it is usefull for something...

No, it's not useful to solve your problem.

Signature · 2 lines
Jean Delvare
SUSE L3 Support
#7 lore raw
In reply to Jean Delvare
Quoted 28 lines · Jean Delvare

Hi Pali,

Quoted 3 lines · Pali Rohár

Hello,

on Dell Latitude E6440 driver i8k reporting total nonsense values

That's kind of excessive wording, the output isn't that bad.

Quoted 10 lines
$ 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.

Quoted 5 lines

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.

Quoted 7 lines
Quoted 4 lines

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.

Would it make sense to change the default multiplier to 1 ? Lots of people have problems with it, and trying to figure out affected machines one by one would be an all but impossible task.

Guenter

#8 lore raw
Quoted 6 lines · Guenter Roeck
Quoted 1 line · Jean Delvare

Load the i8k driver with fan_mult=1.

Would it make sense to change the default multiplier to 1 ? Lots of people have problems with it, and trying to figure out affected machines one by one would be an all but impossible task.

That would cause a regression on many (presumably older) machines. I doubt this is acceptable. One option would be to use the ACPI year to change the default, if indeed all new machines need fan_mult=1. I don't know if this is the case.

One this I had in mind was auto-detecting the scaling factor. AFAIK only 30 and 1 are possible values, so any value above ~300 would imply scaling factor of 1 (30 would make it > 9000 RPM which is unrealistic.) But I don't know if we can actually do that, as such a simple heuristic could easily fail is the fan is stopped (30 * 0 == 1 * 0) or if the returned raw speed is temporarily unreliable for whatever reason.

I have to admit that working on a reverse engineered driver for hardware I don't even have isn't quite at the top of my to-do list.

Signature · 2 lines
Jean Delvare
SUSE L3 Support
#9 lore raw
Quoted 13 lines · Jean Delvare
Quoted 6 lines · Guenter Roeck
Quoted 1 line · Jean Delvare

Load the i8k driver with fan_mult=1.

Would it make sense to change the default multiplier to 1 ? Lots of people have problems with it, and trying to figure out affected machines one by one would be an all but impossible task.

That would cause a regression on many (presumably older) machines. I doubt this is acceptable. One option would be to use the ACPI year to change the default, if indeed all new machines need fan_mult=1. I don't know if this is the case.

Quoted 7 lines

One this I had in mind was auto-detecting the scaling factor. AFAIK only 30 and 1 are possible values, so any value above ~300 would imply scaling factor of 1 (30 would make it > 9000 RPM which is unrealistic.) But I don't know if we can actually do that, as such a simple heuristic could easily fail is the fan is stopped (30 * 0 == 1 * 0) or if the returned raw speed is temporarily unreliable for whatever reason.

Sounds like an idea. We could make the cutoff higher, such as 500 or even 1000. I am not much concerned about 0 rpm - the code could simply check the returned rpm and adjust the scaling factor to 1 if the reading is too high. Since 30*0 is still 0, there is no problem if the fan is stopped.

Quoted 3 lines

I have to admit that working on a reverse engineered driver for hardware I don't even have isn't quite at the top of my to-do list.

;-). We have several of those systems, so there is at least some interest on my side. If I have time, I'll play around with it. The driver does need major cleanup, though, so that may take a while.

Guenter