[RESEND][PATCH 5/5] Export the temperatures via hwmon

2014-11-11 Thread Goffredo Baroncelli
Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd /sys/devices/temperature/hwmon/hwmon0 $ echo "name: $(cat name)"; for i in temp*; do echo "$i: $(cat $i)"; done name: therm_windtunnel temp1_input: 59312 temp1_label: CPU temp2_input: 36750

[RESEND][PATCH 5/5] Export the temperatures via hwmon

2014-11-11 Thread Goffredo Baroncelli
Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd /sys/devices/temperature/hwmon/hwmon0 $ echo name: $(cat name); for i in temp*; do echo $i: $(cat $i); done name: therm_windtunnel temp1_input: 59312 temp1_label: CPU temp2_input: 36750 temp2_label:

[PATCH 5/5] Export the temperatures via hwmon

2014-08-09 Thread Goffredo Baroncelli
Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd /sys/devices/temperature/hwmon/hwmon0 $ echo "name: $(cat name)"; for i in temp*; do echo "$i: $(cat $i)"; done name: therm_windtunnel temp1_input: 59312 temp1_label: CPU temp2_input: 36750

[PATCH 5/5] Export the temperatures via hwmon

2014-08-09 Thread Goffredo Baroncelli
Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd /sys/devices/temperature/hwmon/hwmon0 $ echo name: $(cat name); for i in temp*; do echo $i: $(cat $i); done name: therm_windtunnel temp1_input: 59312 temp1_label: CPU temp2_input: 36750 temp2_label:

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-08 Thread Goffredo Baroncelli
On 08/08/2014 06:30 PM, Guenter Roeck wrote: > On 08/08/2014 07:54 AM, Goffredo Baroncelli wrote: [...] > I just noticed - hwmon_device_register_with_groups() returns ERR_PTR > on errors, not NULL, so checking for a NULL return value won't help > much if there is an error. Thanks, due to this, in

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-08 Thread Guenter Roeck
On 08/08/2014 07:54 AM, Goffredo Baroncelli wrote: On 08/07/2014 11:19 PM, Matt Helsley wrote: On Thu, Aug 07, 2014 at 07:50:00PM +0200, Goffredo Baroncelli wrote: On 08/07/2014 09:36 AM, Guenter Roeck wrote: On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-08 Thread Goffredo Baroncelli
On 08/07/2014 11:19 PM, Matt Helsley wrote: > On Thu, Aug 07, 2014 at 07:50:00PM +0200, Goffredo Baroncelli wrote: >> On 08/07/2014 09:36 AM, Guenter Roeck wrote: >>> On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote:

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-08 Thread Goffredo Baroncelli
On 08/07/2014 11:19 PM, Matt Helsley wrote: On Thu, Aug 07, 2014 at 07:50:00PM +0200, Goffredo Baroncelli wrote: On 08/07/2014 09:36 AM, Guenter Roeck wrote: On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: Patch 4/5 is Return

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-08 Thread Guenter Roeck
On 08/08/2014 07:54 AM, Goffredo Baroncelli wrote: On 08/07/2014 11:19 PM, Matt Helsley wrote: On Thu, Aug 07, 2014 at 07:50:00PM +0200, Goffredo Baroncelli wrote: On 08/07/2014 09:36 AM, Guenter Roeck wrote: On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-08 Thread Goffredo Baroncelli
On 08/08/2014 06:30 PM, Guenter Roeck wrote: On 08/08/2014 07:54 AM, Goffredo Baroncelli wrote: [...] I just noticed - hwmon_device_register_with_groups() returns ERR_PTR on errors, not NULL, so checking for a NULL return value won't help much if there is an error. Thanks, due to this, in the

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Matt Helsley
On Thu, Aug 07, 2014 at 07:50:00PM +0200, Goffredo Baroncelli wrote: > On 08/07/2014 09:36 AM, Guenter Roeck wrote: > > On 08/06/2014 11:52 PM, Jean Delvare wrote: > >> Hi Guenter, > >> > >> On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: > >>> Patch 4/5 is "Return the fan speed via

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Goffredo Baroncelli
On 08/07/2014 08:16 PM, Guenter Roeck wrote: > On Thu, Aug 07, 2014 at 07:50:00PM +0200, Goffredo Baroncelli wrote: >> When (if) these patches will be accepted I want to write another solution, >> but definitely not now. And even if it would work for me, it is very likely >> that will be

[PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Goffredo Baroncelli
Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd /sys/devices/temperature/hwmon/hwmon0 $ echo "name: $(cat name)"; for i in temp*; do echo "$i: $(cat $i)"; done name: therm_windtunnel temp1_input: 59312 temp1_label: CPU temp2_input: 36750

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Guenter Roeck
On Thu, Aug 07, 2014 at 07:50:00PM +0200, Goffredo Baroncelli wrote: > On 08/07/2014 09:36 AM, Guenter Roeck wrote: > > On 08/06/2014 11:52 PM, Jean Delvare wrote: > >> Hi Guenter, > >> > >> On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: > >>> Patch 4/5 is "Return the fan speed via

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Goffredo Baroncelli
On 08/07/2014 09:36 AM, Guenter Roeck wrote: > On 08/06/2014 11:52 PM, Jean Delvare wrote: >> Hi Guenter, >> >> On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: >>> Patch 4/5 is "Return the fan speed via sysfs: >>> /sys/devices/temperature/fan_level". >>> >>> So you are saying that

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Guenter Roeck
On 08/07/2014 01:35 AM, Jean Delvare wrote: Le Thursday 07 August 2014 à 00:36 -0700, Guenter Roeck a écrit : On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: Patch 4/5 is "Return the fan speed via sysfs:

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Jean Delvare
Le Thursday 07 August 2014 à 00:36 -0700, Guenter Roeck a écrit : > On 08/06/2014 11:52 PM, Jean Delvare wrote: > > Hi Guenter, > > > > On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: > >> Patch 4/5 is "Return the fan speed via sysfs: > >> /sys/devices/temperature/fan_level". > >> > >>

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Guenter Roeck
On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: Patch 4/5 is "Return the fan speed via sysfs: /sys/devices/temperature/fan_level". So you are saying that returning the fan speed with a non-hwmon attribute works, but returning

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Jean Delvare
Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: > Patch 4/5 is "Return the fan speed via sysfs: > /sys/devices/temperature/fan_level". > > So you are saying that returning the fan speed with a non-hwmon attribute > works, > but returning it with a hwmon attribute doesn't ?

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Guenter Roeck
On 08/06/2014 11:03 PM, Goffredo Baroncelli wrote: On 08/07/2014 01:18 AM, Guenter Roeck wrote: On Wed, Aug 06, 2014 at 09:05:03PM +, Goffredo Baroncelli wrote: From: Goffredo Baroncelli Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Guenter Roeck
On 08/06/2014 11:03 PM, Goffredo Baroncelli wrote: On 08/07/2014 01:18 AM, Guenter Roeck wrote: On Wed, Aug 06, 2014 at 09:05:03PM +, Goffredo Baroncelli wrote: From: Goffredo Baroncelli kreij...@iniwnd.it Export the temperature via the hwmon subsystem. See the list below for the sensors

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Jean Delvare
Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: Patch 4/5 is Return the fan speed via sysfs: /sys/devices/temperature/fan_level. So you are saying that returning the fan speed with a non-hwmon attribute works, but returning it with a hwmon attribute doesn't ? Not

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Guenter Roeck
On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: Patch 4/5 is Return the fan speed via sysfs: /sys/devices/temperature/fan_level. So you are saying that returning the fan speed with a non-hwmon attribute works, but returning it

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Jean Delvare
Le Thursday 07 August 2014 à 00:36 -0700, Guenter Roeck a écrit : On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: Patch 4/5 is Return the fan speed via sysfs: /sys/devices/temperature/fan_level. So you are saying that

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Guenter Roeck
On 08/07/2014 01:35 AM, Jean Delvare wrote: Le Thursday 07 August 2014 à 00:36 -0700, Guenter Roeck a écrit : On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: Patch 4/5 is Return the fan speed via sysfs:

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Goffredo Baroncelli
On 08/07/2014 09:36 AM, Guenter Roeck wrote: On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: Patch 4/5 is Return the fan speed via sysfs: /sys/devices/temperature/fan_level. So you are saying that returning the fan speed

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Guenter Roeck
On Thu, Aug 07, 2014 at 07:50:00PM +0200, Goffredo Baroncelli wrote: On 08/07/2014 09:36 AM, Guenter Roeck wrote: On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: Patch 4/5 is Return the fan speed via sysfs:

[PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Goffredo Baroncelli
Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd /sys/devices/temperature/hwmon/hwmon0 $ echo name: $(cat name); for i in temp*; do echo $i: $(cat $i); done name: therm_windtunnel temp1_input: 59312 temp1_label: CPU temp2_input: 36750 temp2_label:

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Goffredo Baroncelli
On 08/07/2014 08:16 PM, Guenter Roeck wrote: On Thu, Aug 07, 2014 at 07:50:00PM +0200, Goffredo Baroncelli wrote: When (if) these patches will be accepted I want to write another solution, but definitely not now. And even if it would work for me, it is very likely that will be accepted

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-07 Thread Matt Helsley
On Thu, Aug 07, 2014 at 07:50:00PM +0200, Goffredo Baroncelli wrote: On 08/07/2014 09:36 AM, Guenter Roeck wrote: On 08/06/2014 11:52 PM, Jean Delvare wrote: Hi Guenter, On Wed, 06 Aug 2014 23:20:32 -0700, Guenter Roeck wrote: Patch 4/5 is Return the fan speed via sysfs:

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-06 Thread Goffredo Baroncelli
On 08/07/2014 01:18 AM, Guenter Roeck wrote: > On Wed, Aug 06, 2014 at 09:05:03PM +, Goffredo Baroncelli wrote: >> From: Goffredo Baroncelli >> >> Export the temperature via the hwmon subsystem. >> See the list below for the sensors exported: >> >> $ cd /sys/devices/temperature/hwmon/hwmon0

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-06 Thread Guenter Roeck
On Wed, Aug 06, 2014 at 09:05:03PM +, Goffredo Baroncelli wrote: > From: Goffredo Baroncelli > > Export the temperature via the hwmon subsystem. > See the list below for the sensors exported: > > $ cd /sys/devices/temperature/hwmon/hwmon0 > $ echo "name: $(cat name)"; for i in temp*; do

[PATCH 5/5] Export the temperatures via hwmon

2014-08-06 Thread Goffredo Baroncelli
From: Goffredo Baroncelli Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd /sys/devices/temperature/hwmon/hwmon0 $ echo "name: $(cat name)"; for i in temp*; do echo "$i: $(cat $i)"; done name: therm_windtunnel temp1_input: 59312 temp1_label: CPU

[PATCH 5/5] Export the temperatures via hwmon

2014-08-06 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@iniwnd.it Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd /sys/devices/temperature/hwmon/hwmon0 $ echo name: $(cat name); for i in temp*; do echo $i: $(cat $i); done name: therm_windtunnel temp1_input: 59312

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-06 Thread Guenter Roeck
On Wed, Aug 06, 2014 at 09:05:03PM +, Goffredo Baroncelli wrote: From: Goffredo Baroncelli kreij...@iniwnd.it Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd /sys/devices/temperature/hwmon/hwmon0 $ echo name: $(cat name); for i in

Re: [PATCH 5/5] Export the temperatures via hwmon

2014-08-06 Thread Goffredo Baroncelli
On 08/07/2014 01:18 AM, Guenter Roeck wrote: On Wed, Aug 06, 2014 at 09:05:03PM +, Goffredo Baroncelli wrote: From: Goffredo Baroncelli kreij...@iniwnd.it Export the temperature via the hwmon subsystem. See the list below for the sensors exported: $ cd