Remove this ad


Dec 1 13 1:28 AM

Tags : :

In MacOS Mavericks the setting "Disable computer's timed standby mode" doesn't seem to work anymore.

In amule a deprecated API was used to avoid the standby.

In attached patch I replaced the deprecated API.

Please notice that the API avoid to enter in MONITOR STOP mode, so the monitor will stay always turned on!
If I understood well Apple documentation in this way it is possible to avoid COMPUTER STOP mode (Apple version of computer standby).

Don't ask me way but on some models of Mac the monitor in stop can also stops the network interfaces (see and look for "If you wish to use file sharing").

Again, the patch is against amule SVN rev10816.

File patched is PlatformSpecific.spp

Mr Hyde
Click here to view the attachment
Quote    Reply   
Remove this ad
Remove this ad

#2 [url]

Dec 4 13 8:42 PM

Re: MacOS 10.9 Mavericks and standby/STOP

Sorry Stu,
I just realized that I made a wrong copy and paste, so I moved one line of Windows-specific code inside Mac code.

Here the patch against rev10825 (same patch in attachment)

--- PlatformSpecific.cpp.ORIGINAL 2013-12-04 20:33:53.000000000 +0100
+++ PlatformSpecific.cpp 2013-12-04 20:34:48.000000000 +0100
@@ -334,6 +334,8 @@
if (!m_preventingSleepMode) {
#ifdef _MSC_VER
+ m_preventingSleepMode = true;
// IOPMAssertionCreate has been introduced in Leopard (10.5) but deprecated starting from Snow Leopard(10.6)
#elif defined(__WXMAC__) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 // 10.6 only
IOReturn success = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep,
@@ -345,7 +347,6 @@
// May be should be better to trace in log?

- m_preventingSleepMode = true;
#elif defined(__WXMAC__) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1050 // 10.5 only
IOReturn success = IOPMAssertionCreate(kIOPMAssertionTypeNoDisplaySleep,
kIOPMAssertionLevelOn, &assertionID);
Click here to view the attachment

Quote    Reply   
Add Reply

Quick Reply

bbcode help