Hi All, I upgraded to SuSE v7.3 from SuSE v7.1 and since then powerd won't work properly. Apparently there is a completely new powerd. Under SuSE 7.1 there were options for powerd.conf to control the different signals (assert high/low), these seem to be gone in the new version. These commands are also not anymore in the man pages. The problem I face is, the UPS expects a high RTS and closes a switch that connects it to CTS, so a high CTS defines a powerfail. When the UPS is without mains power, then rising DTR will shut it off. The new powerd rises both, RTS and DTR, when it starts, so when the power goes, within 1 second, the ups shuts down. I think I dont need an UPS to keep my systems up for this one additional second. Now, after you have laughed enough, please tell me the solution. Ta Peter Sutter 19 bebich Drive Wanneroo WA 6065 Western Australia
On Tuesday 15 January 2002 13.36, Peter Sutter wrote:
Hi All,
I upgraded to SuSE v7.3 from SuSE v7.1 and since then powerd won't work properly. Apparently there is a completely new powerd. Under SuSE 7.1 there were options for powerd.conf to control the different signals (assert high/low), these seem to be gone in the new version. These commands are also not anymore in the man pages.
The problem I face is, the UPS expects a high RTS and closes a switch that connects it to CTS, so a high CTS defines a powerfail. When the UPS is without mains power, then rising DTR will shut it off.
The new powerd rises both, RTS and DTR, when it starts, so when the power goes, within 1 second, the ups shuts down. I think I dont need an UPS to keep my systems up for this one additional second.
Now, after you have laughed enough, please tell me the solution.
I'm not sure what you're saying here, but you seem to be saying that powerd tells the UPS when the power is out. I think you'll find it's the other way around. Use the powerd.conf entry "POWERFAIL CTS HIGH" to initiate a power failure action when CTS is raised. If indeed your UPS loses power after 1 second I suggest you hand it in for maintenance. regards Anders
Thanks for your answer, Anders. OOPS. may be I was not very precise with my question. It is an older UPS and needs a special cable. In the UPS is a switch that closes when the mains power goes off. The power to that switch is provided by RTS. When the switch closes due to power fail, then CTS goes high, that is interpreted by powerd as a powerfail. This part of the mechanism works well. The part that doesn't work, is when there is no mains power, the UPS 'listens' for a 1 sec rise of DTR. If DTR goes high for 1 second and there is no mains power, then the UPS turns itself off. The old powerd let me define DTR to be low under normal opreating conditions and rise it after all machines shut down. This was the last thing the computer did when powerd invoked the shutdown. Because DTR is now ALWAYS HIGH BY DEFAULT when powerd under SuSE 7.3 is started, when the power fails, DTR is high and the UPS shuts down within one second as required. I need the mechanism with rising DTR at the end of the shutdown to tell the UPS that all computers are down, UPS shut down now! And no, there is nothing wrong with the UPS as it works perfectly under the old powerd. Regards Peter Anders Johansson wrote:
I'm not sure what you're saying here, but you seem to be saying that powerd tells the UPS when the power is out. I think you'll find it's the other way around.
Use the powerd.conf entry "POWERFAIL CTS HIGH" to initiate a power failure action when CTS is raised.
If indeed your UPS loses power after 1 second I suggest you hand it in for maintenance.
Peter Sutter wrote:
Thanks for your answer, Anders.
OOPS. may be I was not very precise with my question.
Did you by any chance just copy over your powerd.conf from your old setup? The new (7.3) powerd.conf has no default config, but does say "read manual page detectups and powerd itself. I suspect you fix it by configuring powerd with the correct values.
It is an older UPS and needs a special cable. In the UPS is a switch that closes when the mains power goes off. The power to that switch is provided by RTS. When the switch closes due to power fail, then CTS goes high, that is interpreted by powerd as a powerfail. This part of the mechanism works well.
The part that doesn't work, is when there is no mains power, the UPS 'listens' for a 1 sec rise of DTR. If DTR goes high for 1 second and there is no mains power, then the UPS turns itself off. The old powerd let me define DTR to be low under normal opreating conditions and rise it after all machines shut down. This was the last thing the computer did when powerd invoked the shutdown.
Because DTR is now ALWAYS HIGH BY DEFAULT when powerd under SuSE 7.3 is started, when the power fails, DTR is high and the UPS shuts down within one second as required. I need the mechanism with rising DTR at the end of the shutdown to tell the UPS that all computers are down, UPS shut down now!
Another thought is to use the smartups package, configured with a generic UPS. I switched to it from powerd several months (years?) ago and it has been great. -- Joe & Sesil Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: www.mydestiny.net/~joe_morris Registered Linux user 231871
participants (3)
-
Anders Johansson
-
Joe & Sesil Morris (NTM)
-
Peter Sutter