5T33Z0 / Lenovo-T530-Hackintosh-OpenCore

OpenCore folder for running macOS High Sierra up to Sequoia on the Lenovo ThinkPad T530 Laptop.
BSD 3-Clause "New" or "Revised" License
94 stars 12 forks source link

Logitech HD Pro Webcam C920 not working in 3rd party Apps (Zoom, Microsoft Teams) #41

Closed 5T33Z0 closed 1 year ago

5T33Z0 commented 1 year ago

So, I have this issue I don't know how to resolve: my C920 works fine in Photobooth and Facetime on my Lenovo T530. But when using any 3rd party apps like Zoom or Microsoft Teams, the cam won't turn on because I can't grant the apps access to it. The cam is working fine on my desktop pc in Ventura which is even weirder:

Bildschirmfoto 2023-04-30 um 11 53 40

Teams and Zoom both ask me to change the Security settings so access to the cam is granted (screenshot from Zoom):

Bildschirmfoto 2023-04-29 um 10 10 26

But on the Notebook, the apps don't show up in the Security/Privacy settings :

Syssettings

I tried mapping USB ports which is not a necessity on this system but it had no effect. Changing SIP to EF0F0000 didn't have any effect either. I think the issue is related to this: https://superuser.com/questions/1441270/apps-dont-show-up-in-camera-and-microphone-privacy-settings-in-macbook

I'v tested it in Mojave, Big Sur, Monterey and Ventura – same result. Any suggestions on how to fix this would be highly appreciated.

Jan-E commented 1 year ago

I have got 2 apps listed under camera and microphone: Camera Recorder Lite and one of my own iOS apps in a Catalyst version. Those permissions survived the upgrade from BIg Sur where the internal webcam is still functioning. The Camera Recorder Lite turns my internal webcam automatically on. But the internal webcam is not working any more in Monterey and Ventura (VDA decoder failed on my 1366*768 HD4000 screen). But the microphone still worked. Even the mike of a USB headphone that has never been connected before to this Ventura. So I could record a ‘video’ with only sound. I could not get any microphone working for Skype (in Chrome), the Zoom app or the Teams app. All of them asked to give them permission in the System Settings but no new entries were there. So existing permissions (migrated from Monterey) are respected, but new ones aren’t added.

5T33Z0 commented 1 year ago

It turns out that the prompts for granting permissions to apps don't pop-up if Apple Mobile File Integrity (AMFI) is disabled. For disabling AMF, disabling SIP is required. So, if you re-enable SIP this will also re-enable AMFI – even if you are using the amfi-get-out-of-my-way boot-arg. That was new to me. Anyway, below you will find 3 different approaches for fixing this issue…

Option 1: Re-enable SIP (only applicable to macOS 11 or older)

Once SIP has been re-enabled, the prompts for granting access to the cam/mic will pop-up immediately once you launch the app requiring access to them. The apps will be listed in the Privacy Settings for Camera and Microphone afterwards.

Problem: If you are using macOS 12 or newer, you can't boot with SIP and AMFI enabled. So you either have to upgrade from an existing previous macOS install where you already granted these permissions so they are carried over to the new OS or use Option 3 instead.

Option 2: Grant permissions in Safe Mode (If SIP is disabled – not a complete solution)

Problems :

Option 3: Add permissions manually (requires command line skills)

If you can't boot with SIP enabled, you can use a tool instead to add permissions to the SQL3 database manually, as explained here: https://dortania.github.io/OpenCore-Legacy-Patcher/ACCEL.html#unable-to-grant-special-permissions-to-apps-ie-camera-access-to-zoom

More about tcc: https://eclecticlight.co/2023/02/10/privacy-what-tcc-does-and-doesnt/ Another tool to add permissions: https://github.com/jacobsalmela/tccutil

Jan-E commented 1 year ago

There might be a 4th way: ask for permission for the Teams app in Big Sur and do the update to Ventura, maybe even in 2 steps. Something you really do not want to do.

5T33Z0 commented 1 year ago

This case is already covered in Option 1

Jan-E commented 1 year ago

It is now. But it was not in the 1st version of the comment (which I received by mail). In that version you only had 2 options 👍