Skip to content
MoreDisplays

Type to search.

Manual contents

mdctl deactivate

Tear the active group down.

mdctl deactivate

What it prints

One line confirming the group was deactivated.

Releases the virtual displays the active group created, and leaves physical displays alone.

mdctl deactivate
Deactivated "Office".

With no group active it is not an error. There is nothing to tear down, the command says so, and it exits 0, so a script that runs it twice does not fail on the second run.

mdctl deactivate
No group is active.

Exit codes

The same four across every command, so a script can branch on the number without knowing which command produced it.

Code Name When
0 ok The command succeeded.
1 commandFailed The app understood the command and refused or failed it. The reason is on stderr.
2 usage The arguments were wrong. Nothing was sent.
3 appNotRunning No app is listening on the socket.