Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[impossible] G4 gigabit does not have working temp sensors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Sun Feb 04, 2007 2:41 am    Post subject: [impossible] G4 gigabit does not have working temp sensors Reply with quote

Just wondering if anyone got i2c working with conky on a powermac.

It'd be nice to see the CPU/mobo temps if possible.

I emerged lm_sensors and ran sensors:
Quote:
localhost tmp # sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.


Quote:
localhost tmp # sensors-detect
# sensors-detect revision 4171 (2006-09-24 03:37:01 -0700)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no):
Probing for PCI bus adapters...
Sorry, no known PCI bus adapters found.

We will now try to load each adapter module in turn.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.

We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.

Next adapter: uni-n 0
Do you want to scan it? (YES/no/selectively):
Client found at address 0x50
Handled by driver `eeprom' (already loaded), chip type `eeprom'
Client found at address 0x51
Handled by driver `eeprom' (already loaded), chip type `eeprom'
Client found at address 0x56
Handled by driver `eeprom' (already loaded), chip type `eeprom'

Next adapter: uni-n 1
Do you want to scan it? (YES/no/selectively):

Next adapter: mac-io 0
Do you want to scan it? (YES/no/selectively):

Next adapter: pmu 1
Do you want to scan it? (YES/no/selectively):

Next adapter: pmu 2
Do you want to scan it? (YES/no/selectively):

Some chips are also accessible through the ISA I/O ports. We have to
write to arbitrary I/O ports to probe them. This is usually safe though.
Yes, you do have ISA I/O ports even if you do not have any ISA slots!
Do you want to scan the ISA I/O ports? (YES/no):
Probing for `National Semiconductor LM78' at 0x290... No
Probing for `National Semiconductor LM78-J' at 0x290... No
Probing for `National Semiconductor LM79' at 0x290... No
Probing for `Winbond W83781D' at 0x290... No
Probing for `Winbond W83782D' at 0x290... No
Probing for `Winbond W83627HF' at 0x290... No
Probing for `Silicon Integrated Systems SIS5595'... No
Probing for `VIA VT82C686 Integrated Sensors'... No
Probing for `VIA VT8231 Integrated Sensors'... No
Probing for `AMD K8 thermal sensors'... No
Probing for `IPMI BMC KCS' at 0xca0... No
Probing for `IPMI BMC SMIC' at 0xca8... No

Some Super I/O chips may also contain sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no):
Probing for Super-I/O at 0x2e/0x2f
Trying family `ITE'... No
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... No
Probing for Super-I/O at 0x4e/0x4f
Trying family `ITE'... No
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... No

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `eeprom' (should be inserted):
Detects correctly:
* Bus `uni-n 0'
Busdriver `UNKNOWN', I2C address 0x50
Chip `eeprom' (confidence: 6)
* Bus `uni-n 0'
Busdriver `UNKNOWN', I2C address 0x51
Chip `eeprom' (confidence: 6)
* Bus `uni-n 0'
Busdriver `UNKNOWN', I2C address 0x56
Chip `eeprom' (confidence: 6)

EEPROMs are *NOT* sensors! They are data storage chips commonly
found on memory modules (SPD), in monitors (EDID), or in some
laptops, for example.

I will now generate the commands needed to load the required modules.
Just press ENTER to continue:

If you want to load the modules at startup, generate a config file
below and make sure lm_sensors gets started at boot time; e.g
$ rc-update add lm_sensors default
To make the sensors modules behave correctly, add these lines to
/etc/modules.d/lm_sensors and run modules-update:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones! You really
should try these commands right now to make sure everything is
working properly. Monitoring programs won't work until the needed
modules are loaded.

To load everything that is needed, execute the commands below...

#----cut here----
# I2C adapter drivers
# modprobe unknown adapter pmu 2
# modprobe unknown adapter pmu 1
# modprobe unknown adapter mac-io 0
# modprobe unknown adapter uni-n 1
# modprobe unknown adapter uni-n 0
# Chip drivers
# Warning: the required module eeprom is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe eeprom
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----end cut here----

Do you want to generate /etc/conf.d/lm_sensors? Enter s to specify other file name?
(YES/no/s): no


eeprom is loaded into the kernel (not a module).

The very first time I ran sensors-detect I saw the following "SPD EEPROM" and "PCA 9556" Philips Semiconductors. Which makes me believe that I need some drivers for the PCA 9556... which doesn't seem to be supported in lm-sensors.

If this is the case, then can anyone recommend some good books/strategies for writing drivers for the PCA 9556? If that's not the case then can someone let me know what I'm doing wrong... or even if it's possible.

Many thanks.


Last edited by fuzion on Fri Mar 09, 2007 12:26 am; edited 1 time in total
Back to top
View user's profile Send private message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Sun Feb 04, 2007 6:04 pm    Post subject: CPU temp on Powermac Reply with quote

I have a Powermac G4 and would like to see the CPU temperature. Is there any hope that this can be done in Linux? It looks possible for MacOSX: http://www.bresink.com/osx/HardwareMonitor.html although maybe it isn't possible for my machine: http://www.bresink.com/osx/216202/Docs-en/faq.html#TAU

The Powermac I have is a Gigabit Powermac G4 400MHz with AGP.

I tried the following option in the Linux kernel: Platform support -> On-chip CPU temperature sensor support, but this showed the CPU temperature as 11-13 C (uncalibrated) in /proc/cpuinfo. Which is obviously wrong, but might be correct if calibrated properly.

Any ideas/tips/hints/suggestions?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Feb 04, 2007 11:10 pm    Post subject: Reply with quote

With that G4, you only have the TAU available afaik. I do not know whether lm-sensors works with your system, but I haven't heard of it working, sorry.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum