Qonfused / ASUS-ZenBook-Duo-14-UX481-Hackintosh

OpenCore configuration for the ASUS ZenBook Duo 14" (UX481FA/FL)
https://github.com/Qonfused/ASUS-ZenBook-Duo-14-UX481-Hackintosh
BSD 3-Clause "New" or "Revised" License
31 stars 1 forks source link

Fix built-in camera #23

Closed Qonfused closed 1 year ago

Qonfused commented 1 year ago

AnyiSightCam UVC driver requires info.plist changes for all instances of idProduct and idVendor with decimal form of the product and vendor ids. You can find these values for the webcam in system information under USB. May require documentation for potential fixes.

In my case I had 0x56cb and 0x13d3 for my product and vendor ids.

danperks commented 1 year ago

FYI Webcam info on my UX581, in case its the same webcam

Screenshot 2023-01-03 at 18 48 45
Qonfused commented 1 year ago

Yeah, it appears to be the same webcam. It looks like yours is missing its serial number, which can be problematic. Does your webcam work on your machine?

danperks commented 1 year ago

Webcam is detected in apps but no signal seems to get through, either a black or blank screen depending on the app.

Qonfused commented 1 year ago

Forgot to update issue status. This is the same behavior I'm noticing on the UX481.

Qonfused commented 1 year ago

Interesting note: when the camera (USB) is passed through to QEMU or VMware Fusion, the camera does properly function when loaded with the proper drivers.

I've added the AnyiSightCam kext in https://github.com/Qonfused/ASUS-ZenBook-Duo-14-UX481-Hackintosh/commit/e0672e87eb7d4d2a78975f29b1ebd285a1323b21, though this assumes PID 0x56cb; instances of 22219 will need to be replaced with 22251 for product ids under IOKitPersonalities (in the kext Info.plist). You can also use the same kext from shiecldk and just replace product/vendor ids the same way.

Qonfused commented 1 year ago

Reopening as current issue is a regression.

shiecldk commented 1 year ago

@Qonfused @danperks Do you reset your BIOS settings and stop using modGRUBShell? I found out modGRUBShell can mess up USB ports on my UX582. Once I stop using modGRUBShell and only set the BIOS settings, I can get the camera and the USB ports to work normally.

I only set these options in BIOS:

Qonfused commented 1 year ago

@Qonfused @danperks Do you reset your BIOS settings and stop using modGRUBShell? I found out modGRUBShell can mess up USB ports on my UX582. Once I stop using modGRUBShell and only set the BIOS settings, I can get the camera and the USB ports to work normally.

Yes, I have re-flashed my bios since then; my current settings for reference are listed in https://github.com/Qonfused/ASUS-ZenBook-Duo-14-UX481-Hackintosh/wiki/Install-Guide-(WIP)

Qonfused commented 1 year ago

I don't believe there is a fix for this. Will revisit if more information about the underlying issue is found.

shiecldk commented 1 month ago

@Qonfused Did you solve this? You may want to check if you have USB builtin with USBport.kext. It's most likely a USB issue.

Qonfused commented 1 month ago

It's marked as internal here under port 5: image https://github.com/Qonfused/ASUS-ZenBook-Duo-14-UX481-Hackintosh/blob/83efd22fafbbeaf76c5bec7a3fa868ed32c49908/src/Kexts/UTBMap.kext/Contents/Info.plist#L81-L89

Unfortunately there is no driver support in macOS for UVC/IR cameras.

shiecldk commented 1 month ago

@Qonfused Have you checked these? https://github.com/cobaohieu/ASUS-K55VD-HACKINTOSH/issues/8 https://www.tonymacx86.com/threads/hp-hd-camera-not-working-on-hp-probook-450-g7-uvc-camera.324547/

https://www.perplexity.ai/search/how-to-get-uvc-ir-cameras-on-m-1rJgMFH5R1aUQSAf_Zhv9Q#0

Qonfused commented 1 month ago

I have seen the GitHub issue before, but not after Mar 2023. It did mention an updated version of CameraControl, but I'm not sure if this still works past Mojave. The main suspicion is that the camera exposure isn't set by default, so the incoming image will always be black.

There aren't any additional wires/controls exposed by the camera, so the only way to control the camera exposure would be through a UVC/IR driver. These are the only wires connected to USB port 5:

image image