objective-see / OverSight

OverSight monitors a mac's mic and webcam, alerting the user when the internal mic is activated, or whenever a process accesses the webcam.
GNU General Public License v3.0
511 stars 39 forks source link

2.0.1 (OSX Monterey 12.2.1) - No notification/script fire for mic disabled #28

Closed icorncake closed 2 years ago

icorncake commented 2 years ago

In OSX Monterey 12.2.1, Oversight functioning correctly for camera on, camera off, and microphone on events but microphone off is not showing any notifications nor is it firing the script I set it to fire for events. I am using the MacBook onboard camera and mic for testing. I debugged by having my bash script write to a log file when the script first starts, when the script determines what device event it is (cam|mic), and then what action to take (on|off):

Example bash script debug from starting a Zoom session with onboard camera and mic on and then ending the meeting:

running mic-cam-detection.sh...
checking if event is camera on or off...
turning cam on...
running mic-cam-detection.sh...
checking if event is microphone on or off...
turning mic on...
running mic-cam-detection.sh...
checking if event is camera on or off...
turning cam off...

Since echo "running mic-cam-detection.sh..." >> logfile.txt is the first command in the bash script, this tells me that OverSight is not executing script at all for event microphone off. I do not get a notification either. It's not just a Zoom issue as I have tested with Voice Memos as well:

running mic-cam-detection.sh...
checking if event is microphone on or off...
turning mic on...
icorncake commented 2 years ago

A laptop restart didn't fix the issue but 2 restarts did. Not sure why but the issue isn't happening after that. Closing.