New issue
Advanced search Search tips

Issue 832748 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 31
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug



Sign in to add a comment

[MacOS Host] Curtain mode fails to activate when monitor is not attached

Project Member Reported by joedow@chromium.org, Apr 13 2018

Issue description

If no monitors are attached to a MacOS machine when we attempt to activate curtain mode, the mechanism we rely on to enable it will silently fail and the machine won't be curtained.  We should add some logic to detect this condition and reject the connection in this state.

Note: This issue only applies to MacOS, other platforms are fine.
 
Status: Started (was: Assigned)
Project Member

Comment 2 by bugdroid1@chromium.org, Jul 30

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/294830ad3342098b682e7c2b2960fece809782ac

commit 294830ad3342098b682e7c2b2960fece809782ac
Author: Joe Downing <joedow@chromium.org>
Date: Mon Jul 30 16:18:46 2018

[MacOS] Host fails to curtain session in headless mode

This issue is due to a limitation in the tool used to curtain the
session (CGSession).  This is a known limitation which has existed
for at least 10 years.  Due to this platform problem, we cannot
ensure success when in headless mode (in fact it is practically
guaranteed to fail).  My approach is to still try to curtain but
disconnect the session with a host configuration error if it is
running headless.  If CGSession somehow succeeds, then the session
will be curtained and the user can reconnect and the second
attempt will succeed.

Note that I am not adding a new error code for this condition yet.
I'd like to avoid updating the web app / other clients until we
know how often users actually encounter this issue.

BUG= 832748 

Change-Id: Ic07c280b19d9dc44e290585e1a16bae835d37851
Reviewed-on: https://chromium-review.googlesource.com/1153560
Commit-Queue: Joe Downing <joedow@chromium.org>
Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579059}
[modify] https://crrev.com/294830ad3342098b682e7c2b2960fece809782ac/remoting/host/curtain_mode_mac.cc

Labels: M-70
Status: Fixed (was: Started)

Sign in to add a comment