* [gentoo-user] coretemp and smartbatt drivers for lm_sensors
@ 2009-03-28 20:28 Valmor de Almeida
2009-03-28 21:20 ` Alan McKinnon
[not found] ` <49CE95C9.1000902@bellsouth.net>
0 siblings, 2 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-user] coretemp and smartbatt drivers for lm_sensors
2009-03-28 20:28 [gentoo-user] coretemp and smartbatt drivers for lm_sensors Valmor de Almeida
@ 2009-03-28 21:20 ` Alan McKinnon
2009-03-28 21:49 ` Paul Hartman
2009-03-28 22:28 ` Valmor de Almeida
[not found] ` <49CE95C9.1000902@bellsouth.net>
1 sibling, 2 replies; 8+ messages in thread
From: Alan McKinnon @ 2009-03-28 21:20 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] coretemp and smartbatt drivers for lm_sensors
2009-03-28 21:20 ` Alan McKinnon
@ 2009-03-28 21:49 ` Paul Hartman
2009-03-28 23:42 ` Valmor de Almeida
2009-03-28 22:28 ` Valmor de Almeida
1 sibling, 1 reply; 8+ messages in thread
From: Paul Hartman @ 2009-03-28 21:49 UTC (permalink / raw
To: gentoo-user
On Sat, Mar 28, 2009 at 4:20 PM, Alan McKinnon <alan.mckinnon@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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: [gentoo-laptop] coretemp and smartbatt drivers for lm_sensors
[not found] ` <49CE95C9.1000902@bellsouth.net>
@ 2009-03-28 22:14 ` Valmor de Almeida
2009-03-28 22:23 ` Paul Hartman
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
* Re: [gentoo-user] Re: [gentoo-laptop] coretemp and smartbatt drivers for lm_sensors
2009-03-28 22:14 ` [gentoo-user] Re: [gentoo-laptop] " Valmor de Almeida
@ 2009-03-28 22:23 ` Paul Hartman
2009-03-28 22:57 ` Valmor de Almeida
0 siblings, 1 reply; 8+ messages in thread
From: Paul Hartman @ 2009-03-28 22:23 UTC (permalink / raw
To: gentoo-user
On Sat, Mar 28, 2009 at 5:14 PM, Valmor de Almeida <val.gentoo@gmail.com> wrote:
> 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.
What CPU have you chosen in your kernel? Did you enable hardware
monitoring and expiremental modules?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] coretemp and smartbatt drivers for lm_sensors
2009-03-28 21:20 ` Alan McKinnon
2009-03-28 21:49 ` Paul Hartman
@ 2009-03-28 22:28 ` Valmor de Almeida
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
2009-03-28 22:23 ` Paul Hartman
@ 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
* Re: [gentoo-user] coretemp and smartbatt drivers for lm_sensors
2009-03-28 21:49 ` Paul Hartman
@ 2009-03-28 23:42 ` Valmor de Almeida
0 siblings, 0 replies; 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
end of thread, other threads:[~2009-03-28 23: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-user] coretemp and smartbatt drivers for lm_sensors Valmor de Almeida
2009-03-28 21:20 ` Alan McKinnon
2009-03-28 21:49 ` Paul Hartman
2009-03-28 23:42 ` Valmor de Almeida
2009-03-28 22:28 ` Valmor de Almeida
[not found] ` <49CE95C9.1000902@bellsouth.net>
2009-03-28 22:14 ` [gentoo-user] Re: [gentoo-laptop] " Valmor de Almeida
2009-03-28 22:23 ` Paul Hartman
2009-03-28 22:57 ` Valmor de Almeida
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox