a Kernel hack for a Powerbook thermal sensor gone crazy?
a Kernel hack for a Powerbook thermal sensor gone crazy?
- Subject: a Kernel hack for a Powerbook thermal sensor gone crazy?
- From: Fabio Cionini <email@hidden>
- Date: Tue, 25 Jul 2006 18:39:42 +0200
Hello to everyone,
I have a big issue with my Powerbook G4 (Aluminium, 1.67 Ghz, OS
10.4.7): just like several other users, the temperature sensor that
is located under the trackpad has suddenly gone crazy. It started to
send random values to the kernel (going from -130°C to +120°C): when
this value goes too high the kernel puts the computer in sleep mode.
This can happen once in a while or even every few seconds, making the
pb unusable. Sometimes it is not even possible to wake the system
from sleep or shut it down: I have to remove the battery and wait for
the backup battery to drain. My guarantee period has over (less than
a month ago! I'm so lucky...) and so I'd spend a lot of money by
replacing either the top case or the logic board in the worst case
scenario. Every other user on the net that had this problem simply
got the hardware parts replaced, but that would be too expensive for
me in this moment.
The reason why I'm writing all this to a kernel developing mailing
list is that I thought about the issue and maybe there could be a way
to fix it without replacing any hardware. I'm kinda newbie in that,
but I browsed the darwin sources using this darwingrok site http://
darwingrok.physics.ox.ac.uk:8080/source/xref/ and found that this
file http://darwingrok.physics.ox.ac.uk:8080/source/xref/
AppleMacRISC4PE/IOPlatformPlugins/PBG4_PlatformPlugin/CtrlLoops/
PBG4_DPSCtrlLoop.cpp (lines 97 and 483), among with others in the
PBG4_PlatformPlugin of the AppleMacRISC4PE project, there are
references to that specific thermal sensor, as long as methods to get
the sensor value.
Do you think it's possible to fake the kernel by modifying these
lines, to send a hardcoded value just to avoid system craziness, or
just comment the lines to avoid that specific sensor checking? The
other three sensors are working ok so I don't think this hack would
lead to any danger.
I tried to compile the AppleMacRISC4PE project but I failed (I think
I'm too newbie) even without modifying anything, so I'm asking help
to you with this issue. Maybe it's just a small modification.
Thanks in advance,
Fabio Cionini
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden