Framework-Laptop-13 icon indicating copy to clipboard operation
Framework-Laptop-13 copied to clipboard

Camera privacy screen

Open phodina opened this issue 7 months ago • 5 comments

Hi @JohnAZoidberg ,

is there a way to change the privacy screen if it's active?

I guess it's an image that's hardcoded to the FW in the webcam controller as it's being received in the UVC stream over USB and is not part of the kernel nor userspace, right?

Image

phodina avatar May 03 '25 15:05 phodina

Yeah sorry, no way to change it. It's embedded in the camera firmware.

JohnAZoidberg avatar May 03 '25 15:05 JohnAZoidberg

Okay, so the only way would be to detect it in stream and replace it with pipewire, right?

Btw is there a way to update the firmware on the controller? Like force it to DFU or something like that?

phodina avatar May 03 '25 16:05 phodina

Okay, so the only way would be to detect it in stream and replace it with pipewire, right?

No actually there's a UVC bit that you can look at to detect whether the switch is flipped or now. See: https://github.com/soyersoyer/cameractrls/pull/51 You could hook pipewire to detect that and replace the image.

Btw is there a way to update the firmware on the controller? Like force it to DFU or something like that?

The firmware can be updated using DFU and we distribute firmware updates on fwupd. But unfortunately the firmware does not support updating the mute image using DFU 😓 That needs to be done using a proprietary extension.

JohnAZoidberg avatar May 06 '25 06:05 JohnAZoidberg

No actually there's a UVC bit that you can look at to detect whether the switch is flipped or now.

Awesome, that's a good way to swap the image.

The firmware can be updated using DFU and we distribute firmware updates on fwupd.

Nice that it supports the DFU and it's integrated into the LVFS. Thanks for the effort!

That needs to be done using a proprietary extension.

Do you mean it would require also some hardware tools or just some extensions on top of the DFU( or some other protocol)?

Any chance to release some open source tools? Or are there let's say tools for Windows to capture the USB traffic and reverse-engineer that?

phodina avatar May 11 '25 04:05 phodina

The firmware can be updated using DFU and we distribute firmware updates on fwupd. Nice that it supports the DFU and it's integrated into the LVFS. Thanks for the effort!

Actually we haven't had the need to update the firmware since release - we've only used that for Framework internal updates before public release.

Any chance to release some open source tools? Or are there let's say tools for Windows to capture the USB traffic and reverse-engineer that?

wireshark + USBPcap ;)

JohnAZoidberg avatar May 19 '25 16:05 JohnAZoidberg