coretemp and smartbatt drivers for lm_sensors

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

coretemp and smartbatt drivers for lm_sensors

Valmor de Almeida

Hello,

I am trying to configure lm_sensors and sensors-detect identified these
two modules I don't know how to build.

smartbatt

coretemp

I tried many config options when rebuilding the kernel 2.6.27.12
(vanilla-sources) but no luck in building the modules. Looking in the
kernel sources doc I can see the coretemp module but can't find the
corresponding config parameter in menuconfig. As for smartbatt, this is
what is available in the source tree:


./drivers/acpi/.battery.o.cmd
./drivers/acpi/battery.c
./drivers/acpi/battery.o
./drivers/power/ds2760_battery.c
./drivers/power/palmtx_battery.c
./drivers/power/olpc_battery.c
./drivers/power/tosa_battery.c
./drivers/power/pmu_battery.c
./include/config/acpi/battery.h

Thanks for any help.

--
Valmor



Reply | Threaded
Open this post in threaded view
|

Re: coretemp and smartbatt drivers for lm_sensors

Robin H. Johnson-2
On Sat, Mar 28, 2009 at 04:28:15PM -0400, Valmor de Almeida wrote:
> I tried many config options when rebuilding the kernel 2.6.27.12
> (vanilla-sources) but no luck in building the modules. Looking in the
> kernel sources doc I can see the coretemp module but can't find the
> corresponding config parameter in menuconfig. As for smartbatt, this is
> what is available in the source tree:
Coretemp is
CONFIG_SENSORS_CORETEMP=m

smartbatt is only ACPI I thought, not sensors.

--
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail     : [hidden email]
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

