Acer Aspire A514-55 – bluetooth and webcam in Linux

Added entry for the 04ca:3804 bluetooth device

Here’s how to enable both Quanta Computer, Inc. ACER HD User Facing webcam and Lite-On Technology Corp. Wireless_Device on Linux. I’m using Pop!_OS 22.04 LTS.

Webcam: ID 0408:4033 Quanta Computer, Inc. ACER HD User Facing

wget https://raw.githubusercontent.com/Giuliano69/uvc_driver-for-Quanta-HD-User-Facing-0x0408-0x4035-/main/uvc_driver.c

sudo apt-get source linux-modules-extra-$(uname -r)

cd linux-6.0.12/drivers/media/usb/uvc/

mv uvc_driver.c uvc_driver.c.old

Copy the downloaded file to the current dir.

nano uvc_driver.c

Add a new section like this above the section describing .idProduct = 0x4035:

/*
 * The Logitech cameras listed below have their interface class set to
 * VENDOR_SPEC because they don’t announce themselves as UVC devices,
even
 * though they are compliant.
 */
static const struct usb_device_id uvc_ids[] = {
        /* Quanta ACER HD User Facing */
        { .match_flags  = USB_DEVICE_ID_MATCH_DEVICE
                        | USB_DEVICE_ID_MATCH_INT_INFO,
          .idVendor = 0x0408,
          .idProduct = 0x4033,
          .bInterfaceClass = USB_CLASS_VIDEO,
          .bInterfaceSubClass = 1,
          .bInterfaceProtocol = UVC_PC_PROTOCOL_15,
          .driver_info = (kernel_ulong_t) &(const struct
uvc_device_info ) {

.uvc_version = 0x010a, } },

make -j4 -C /lib/modules/$(uname -r)/build M=$(pwd) modules

sudo cp uvcvideo.ko /lib/modules/$(uname -r)/kernel/drivers/media/usb/uvc/

Bluetooth: ID 04ca:3804 Lite-On Technology Corp. Wireless_Device

cd linux-6.0.12/drivers/bluetooth/
sudo nano btusb.c

add new entry:

{ USB_DEVICE(0x04ca, 0x3804), .driver_info = BTUSB_MEDIATEK |

BTUSB_WIDEBAND_SPEECH |

BTUSB_VALID_LE_STATES },

sudo make -j4 -C /lib/modules/$(uname -r)/build M=$(pwd) modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/

Reboot