Page 1 of 1

Security Update for NHC ACPI script:

Posted: Sun May 06, 2007 3:29 am
by Spawn123456
Hi,

I've updated the script and I recomment an update due to security reasons:

This script is only for the NHC-Release 6 or newer. Older ones could work, but I won't support this.

To get the script to work, please see http://forum.thinkpads.com/viewtopic.php?t=28482


ToDo's

1. WLAN:
I don't think that this will ever work on the old ThinkPads. But I think it's possible to write it for the New Ones (T60). Refer to the linux thinkpad-acpi for details...

2. Bugfixen

News in v0.90:
1. The FAN-Controll is given back to the bios if you disable ACPI or exit NHC

2. If the temperature goes above 75° C (Emergency break) then the "Standby" starts flashing and there are three beeps. The Standby symbol stops flashing if the temperature goes below 75° or you quit NHC/disable ACPI
You can disable the LED feature by changing the line
#define LED to
#undef LED

3. Modified the thermal zone: The Symbol in the task-pane now shows the temperature which is used to controll the fan.
You can disable this feature by changing the line
#define Tzon0 to
#undef Tzon0

4. If you have a Core2Duo then the "maximal" Temperature is shown in the 2. thermal Zone. This one is untested, but not critical, because their isn't any ACPI interaction.
You can disable this feature by changing the line
#define Core2Duo to
#undef Core2Duo


5. The temperature sensors now are all working. It's not possible anymore to disable them completly while NHC is running. You have to update the script to do this:
TSENSORACTIVEDEFAULT = {1,1,1,1,1,1,1,1,1,1,1,1};
1 means on, 0 means off
If a sensor shows 0°, then the sensor is not working (i.e. the ultrabay batterie sensor if you don't have one)
If a sensor is below 0° then you have it deactivated in NHC. This means the sensor is only important for the emergency break.

6. Update to the brightness function. Maybe it will work now on the x3* and x4*.

7. Update to the extended fan control for the x3* and x4*.
This one is completly untested. You can enable it by changing
#undef extendetFanControl to
#define extendetFanControl
but be ready to reboot...


That's it




Carl



Download:
http://nhc.justred.info/uploads/files/s ... 1qpvi8nfh6

Edit: Updated the link, so you don't have to sign in to another forum any more...

Posted: Thu May 10, 2007 7:03 pm
by marcos
Hi,

I've just installed the new NHC and script ver 0.90
All seems fine, but when I enabled the script on my t42 by clicking ACP support off and on, lcd brightness dropped to miniumum and I had to reset applying a profile.
Not a problem but you may find a reason for that. Tomorrow I will test it on my t43 that for some reason was always giving an error with the previous version.

Thanks !!!

Posted: Fri May 11, 2007 12:01 am
by Spawn123456
Hi Marcos,


I also have sometimes this problem. Normaly I only get it after compiling the dll the first time or changing profiles. This is not a script problem, the brightness is set by NHC itself. So you can deactivate it (#define brightness to #undef brightness) or you can try to set better settings under the Graphic tab of NHC (sometimes it's not there, then you need to restart NHC)


regards


Carl

hi

Posted: Fri May 11, 2007 12:06 pm
by havrancek
I want to ask, if your script is usable also for Z61m..
are there any differencies between T43p and Z61m?
thx

is there anything I need to fix?

Posted: Thu May 24, 2007 4:04 pm
by propellen
Hi,

Thanks for what looks to me, an excellent script.
But i'm having a bit of installation issues here.

I've got a Lenovo Thinkpad T60 2007-FUG

Code: Select all

<?xml version="1.0"?>
<LENOVO>
  <Model name="2007fug" location="MAINBOARD" class="TPFancontrol" file="lenovo.cs" />
</LENOVO>

Code: Select all

<?xml version="1.0"?>
<IBM>
  <Model name="2007fug" location="SYSTEM" class="t43p" file="IBM.cs" />
</IBM>
What am i doning wrong?
I keep getting
ACPI Control System is not yet configurated for this system

:D
Thanks in advance.
propellen

Posted: Fri May 25, 2007 2:08 pm
by propellen

Code: Select all

<?xml version="1.0"?>
<lenovo>
  <Model name="2007fug" location="SYSTEM" class="t43p" file="ibm.cs" />
</lenovo>
I've now updated the XML file. but i still get ACPI Control System is not yet configurated for this system

I would so much appreciated a hint in the right direction here. I'm lost :D


Thanks.
propellen

EDIT:
Finally got them working with the new files from
http://staff-www.uni-marburg.de/~schmitzr/nhc_tpfc.zip

Posted: Thu May 31, 2007 1:07 pm
by skanky
iirc, you have to edit the .cs file, theres a IBM reference that needs to be changed from:

Code: Select all

public static class IBM
to:

Code: Select all

public static class LENOVO

I don't recomend this one.

Posted: Fri Aug 10, 2007 12:58 pm
by Melvyn
After installing that I can see some unstability in my system. Last version was in use for a long time. Today installed this one because was "security update" and it put my machine crazy.

1) Some times don't shutdown.
2) The stand by led (half moon) stay blinking all time
3) Bad, very bad translation to "english".
4) Indicator for fan speed at 126rpm
5) Indicator of temperature at 195 C (it can be Farenheit, not C -> Celsius)

I uninstalled it and tried again the old version which is working and have worked all time.