Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ powerd(8) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

power(4)

syslogd(8)

POWERD(8)  —  NEWS-OS Programmer’s Manual

NAME

powerd, sysctld − power and system control daemon

SYNOPSIS

/usr/sony/etc/powerd sysctld

DESCRIPTION

sysctld monitors and controls the power system and power/shutdown switch by a daemon in kernel.  When a problem in the power system is found, or when battery is almost empty for those machines installing the battery, sysctld halts the system and power off for the system protection.  When power failure is found for machines installing no battery or hot temperature is found, sysctld also halts the system and power off for the system protection.  powerd controls the system according to the power system information such as power voltage and the change in power voltage, obtained by sysctld.  powerd sends the following message to each tty when there is power problem. 

Power trouble.
System is going down.

powerd executes halt −x after displaying the following message in the console. 

halt by power trouble. 

sysctld and powerd provide the function to stop the system by keep pressing SHUTDOWN switch (if available), or by keep pressing POWER switch (if SHUTDOWN switch is not available).  However, when the security key exists and it prohibits such function, it is ignored.  By pressing the switch more than 5 seconds, sysctld displays the following message on the console, shuts down the system, and turns off the power. 

halt by sysctld. 

When powerd is running, system is shut down by pressing the switch more than 2 seconds.  If the resume mode is set in NWS-3100 series, when the switch been presses more than 2 seconds syslogd(8) displays the following message, resume the contents of the main memory to a hard disk, and turn off the power. 

save & halt by power/shutdown switch. 

If the resume mode is not set or it is not NWS-3100 series, syslogd(8) sends the following message to each tty, shuts down the system by executing fasthalt −x, and turns off the power. 

fasthalt by power/shutdown switch. 

The security level to permit shutdown by SHUTDOWN/POWER switch is described in /etc/powerd.conf.  It has shutdown event and maximum security level pairs.  Shutdown event in 2 seconds is described shutdown1, shutdown event in 5 seconds is discrived shutdown2. The security level to permit shutdown1 and/or shutdown2 by the power key of NWP-5461 is discribed kbd_shutdown.  Default value /etc/powerd.conf is follow. 

shutdown11
shutdown21
kbd_shutdown0

If we disable both shutdowns in security level 1, it is follow. 

shutdown10
shutdown20

For the models not installing the battery and power failure s found, powerd sends the following messages to each tty. 

Power failure detected.
System will be going down in 30 seconds.

If power is recovered in 30 seconds, powerd send the following messages to console. 

short term power failure recovered.

If power is not recovered after 30 seconds, sysctld send the following messages to console, and shut down the system by executing halt −x. 

Long term power failure detected.
System is going down.

 
For the models installing the battery, powerd warns the consumption of the battery to a user and shuts down the system.  When the battery is almost empty, syslogd(8) sends the following message to each tty. 

Battery is going out.
Please stop any jobs, and shut down.

If you use X-Window system, dialog window is poped up.  If you still continue to use and consume the battery after this message, syslogd displays the following message to the console, resumes the contents of the main memory to a hard disk, and turns off the power, if the resume mode is set. 

save & halt by low battery. 

If the resume mode is not set, syslogd(8) sends the following message to each tty. 

Not enough battery is left.
System is going down in 30 seconds.

If you use X-Window system, dialog window is poped up. 

If you still continue to work after this message, syslogd(8) sends the following message to each tty after 30 seconds. 

Out of battery.
System is going down.

Then syslogd displays the following message to the console, shuts down the system by executing fasthalt −x, and turns off the power. 

fasthalt by low battery. 

When the power system is low battery, syslogd(8) sends the following message to each tty. 

Out of battery.
System is going down.

Then it displays the following message to the console, shuts down the system by executing halt −x, and turns off the power. 

halt by nobattery.

If hot temperature is found on NWS-5000, it displays the following message to the console and sound alarm every 5 minuites while it is continued. 

WARNING: high temperature alarm

If you use X-Window system, dialog window is poped up.  If hot temperature is continued 30 minuites, it displays the following message to the console and shuts down for the system protection. 

High temprature alarm remained 30 minutes.

FILES

/dev/power device to get the power information obtained by sysctld

REMARKS

Supported only on NWS-3100 series / NWS-5000 series workstations. 
Security level in NWS-3100 series is always 0.

SEE ALSO

power(4), syslogd(8)
Hardware Operation Manuals for each models.

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026