Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
i2c Hardware Sensors on iBook 2.2 (Gentoo PPC 2005.1)
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
kludge
n00b
n00b


Joined: 11 Nov 2005
Posts: 8

PostPosted: Fri Nov 18, 2005 10:03 pm    Post subject: i2c Hardware Sensors on iBook 2.2 (Gentoo PPC 2005.1) Reply with quote

I'm trying to get Conky running on my iBook 2.2 with Gentoo PPC 2005.1 installed.

It segfaults with the message:

Code:

Conky: can't open '/sys/bus/i2c/devices/6-0035/temp2_input': No such file or directory
please fix i2c or remove it from Conky


I could remove it, but I'd really like a CPU temp monitor, since this *is* a laptop and you gotta' watch out for that.

SO, anyone out there know which chip to configure/compile my kernel for under "I2C Support --> Hardware Sensors Chip Support?"

Believe you me, I've googled the fcuk out of this one, to no avail. With this fixed, I'll be damned near done with the base system and can start really getting the fun shiz running.

Thnx muchos,
Kludge
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Sat Nov 19, 2005 12:44 am    Post subject: Reply with quote

On my powermac these are the controller names.

cat /sys/devices/uni-n-i2c/i2c-5/5-002c/name
ADM1030 fan controller

cat /sys/devices/uni-n-i2c/i2c-5/5-0049/name
DS1775 thermostat

They correspond to the adm1031 and lm75 modules, but the modules are not loaded
nor compiled in the kernel, as far as I can tell. I have no idea how they are supported. This does bother me.

I can't quite figure out how to use the information, except

cat /sys/devices/temperature/(cpu_temperature/case_temperature)

will give me the current average cpu_temperature/case_temperature.

If you want to monitor the temperature, you could write a script and have it operate as a cron job.
Back to top
View user's profile Send private message
kludge
n00b
n00b


Joined: 11 Nov 2005
Posts: 8

PostPosted: Sun Nov 20, 2005 5:55 am    Post subject: Hrrrmm... Reply with quote

I don't have those numerical directories undert .../i2c-x, and i've got two .../i2c-x directories. i can't even find a good explanation of what i2c is or what it does. damned mac hardware!

(slightly OT, but...) i've been having this problem all over the place. the linux support for mac hardware is fantastic, but it's not nearly as thoroughly or publicly documented as the goodies for x86. at least with old pc hardware you can open the case, find the card in question, and google the part number. but apple's not broadcasting which chipsets they're using, and no one else seems to be picking up that slack.

Seriously, can anyone point me at least to some layman's explanations of i2c? I'd be seriously grateful.
Back to top
View user's profile Send private message
brenden
l33t
l33t


Joined: 09 Mar 2004
Posts: 710
Location: Calgary, AB

PostPosted: Sun Nov 20, 2005 7:17 am    Post subject: Re: Hrrrmm... Reply with quote

kludge wrote:
I don't have those numerical directories undert .../i2c-x, and i've got two .../i2c-x directories. i can't even find a good explanation of what i2c is or what it does. damned mac hardware!

(slightly OT, but...) i've been having this problem all over the place. the linux support for mac hardware is fantastic, but it's not nearly as thoroughly or publicly documented as the goodies for x86. at least with old pc hardware you can open the case, find the card in question, and google the part number. but apple's not broadcasting which chipsets they're using, and no one else seems to be picking up that slack.

Seriously, can anyone point me at least to some layman's explanations of i2c? I'd be seriously grateful.

i2c is a bus. You don't really need to know the details of it. Either way, you should get sensors working first. Take a look at the lm_sensors docs here:

http://secure.netroedge.com/~lm78/
Back to top
View user's profile Send private message
kludge
n00b
n00b


Joined: 11 Nov 2005
Posts: 8

PostPosted: Sun Nov 20, 2005 2:51 pm    Post subject: Got sensor modules, no sensor output Reply with quote

Quote:

Either way, you should get sensors working first.


The same thought occured to me last night, shortly after posting. So I attempted to emerge lm-sensors. Because I didn't have any of the hardware sensor modules compiled, CONFIG_I2C_SENSORS was unset, and lm-sensors wouldn't let itself be emerged.

OK, fudged that by manually editing my kernel config file, and got lm-sensors installed. sensors-detect runs through its whole slew of tests, and now I know which modules I need!

The iBook 2.2 has adm1031 and eeprom sensor chips.

But there's still no love. I now have devices:

Code:

blondie@tigershark ~ $ ls /sys/bus/i2c/devices
4-0050  6-0035  6-0056


but not files conky looks for.

The ouput of sensor is:

Code:

TAS3004-i2c-6-35
Adapter: mac-io 0


and that's it.

I haven't read the docs through yet, and won't have a chance until tonight, at the earliest.

Thanks for the help!

--Kludge
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