Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Temp prog for pb
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
Hippi@Bacarni
n00b
n00b


Joined: 08 Mar 2004
Posts: 53
Location: Hannover, DE

PostPosted: Wed Dec 08, 2004 2:48 pm    Post subject: Temp prog for pb Reply with quote

Hello.
I'm searching for a way to get on the temps from my 15" powerbook G4 1.5Ghz. I found the pmu folder in /proc for the battery. But noothing with temps. So I looked through the dmesg and found out, that the adt sets the temp ranges. I there a way to get the values? Or are there other solutions for it?

My goal is/was to integrate the temps+battery in my fvwm menu through a script.

In osx it's easy to get the temp values, but in linux it looks a little bit harder. Also I couldn't find documentation about the adt or temps and powerbooks :( So I hope i missed something and there will be a way.

Thanks in advance for your help.
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Wed Dec 08, 2004 7:06 pm    Post subject: Reply with quote

Unfortunately I have a Powerbook G3, not a G4 but my /proc/cpuinfo contains the temperature information:

Code:
$ cat /proc/cpuinfo
processor       : 0
cpu             : 740/750
temperature     : 54-56 C (uncalibrated)
...
Back to top
View user's profile Send private message
Hippi@Bacarni
n00b
n00b


Joined: 08 Mar 2004
Posts: 53
Location: Hannover, DE

PostPosted: Sat Dec 11, 2004 9:25 pm    Post subject: Reply with quote

Well... thanks. But in my cpuinfo I have no information about the temperature :( I'll continue searching :)
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sun Dec 12, 2004 4:34 am    Post subject: Reply with quote

Did you enable Processor -> Thermal Managment Support in your Kernel .config? Otherwise you won't have that info in /proc/cpuinfo...

Quote:
Thermal Managment Support

G3 and G4 processors have an on-chip temperature sensor called the
'Thermal Assist Unit (TAU)', which, in theory, can measure the on-die
temperature within 2-4 degrees Celsius. This option shows the current
on-die temperature in /proc/cpuinfo if the cpu supports it.

Unfortunately, on some chip revisions, this sensor is very inaccurate
and in some cases, does not work at all, so don't assume the cpu
temp is actually what /proc/cpuinfo says it is.
Back to top
View user's profile Send private message
Hippi@Bacarni
n00b
n00b


Joined: 08 Mar 2004
Posts: 53
Location: Hannover, DE

PostPosted: Sun Dec 12, 2004 10:16 am    Post subject: Reply with quote

Thanks for the tip. Thermal Managment ist activated in my current kernel. But not the rest under it. Today I will compile a new kernel mit the newest sleep patch. Then I'll compile all thermal features in and see what happens.
Back to top
View user's profile Send private message
kazakhan
n00b
n00b


Joined: 19 Apr 2002
Posts: 12

PostPosted: Sun Dec 12, 2004 11:22 am    Post subject: Reply with quote

Try looking in /sys/devices/temperatures/
You should find what your looking for :)
Back to top
View user's profile Send private message
blubbfisch
n00b
n00b


Joined: 19 Oct 2003
Posts: 55
Location: World->Pacific->New Zealand->Hamilton

PostPosted: Mon Dec 13, 2004 1:36 am    Post subject: Reply with quote

I use this little beauty to inform me about the current temperatures/fan speeds:
Code:
#!/bin/sh

SYSDIR="/sys/devices/temperatures"
CPU_TEMP=`cat $SYSDIR/cpu_temperature | iconv -f l1 -t utf-8`
GPU_TEMP=`cat $SYSDIR/gpu_temperature | iconv -f l1 -t utf-8`
CPU_FAN=`<$SYSDIR/cpu_fan_speed`
GPU_FAN=`<$SYSDIR/gpu_fan_speed`
CPU_MHZ=`cat /proc/cpuinfo | grep clock | cut -f 2 -d :`


echo "CPU: $CPU_TEMP @ $CPU_FAN @$CPU_MHZ
GPU: $GPU_TEMP @ $GPU_FAN"


Have fun*

Niklas
Back to top
View user's profile Send private message
Hippi@Bacarni
n00b
n00b


Joined: 08 Mar 2004
Posts: 53
Location: Hannover, DE

PostPosted: Mon Dec 20, 2004 7:42 pm    Post subject: Reply with quote

thanks for the script.
Finally I got it working. I had to activate
Code:
Device Drivers -> Macintosh device drivers -> Support for thermal mgmnt on laptops with ADT 746x chipset


Now I have everything I wanted under /sys :) perfect!
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