Skip to content

Instantly share code, notes, and snippets.

@Deadlyelder
Created November 8, 2017 09:12
Show Gist options
  • Save Deadlyelder/f74c50e6cae5e499150e02632c7f788c to your computer and use it in GitHub Desktop.
Save Deadlyelder/f74c50e6cae5e499150e02632c7f788c to your computer and use it in GitHub Desktop.
Script to quickly fix the errors `There is no connected camera`. Run the script as root
#!/bin/bash
# The process VDCAssistant is called whenever
# any application attempts to use the camera.
# In some cases, when the application that was
# using the camera fails to terminate properly,
# this process is still running in background
# preventing other services from access the camera.
# A fix for this is to terminate the process using
# the activity monitor. Or just use the following script.
# NOTE: The script needs to be excecuted as root.
# This kills the process that has blocked the camers
# from being used by any application
killall VDCAssistant
# Now we also kill other process that Apple uses to manage
# camera
killall AppleCameraAssistant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment