Uso di Power Management

Modifica della definizione di inattività

La definizione di inattività di un sistema può essere modificata aggiungendo nuove voci al file /etc/power.conf. Si possono modificare le soglie di alcune operazioni che possono verificarsi su sistemi ancora considerati inattivi:

Non è possibile, tuttavia, cambiare la soglia per l'attività del mouse o della tastiera. Un'attività di questo tipo conclude sempre lo stato di inattività del sistema.

Ad esempio, è possibile modificare la definizione di inattività nel file power.conf in modo che il sistema sia considerato inattivo quando:

Il file /etc/power.conf risultante apparirà come segue:


# Power Management Configuration File
#
# Putting an entry in this file will only be effective if the 
# driver for the device supports device power management. 
# After the file is modified, pmconfig(1M) command must be
# executed to activate the new change.
#
# Fields must be separated by white space or semicolons.
# Note that physical dependents are automatically considered
# by the power management framework.

# Name           Threshold(s)       Logical Dependent(s)
/dev/kbd         1800
/dev/mouse       1800

# NOTE: The entries below are only used when no window
# system is running. When running the window system, monitor
# power management is done by the screen saver functions.

/dev/fb          0 0         /dev/kbd     /dev/mouse

# Auto-Shutdown  Idle(min)  Start/finish(hh:mm)  Behavior
autoshutdown     30          15:00 8:00           default

statefile        /.CPR

ttychars            400
diskreads           10
nfsreqs             5
loadaverage         0.1