public inbox for gentoo-laptop@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-laptop] coretemp and smartbatt drivers for lm_sensors
@ 2009-03-28 20:28 Valmor de Almeida
  2009-03-28 21:15 ` Robin H. Johnson
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Valmor de Almeida @ 2009-03-28 20:28 UTC (permalink / raw
  To: gentoo-laptop, gentoo-user


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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-laptop] coretemp and smartbatt drivers for lm_sensors
  2009-03-28 20:28 [gentoo-laptop] coretemp and smartbatt drivers for lm_sensors Valmor de Almeida
@ 2009-03-28 21:15 ` Robin H. Johnson
  2009-03-28 21:25 ` David
       [not found] ` <200903282320.28952.alan.mckinnon@gmail.com>
  2 siblings, 0 replies; 8+ messages in thread
From: Robin H. Johnson @ 2009-03-28 21:15 UTC (permalink / raw
  To: gentoo-laptop

[-- Attachment #1: Type: text/plain, Size: 651 bytes --]

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     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 330 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-laptop] coretemp and smartbatt drivers for lm_sensors
  2009-03-28 20:28 [gentoo-laptop] coretemp and smartbatt drivers for lm_sensors Valmor de Almeida
  2009-03-28 21:15 ` Robin H. Johnson
@ 2009-03-28 21:25 ` David
  2009-03-28 22:14   ` Valmor de Almeida
       [not found] ` <200903282320.28952.alan.mckinnon@gmail.com>
  2 siblings, 1 reply; 8+ messages in thread
From: David @ 2009-03-28 21:25 UTC (permalink / raw
  To: gentoo-laptop

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-laptop] coretemp and smartbatt drivers for lm_sensors
  2009-03-28 21:25 ` David
@ 2009-03-28 22:14   ` Valmor de Almeida
       [not found]     ` <58965d8a0903281523p59f470edqa64006224a56ad3a@mail.gmail.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Valmor de Almeida @ 2009-03-28 22:14 UTC (permalink / raw
  To: gentoo-laptop, gentoo-user

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-laptop] Re: [gentoo-user] coretemp and smartbatt drivers for lm_sensors
       [not found] ` <200903282320.28952.alan.mckinnon@gmail.com>
@ 2009-03-28 22:28   ` Valmor de Almeida
       [not found]   ` <58965d8a0903281449x53c1725bs21fe3f4e66c574b6@mail.gmail.com>
  1 sibling, 0 replies; 8+ messages in thread
From: Valmor de Almeida @ 2009-03-28 22:28 UTC (permalink / raw
  To: gentoo-user, gentoo-laptop

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: [gentoo-laptop] coretemp and smartbatt drivers for lm_sensors
       [not found]     ` <58965d8a0903281523p59f470edqa64006224a56ad3a@mail.gmail.com>
@ 2009-03-28 22:57       ` Valmor de Almeida
  0 siblings, 0 replies; 8+ messages in thread
From: Valmor de Almeida @ 2009-03-28 22:57 UTC (permalink / raw
  To: gentoo-user, gentoo-laptop

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:





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-laptop] Re: [gentoo-user] coretemp and smartbatt drivers for lm_sensors
       [not found]   ` <58965d8a0903281449x53c1725bs21fe3f4e66c574b6@mail.gmail.com>
@ 2009-03-28 23:42     ` Valmor de Almeida
  2009-03-29  1:42       ` Robin H. Johnson
  0 siblings, 1 reply; 8+ messages in thread
From: Valmor de Almeida @ 2009-03-28 23:42 UTC (permalink / raw
  To: gentoo-user; +Cc: gentoo-laptop

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-laptop] Re: [gentoo-user] coretemp and smartbatt drivers for lm_sensors
  2009-03-28 23:42     ` Valmor de Almeida
@ 2009-03-29  1:42       ` Robin H. Johnson
  0 siblings, 0 replies; 8+ messages in thread
From: Robin H. Johnson @ 2009-03-29  1:42 UTC (permalink / raw
  To: gentoo-laptop

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

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     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 330 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-29  1:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-28 20:28 [gentoo-laptop] coretemp and smartbatt drivers for lm_sensors Valmor de Almeida
2009-03-28 21:15 ` Robin H. Johnson
2009-03-28 21:25 ` David
2009-03-28 22:14   ` Valmor de Almeida
     [not found]     ` <58965d8a0903281523p59f470edqa64006224a56ad3a@mail.gmail.com>
2009-03-28 22:57       ` [gentoo-user] " Valmor de Almeida
     [not found] ` <200903282320.28952.alan.mckinnon@gmail.com>
2009-03-28 22:28   ` [gentoo-laptop] Re: [gentoo-user] " Valmor de Almeida
     [not found]   ` <58965d8a0903281449x53c1725bs21fe3f4e66c574b6@mail.gmail.com>
2009-03-28 23:42     ` Valmor de Almeida
2009-03-29  1:42       ` Robin H. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox