From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Subject: Re: [asus-nb-wmi] thermal device detected by asus-nb-wmi platform driver Date: Sun, 23 Mar 2014 21:15:16 -0700 Message-ID: <532FB154.6020608@roeck-us.net> References: <532B8630.8030607@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail.active-venture.com ([67.228.131.205]:55566 "EHLO mail.active-venture.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750714AbaCXEPV (ORCPT ); Mon, 24 Mar 2014 00:15:21 -0400 In-Reply-To: <532B8630.8030607@linux.intel.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Lu, Baolu" , linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, LM Sensors On 03/20/2014 05:22 PM, Lu, Baolu wrote: > Hi, > > I booted Ubuntu13.10 onto ASUS T100 Tablet and upgraded it with upstr= eam > kernel (3.14.0-rc7+). There is a thermal device under > /sys/devices/platform/asus-nb-wmi. > > root@t100:~/linux# tree /sys/class/hwmon/ > /sys/class/hwmon/ > =E2=94=9C=E2=94=80=E2=94=80 hwmon0 -> ../../devices/platform/coretemp= =2E0/hwmon/hwmon0 > =E2=94=94=E2=94=80=E2=94=80 hwmon1 -> ../../devices/platform/asus-nb-= wmi/hwmon/hwmon1 > > root@t100:/sys/devices/platform/asus-nb-wmi# ls > cpufv driver hwmon input modalias power subsystem uevent > > root@t100:~/linux# sensors > coretemp-isa-0000 > Adapter: ISA adapter > Core 0: +38.0=C2=B0C (high =3D +90.0=C2=B0C, crit =3D +90.0=C2=B0C) > Core 1: +38.0=C2=B0C (high =3D +90.0=C2=B0C, crit =3D +90.0=C2=B0C) > Core 2: +39.0=C2=B0C (high =3D +90.0=C2=B0C, crit =3D +90.0=C2=B0C) > Core 3: +38.0=C2=B0C (high =3D +90.0=C2=B0C, crit =3D +90.0=C2=B0C) > > asus-isa-0000 > Adapter: ISA adapter > temp1: +6280.0=C2=B0C > Pretty hot ;-). Not your problem, though - it looks like the temperatur= e is reported in Kelvin and the code converting from Kelvin to degrees C turns out to be buggy. > I didn't get any information about thermal interface in > "Documentation/ABI/testing/sysfs-platform-asus-wmi". Is this a therma= l > sensor? If it's the fact, how can I change the environment so that th= is > sensor gives me variable data? > I don't think I understand your question. Yes, this is a thermal sensor= =2E What is it you want to do (in addition to having it report reasonable temperatures) ? Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Date: Mon, 24 Mar 2014 04:15:16 +0000 Subject: Re: [lm-sensors] [asus-nb-wmi] thermal device detected by asus-nb-wmi platform driver Message-Id: <532FB154.6020608@roeck-us.net> List-Id: References: <532B8630.8030607@linux.intel.com> In-Reply-To: <532B8630.8030607@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Lu, Baolu" , linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, LM Sensors T24gMDMvMjAvMjAxNCAwNToyMiBQTSwgTHUsIEJhb2x1IHdyb3RlOgo+IEhpLAo+Cj4gSSBib290 ZWQgVWJ1bnR1MTMuMTAgb250byBBU1VTIFQxMDAgVGFibGV0IGFuZCB1cGdyYWRlZCBpdCB3aXRo IHVwc3RyZWFtCj4ga2VybmVsICgzLjE0LjAtcmM3KykuIFRoZXJlIGlzIGEgdGhlcm1hbCBkZXZp Y2UgdW5kZXIKPiAvc3lzL2RldmljZXMvcGxhdGZvcm0vYXN1cy1uYi13bWkuCj4KPiByb290QHQx MDA6fi9saW51eCMgdHJlZSAvc3lzL2NsYXNzL2h3bW9uLwo+IC9zeXMvY2xhc3MvaHdtb24vCj4g 4pSc4pSA4pSAIGh3bW9uMCAtPiAuLi8uLi9k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lcm1hbCBpbnRlcmZhY2UgaW4KPiAiRG9jdW1lbnRhdGlvbi9BQkkvdGVzdGlu Zy9zeXNmcy1wbGF0Zm9ybS1hc3VzLXdtaSIuIElzIHRoaXMgYSB0aGVybWFsCj4gc2Vuc29yPyBJ ZiBpdCdzIHRoZSBmYWN0LCBob3cgY2FuIEkgY2hhbmdlIHRoZSBlbnZpcm9ubWVudCBzbyB0aGF0 IHRoaXMKPiBzZW5zb3IgZ2l2ZXMgbWUgdmFyaWFibGUgZGF0YT8KPgoKSSBkb24ndCB0aGluayBJ IHVuZGVyc3RhbmQgeW91ciBxdWVzdGlvbi4gWWVzLCB0aGlzIGlzIGEgdGhlcm1hbCBzZW5zb3Iu CldoYXQgaXMgaXQgeW91IHdhbnQgdG8gZG8gKGluIGFkZGl0aW9uIHRvIGhhdmluZyBpdCByZXBv cnQgcmVhc29uYWJsZQp0ZW1wZXJhdHVyZXMpID8KCkd1ZW50ZXIKCgpfX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpsbS1zZW5zb3JzIG1haWxpbmcgbGlzdAps bS1zZW5zb3JzQGxtLXNlbnNvcnMub3JnCmh0dHA6Ly9saXN0cy5sbS1zZW5zb3JzLm9yZy9tYWls bWFuL2xpc3RpbmZvL2xtLXNlbnNvcnM From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751535AbaCXEPa (ORCPT ); Mon, 24 Mar 2014 00:15:30 -0400 Received: from mail.active-venture.com ([67.228.131.205]:65388 "EHLO mail.active-venture.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750714AbaCXEPY (ORCPT ); Mon, 24 Mar 2014 00:15:24 -0400 X-Originating-IP: 108.223.40.66 Message-ID: <532FB154.6020608@roeck-us.net> Date: Sun, 23 Mar 2014 21:15:16 -0700 From: Guenter Roeck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: "Lu, Baolu" , linux-acpi@vger.kernel.org CC: linux-kernel@vger.kernel.org, LM Sensors Subject: Re: [asus-nb-wmi] thermal device detected by asus-nb-wmi platform driver References: <532B8630.8030607@linux.intel.com> In-Reply-To: <532B8630.8030607@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/20/2014 05:22 PM, Lu, Baolu wrote: > Hi, > > I booted Ubuntu13.10 onto ASUS T100 Tablet and upgraded it with upstream > kernel (3.14.0-rc7+). There is a thermal device under > /sys/devices/platform/asus-nb-wmi. > > root@t100:~/linux# tree /sys/class/hwmon/ > /sys/class/hwmon/ > ├── hwmon0 -> ../../devices/platform/coretemp.0/hwmon/hwmon0 > └── hwmon1 -> ../../devices/platform/asus-nb-wmi/hwmon/hwmon1 > > root@t100:/sys/devices/platform/asus-nb-wmi# ls > cpufv driver hwmon input modalias power subsystem uevent > > root@t100:~/linux# sensors > coretemp-isa-0000 > Adapter: ISA adapter > Core 0: +38.0°C (high = +90.0°C, crit = +90.0°C) > Core 1: +38.0°C (high = +90.0°C, crit = +90.0°C) > Core 2: +39.0°C (high = +90.0°C, crit = +90.0°C) > Core 3: +38.0°C (high = +90.0°C, crit = +90.0°C) > > asus-isa-0000 > Adapter: ISA adapter > temp1: +6280.0°C > Pretty hot ;-). Not your problem, though - it looks like the temperature is reported in Kelvin and the code converting from Kelvin to degrees C turns out to be buggy. > I didn't get any information about thermal interface in > "Documentation/ABI/testing/sysfs-platform-asus-wmi". Is this a thermal > sensor? If it's the fact, how can I change the environment so that this > sensor gives me variable data? > I don't think I understand your question. Yes, this is a thermal sensor. What is it you want to do (in addition to having it report reasonable temperatures) ? Guenter