| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Power Management |
Hello Ruud!
Wednesday June 19 1996, Ruud Senden writes to All:
RS> I have a question about the power management in OS/2. Does anybody know
RS> whether it is possible to run a program automatically whenever the
RS> computer is suspended
Theoreticly it should be possible. Using DosDevIoCtl catagory 0Ch (
Advanced Power Managment ).
You can control it using POWER_SENDPOWEREVENT, POWER_SETPOWEREVENTRES,
POWER_GETPOWERSTATUS, POWER_GETPOWEREVENT and POWER_GETPOWERINFO
POWER_SENDPOWEREVENT could be used to 'activate' your computer
POWER_SETPOWEREVENTRES can be used to register a semaphore with the APM so
your program can sleep until the semaphore has been activated. ( providing
the right event took place )
POWER_GETPOWEREVENT can be used to check in what condition your machine is.
( i.e. enable your program when it goes into suspension and disable your
programma when your machine awakes )
The CP reference refers to specific power managment messages, but I really
do not know where to look, except for a reference of the APM ( the big
interrupt list maybe ? )
==> Gerard/2 - member of team os/2 - 1000521{at}ibk.fnt.hvu.nl
--- Fmail/2 1.02 Registered
* Origin: Living in interesting times (2:283/203.18)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: 283/203 2 512 280/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™.