Home » Questions » Computers [ Ask a new question ]

How to find which app is using iSight (the iMac camera)

How to find which app is using iSight (the iMac camera)

How do I find out which application has the camera open on an iMac (Running Leopard)? The green light is on indicating the camera is in use as well as photo booth can't connect to the camera. The only other apps running are Safari and Finder (as best as I can tell), neither of which seem to be using the camera.

Asked by: Guest | Views: 314
Total answers/comments: 4
bert [Entry]

"My best guess would be that iChat Agent was running in the background.

If not, then try:

lsof | grep -i ""AppleCamera""

In previous versions of OS X (before Yosemite), this should be used:

lsof | grep -i ""iSight"""
bert [Entry]

"lsof is a good bet. Grepping for 'VDC' gives me the best results, but in older versions of OSX you may have to use other terms 'AppleCamera', 'iSight'.

Then you have a list, and you see that a couple of programs are using the cam. You could try to kill them one by one, but what if one is in the browser and you have a million tabs open?

Usually this trick works for me:

open ActivityMonitor,
search VDC, VDCAssistant is listed,
force quit VDCAssistant.

Result is that all processes trying to use the camera are temporarily disconnected. This takes care of processes that kept using the camera because of some glitch. The VDCAssistant is restarted automatically.

This trick also works great if a program cannot access the camera."
bert [Entry]

"Borrowing the excellent solution that iwein proposed, but streamlining it and making it scriptable, you can do this:

sudo pkill 'VDCAssistant'

You could then put this into a function to make it easier to remember:

repocam () {
sudo pkill 'VDCAssistant'
}

You can put that function in your .zshrc file or .bashrc or whatever you use.

Out of scope but worth pursuing:

You could even set up a cron job or launchd agent or whatever you want (Google for details!) to run it every so often. If you can figure out which app (such as HipShat) is triggering the problem, you might be able to figure out a way to run it upon exiting the app.

It's also possible to trigger scripts when your computer wakes up or goes to sleep."
"Borrowing the excellent solution that iwein proposed, but streamlining it and making it scriptable, you can do this:

sudo pkill 'VDCAssistant'

You could then put this into a function to make it easier to remember:

repocam () {
sudo pkill 'VDCAssistant'
}

You can put that function in your .zshrc file or .bashrc or whatever you use.

Out of scope but worth pursuing:

You could even set up a cron job or launchd agent or whatever you want (Google for details!) to run it every so often. If you can figure out which app (such as HipShat) is triggering the problem, you might be able to figure out a way to run it upon exiting the app.

It's also possible to trigger scripts when your computer wakes up or goes to sleep."
bert [Entry]

"you can also use the oversight app: objective-see.com/products/oversight.html

oversight app can detect whether some other apps are using your camera or microphone, alert you, then you can choose to block it, leave it, or add it to whitelist."