[gentoo-user] coretemp and smartbatt drivers for lm_sensors

2009-03-28 Thread 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





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

2009-03-28 Thread Alan McKinnon
On Saturday 28 March 2009 22:28:15 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:

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.

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


-- 
alan dot mckinnon at gmail dot com



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

2009-03-28 Thread Paul Hartman
On Sat, Mar 28, 2009 at 4:20 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Saturday 28 March 2009 22:28:15 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:

 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.

 smartbatt is found at CONFIG_ACPI_SBS, you c

and coretemp is CONFIG_SENSORS_CORETEMP

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.



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

2009-03-28 Thread 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



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

2009-03-28 Thread 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-
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