Hijack v487: Automatically fix temperature sensor if stuck in one-shot

Posted by: mlord

Hijack v487: Automatically fix temperature sensor if stuck in one-shot - 14/02/2008 21:27

Hijack v487 is now released.

This version automatically fixes the temperature sensor if it was stuck in one-shot mode -- five out of six(!) of my own players had this problem, a legacy from years ago before we fixed the interrupt masking around sensor accesses.

The fix is totally automatic, and permanent, on boot.

This means that temperature data on affected units will now be updated every 5 seconds, instead of every 5 minutes. And the 5-minute hack is now removed from Hijack altogether.

This will *not* fix a totally dead sensor. That still requires hardware intervention, as described elsewhere in this forum.

Cheers
Posted by: tanstaafl.

Re: Hijack v487: Automatically fix temperature sensor if stuck in one- - 14/02/2008 23:38

Quote:
This version automatically fixes the temperature sensor if it was stuck in one-shot mode


I just installed v487 (been so long since I last did a Hijack upgrade I forgot how to do it and had to research it in the FAQ) and on initial bootup I got a message saying that the temperature sensor had been fixed. Subsequent bootups do not show this message. Does this mean that my temp sensor was not working right?

BTW - Hijack install/update is dead simple and bullet proof using Tony's LogoEdit program. Computer-timid people like me should have no fears about doing it.

tanstaafl.
Posted by: mlord

Re: Hijack v487: Automatically fix temperature sensor if stuck in one- - 15/02/2008 01:10

Originally Posted By: tanstaafl.
on initial bootup I got a message saying that the temperature sensor had been fixed. Subsequent bootups do not show this message. Does this mean that my temp sensor was not working right?


Yes, that what that means. In particular, it was in "one-shot" mode, whereby it would only get a temperature reading when "initialized". I first saw this problem years ago, and added code to Hijack to re-initialize it every five minutes to compensate.

But as of v487, that problem should now go away -- Hijack queries the current setting of the hardware, and fixes it (if wrong) by changing the setting to "continuous sampling" instead of "one-shot" mode. A simple thing. Dunno why it took me over six years to get around to it. smile

Oh wait.. I know why.. I was afraid of killing the sensor chip completely (another common issue from six years ago). But now that I can fix them, that doesn't worry me at all any more! (and now that we fully understand the issues, that's not going happen anyway).

Cheers
Posted by: newguy1

Re: Hijack v487: Automatically fix temperature sensor if stuck in one- - 15/02/2008 01:45

Aah Crap
DEAD Temp.sensor frown
Posted by: Robotic

Re: Hijack v487: Automatically fix temperature sensor if stuck in one- - 15/02/2008 02:45

Awesome!

[Fixed temp sensor]

Thanks, Mark!
(and Tony for LogoEdit!)

Now to double-check my high-temp warning setting to see what I should have it set to...
(currently at 53C)
Posted by: mlord

Hijack v488: nuke the "dead" pop-up annoyance - 15/02/2008 13:27

Originally Posted By: newguy1
Aah Crap
DEAD Temp.sensor frown


Ah, well.. there are plenty of units like that out there.
Bring it to the 10th Birthday Party this July, and I'll fix it for you.

Note that it was already dead even before you installed Hijack v487.

But this reminds me.. I didn't intend to have that annoying message pop-up on the screen after every boot.. I'll nuke it. It still comes out on the serial port for those who care, though.

Hijack v488 is now out with that change.

-ml
Posted by: newguy1

Re: Hijack v488: nuke the "dead" pop-up annoyance - 16/02/2008 14:35

Originally Posted By: mlord
Originally Posted By: newguy1
Aah Crap
DEAD Temp.sensor frown


Ah, well.. there are plenty of units like that out there.
Bring it to the 10th Birthday Party this July, and I'll fix it for you.

Note that it was already dead even before you installed Hijack v487.

But this reminds me.. I didn't intend to have that annoying message pop-up on the screen after every boot.. I'll nuke it. It still comes out on the serial port for those who care, though.

Hijack v488 is now out with that change.

-ml

I think ill keep the v487 version on it for now.It's a good reminder to get it fixed wink