attachment0 (338 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: coretemp and smartbatt drivers for lm_sensors

david-108
In reply to this post by Valmor de Almeida
Valmor de Almeida wrote:

>
> Hello,
>
> I am trying to configure lm_sensors and sensors-detect identified
> these two modules I don't know how to build.
>
> smartbatt
>
> coretemp
>
> I tried many config options when rebuilding the kernel 2.6.27.12
> (vanilla-sources) but no luck in building the modules. Looking in the
> kernel sources doc I can see the coretemp module but can't find the
> corresponding config parameter in menuconfig. As for smartbatt, this
> is what is available in the source tree:
>
>
> ./drivers/acpi/.battery.o.cmd
> ./drivers/acpi/battery.c
> ./drivers/acpi/battery.o
> ./drivers/power/ds2760_battery.c
> ./drivers/power/palmtx_battery.c
> ./drivers/power/olpc_battery.c
> ./drivers/power/tosa_battery.c
> ./drivers/power/pmu_battery.c
> ./include/config/acpi/battery.h
>
> Thanks for any help.
>
> --
> Valmor
>
>
>
>
This should help;
http://dwabbott.com/menuconfig_shots/

--
Powered by Gentoo GNU/LINUX
http://www.linuxcrazy.com
pgp.mit.edu



Reply | Threaded
Open this post in threaded view
|

Re: coretemp and smartbatt drivers for lm_sensors

Valmor de Almeida
David wrote:

> This should help;
> http://dwabbott.com/menuconfig_shots/
>

The pictures help a lot. Under Hardware Monitoring Support I do not have
the option

  Intel Core (2) Duo/Solo temperature sensor

in my menuconfig (vanilla-sources 2.6.27.12) which could enable
CONFIG_CORETEMP. Interesting that the / search for
this config parameter gives me

  ┌───────────────────────────── Search Results
──────────────────────────────┐
   │ Symbol: SENSORS_CORETEMP [=n]

   │ Prompt: Intel Core (2) Duo/Solo temperature sensor

   │   Defined at drivers/hwmon/Kconfig:351

   │   Depends on: HWMON && X86 && EXPERIMENTAL

   │   Location:

   │     -> Device Drivers

   │       -> Hardware Monitoring support (HWMON [=y])

Is there something else I need to enable to make the option visible? Or
do I need to move to another kernel source.

Thanks,

--
Valmor

Reply | Threaded
Open this post in threaded view
|

Re: [gentoo-user] coretemp and smartbatt drivers for lm_sensors

Valmor de Almeida
In reply to this post by Valmor de Almeida
Alan McKinnon wrote:
>
> From any menu in make menuconfig, you can type '/' and enter a search string.
> Menuconfig will list all instances where it finds that string in item
> headings. coretemp is there.

Thanks for this search info. CORETEMP is there under the search but the
enabling option is apparently not there; or I don't know how to make it
appear. It looks like I am missing the option

Intel Core (2) Duo/Solo temperature sensor

in the Hardware Monitoring Support.

>
> smartbatt is found at CONFIG_ACPI_SBS, you can search for that string
>
>

I've had that enabled to be compiled into the kernel. I will change to M
and check whether the module is created.


Thanks,

--
Valmor

Reply | Threaded
Open this post in threaded view
|

Re: [gentoo-user] Re: coretemp and smartbatt drivers for lm_sensors

Valmor de Almeida
In reply to this post by Valmor de Almeida
Paul Hartman wrote:

>
> What CPU have you chosen in your kernel? Did you enable hardware
> monitoring and expiremental modules?
>
>
I did not have

Prompt for development and/or incomplete code/drivers

selected under General Setup. Therefore missed options under Hardware
Monitoring Support.

I chose Core2/newer Xeon because the help info says CPU family: 6. Not
sure this is the correct choice. The /proc/cpuinfo follows below.

Thanks for your help.

--
Valmor


-> cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 14
model name      : Genuine Intel(R) CPU           U1400  @ 1.20GHz
stepping        : 8
cpu MHz         : 800.000
cache size      : 2048 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx
constant_tsc arch_perfmon bts pni monitor vmx est tm2 xtpr
bogomips        : 2393.97
clflush size    : 64
power management:



Reply | Threaded
Open this post in threaded view
|

Re: [gentoo-user] coretemp and smartbatt drivers for lm_sensors

Valmor de Almeida
In reply to this post by Valmor de Almeida
Paul Hartman wrote:

>
> Also, if you are new to lm_sensors, beware that sensors-detect only
> works on a subset of the supported sensor chipsets. On my computer,
> for example, it detected the wrong chipsets which "sort of" worked
> (gave wrong/incomplete readings). I had to manually tell it which
> sensor chipset my motherboard uses.
>
>

Okay. I got i2c_i801.ko and coretemp.ko created and loaded in the
kernel. The CONFIG_ACPI_SBS=m parameter creates two modules: sbs.ko and
sbshc.ko; modprobe sbs loades both; hence no smartbatt. The relevant
section from sensors-detect output is

Next adapter: SMBus I801 adapter at 18a0 (i2c-0)
Do you want to scan it? (YES/no/selectively): YES
Client found at address 0x0b
Probing for `Smart Battery'...                              Success!
     (confidence 5, driver `smartbatt')
Client found at address 0x19
Probing for `Analog Devices ADM1021'...                     No
Probing for `Analog Devices ADM1021A/ADM1023'...            No
Probing for `Maxim MAX1617'...                              No
Probing for `Maxim MAX1617A'...                             No
Probing for `Maxim MAX1668'...                              No
Probing for `Maxim MAX1805'...                              No

and it calls for smartbatt. Instead I loaded sbs.ko. The current output
of sensors is

-> sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +56°C  (high =  +100°C)

Should the output show also info on the battery? Am I still missing
something configuring ls_sensors?

Thanks,

--
Valmor

Reply | Threaded
Open this post in threaded view
|

Re: Re: [gentoo-user] coretemp and smartbatt drivers for lm_sensors

Robin H. Johnson-2
On Sat, Mar 28, 2009 at 07:42:22PM -0400, Valmor de Almeida wrote:
> Okay. I got i2c_i801.ko and coretemp.ko created and loaded in the kernel.
> The CONFIG_ACPI_SBS=m parameter creates two modules: sbs.ko and sbshc.ko;
> modprobe sbs loades both; hence no smartbatt. The relevant section from
> sensors-detect output is
Looking at the lm_sensors codebase, it looks like smartbatt might be
obsolete, having being replaced by sbs and sbshc - so instead of using
lm_sensors to interface with it, go and look in sysfs instead.

--
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail     : [hidden email]
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

attachment0 (338 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: coretemp and smartbatt drivers for lm_sensors

Valmor de Almeida
In reply to this post by Valmor de Almeida
[hidden email] wrote:

> Hi Valmor,
>
> Is this in regards to a course? We only provide support and troubleshooting
> for the online training website.
>
> Thank you,
> Amanda Hunerdosse
> Customer Care Specialist
>
> This message and any attachments are intended only for the use of the
> Addressee(s) and may contain information that is PRIVILEGED and
> CONFIDENTIAL. If you are not the intended recipient, dissemination,
> distribution or copying of this communication is prohibited.  If you have
> received this communication in error, please erase all copies of the message
> and its attachments and notify [hidden email].  Thank you.
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]]
> Sent: Saturday, March 28, 2009 3:28 PM
> To: [hidden email]
> Subject: 6197026584692967 : [gentoo-laptop] coretemp and smartbatt drivers
> for lm_sensors
>
>
> Hello,
>
> I am trying to configure lm_sensors and sensors-detect identified these
> two modules I don't know how to build.
>
> smartbatt
>
> coretemp
>
> I tried many config options when rebuilding the kernel 2.6.27.12
> (vanilla-sources) but no luck in building the modules. Looking in the
> kernel sources doc I can see the coretemp module but can't find the
> corresponding config parameter in menuconfig. As for smartbatt, this is
> what is available in the source tree:
>
>
> ./drivers/acpi/.battery.o.cmd
> ./drivers/acpi/battery.c
> ./drivers/acpi/battery.o
> ./drivers/power/ds2760_battery.c
> ./drivers/power/palmtx_battery.c
> ./drivers/power/olpc_battery.c
> ./drivers/power/tosa_battery.c
> ./drivers/power/pmu_battery.c
> ./include/config/acpi/battery.h
>
> Thanks for any help.
>
> --
> Valmor
>
>

I did not send the above e-mail to your organization. It went to the
gentoo-laptop and gentoo-user lists.

--
Valmor


Reply | Threaded
Open this post in threaded view
|

Re: coretemp and smartbatt drivers for lm_sensors

Leo Beaudry
In reply to this post by Valmor de Almeida
Thank-you for your e-mail.
I am away from the office until Monday April 6th.   I will respond to you at that time.
This is an auto-reply

Léo Beaudry