TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Ruud Senden
date: 1996-06-19 12:00:36
subject: Power Management

Hallo All,

I have a question about the power management in OS/2. Does anybody know
whether it is possible to run a program automatically whenever the computer
is suspended (by selecting 'Suspend' from the Power-Management icon, by
using the power-switch on the computer or automatically after a specific
period of inactivity).

The reason I want to do this is that on my Aptiva, when I have the
answering machine turned on under OS/2 and, for example, it is set to
answer on ring 5, it takes three rings first to start the computer up again
if it is suspended (if wake-up on ring is enabled), so 8 rings in total. So
I want to set the number of rings to a lower number when the computer is
suspended, and set it back again when operation resumes.

Does anybody know whether this is possible, and if so, give some sample
code? If somebody knows another solution to this problem, it is welcome
also ofcourse.

BTW, I'm using VisualAge C++ and OS/2 Warp.

Regards, Ruud 

--- timEd/2 1.10+
* Origin: The OS/2 Warp Based System (2:280/804.2054)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 517 628 713/888 800/1
@PATH: 280/804 801 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.