def release_display(self): quartz.CGDisplayRelease(self._cg_display_id)
def restore_mode(self): quartz.CGDisplaySetDisplayMode(self._cg_display_id, self._default_mode.cgmode, None) quartz.CGDisplayRelease(self._cg_display_id)