Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#865 closed Defect (fixed)

Stop using NXIdleTime in Mac client

Reported by: kc8apf Owned by: davea
Priority: Undetermined Milestone: Undetermined
Component: Client - Daemon Version: 6.4.7
Keywords: OSX Cc: charlief

Description

NXIdleTime is a deprecated API in OS X that is very likely to disappear very soon. A replacement for its usage should be found.

Change History (9)

comment:1 Changed 16 years ago by Nicolas

Cc: OSX added
Component: UndeterminedClient - Daemon
Owner: set to davea

comment:2 Changed 16 years ago by romw

Cc: charlief added; OSX removed
Keywords: OSX added
Resolution: wontfix
Status: newclosed

IIRC, Apple has already been in contact with us over that and a workaround has already been implemented to support 10.6.

NXIdleTime was being used since it supported monitoring keyboard and mouse activity when the client was being used as a daemon.

comment:3 Changed 16 years ago by kc8apf

Is the workaround available in a built version of the OS X client?

comment:4 Changed 16 years ago by romw

It looks like it is in the 6.6 version of BOINC, go ahead and give it a whirl.

comment:5 Changed 16 years ago by charlief

As of BOINC 6.6.12, BOINC uses NxIdleTime?() whenever that API is available, otherwise it uses IOHIDGetParameter(). This is because NXIdleTime() works proprely even when BOINC is run as a launchd daemon as user boinc_master on all OS 10 versions whch support it, but IOHIDGetParameter() works in that situation only in later versions of OS X.

As a result, BOINC (version 6.6.12 and later) continues to use NXIdleTime() through OS 10.5.x, and will automatically switch to IOHIDGetParameter() in O 10.6 (which has removed the NXIDleTime() API).

comment:6 Changed 16 years ago by charlief

Resolution: wontfix
Status: closedreopened

comment:7 Changed 16 years ago by charlief

Resolution: fixed
Status: reopenedclosed

comment:8 Changed 15 years ago by Nicolas

Keywords: revmissing added

comment:9 Changed 15 years ago by Nicolas

Keywords: revmissing removed

In r17432, r17434, and r17436.

Note: See TracTickets for help on using tickets.