Wiki source for ioDisablePowerManager


Show raw source

======**sqInt ioDisablePowerManager(sqInt disableIfNonZero)**======

**Parms**: disableIfNonZero, if > 0 disable, if zero enable
**return**: NONE, fake return of zero or one?
**From**: Interpreter
**Why**:
This method was added to support the ability to turn on/off power managers on laptops.
Not supported, is hardware dependent.

**Responsibility**:
Turn power management off, use more power to make VM run faster.

**MacIntosh**
The early macintosh os-9 based laptops would actually pause for say 100 ms, that would
disrupt Squeak animation so we added this call so the powerbook 3400 would run squeak better
when on Battery. Other powerbooks would nano-sleep the cpu, or reduce cpu mhz so running on
the battery would be slower but not have the same bad visual effect.

//os-9/OSXCarbon//
returns zero

//Cocoa://
See iPhone

**iPhone**
returns zero

**Unix**
returns true

**Windows**
Sets success flag to false, which fails the prim call

**BUGS**
Windows VM I think fails the primitives, other platforms ignore it.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki