Laptop camera will not turn off/Detach/Attach

While on a signal call my camera stops working at seemingly random intervals and my video feed just becomes a gray box. Turning the camera on and off in signal does not fix it.

When I attempt to detach it I get an error from sys-usb. Right now signal is closed and sys-usb says the camera is not attached to any appvm and the light is still on. The only solution is to restart sys-usb. When I do that the light goes off.

The error i see is “QubesException - device attach failed”

This is the first time this has happened and the only that I can tell is different is that im using a wired usb mouse specifically the Razer Basilisk V2. Has anyone had similar issues or have any ideas on how to prevent this in the future?

Also every time it restarts sys-usb now registers the laptop webcam as “new” and now when I attach and detach successfully after a sys-usb restart the camera light stays on.

You should try qubes-video-companion and see if it solves your problems with the camera.

in a dom0 terminal or the appVM?

It needs to be installed in both the signal/sys-usb template and in dom0 for policies.

Template: sudo (apt or dnf) install qubes-video-companion
dom0: sudo qubes-dom0-update qubes-video-companion-dom0

Once it’s installed, make sure to restart the signal qube and sys-usb so that they inherit the new packages, and then run qubes-video-companion webcam in a terminal inside the signal qube to start using it. Select sys-usb in the dom0 prompt and try using your webcam on signal again.

I’m sorry for the silly question put how do i use the proxy to install it in sys-usb?

sys-usb should be based on a template by default. Check its settings to see which template it is using. Once you know which one, you need to install the package in that template, then shut down the template and restart sys-usb to make sure the packages are inherited.