{"id":18963,"date":"2023-09-24T22:10:36","date_gmt":"2023-09-24T20:10:36","guid":{"rendered":"https:\/\/www.blix-dahle.no\/?p=18963"},"modified":"2023-09-24T23:14:32","modified_gmt":"2023-09-24T21:14:32","slug":"acer-aspire-a514-55-quanta-computer-inc-acer-hd-user-facing-webcam-in-ubuntu-23-10-on-kernel-6-5","status":"publish","type":"post","link":"https:\/\/www.blix-dahle.no\/?p=18963","title":{"rendered":"Acer Aspire A514-55 &#8211; Quanta Computer, Inc. ACER HD User Facing webcam and Lite-On Technology Corp. Wireless_Device (bluetooth) in Ubuntu 23.10 on kernel 6.5"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"525\" src=\"https:\/\/www.blix-dahle.no\/wp-content\/uploads\/2023\/09\/Pasted-image-900x525.png\" alt=\"\" class=\"wp-image-18964\" srcset=\"https:\/\/www.blix-dahle.no\/wp-content\/uploads\/2023\/09\/Pasted-image-900x525.png 900w, https:\/\/www.blix-dahle.no\/wp-content\/uploads\/2023\/09\/Pasted-image-693x405.png 693w, https:\/\/www.blix-dahle.no\/wp-content\/uploads\/2023\/09\/Pasted-image-200x117.png 200w, https:\/\/www.blix-dahle.no\/wp-content\/uploads\/2023\/09\/Pasted-image-750x438.png 750w, https:\/\/www.blix-dahle.no\/wp-content\/uploads\/2023\/09\/Pasted-image.png 1216w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Webcam<\/strong><br>First I must inform you about the fact that this webcam comes with at least two different device numbers:<br><strong>Webcam: ID 0408:4033 Quanta Computer, Inc. ACER HD User Facing<\/strong> (mine)<br><strong>Webcam: ID 0408:4035 Quanta Computer, Inc. ACER HD User Facing<\/strong> <br><br>This important to know, since if you&#8217;ve got the latter, the modified source code for the kernel module can be used directly. If you got the same as I, the 4033 variant, you&#8217;ve to edit the file uvc_driver.c before compiling it.<br><br>First, let&#8217;s add some tools before getting the modified uvc-code:<br>&#8216;<em>sudo apt install libelf-dev dpkg-dev libssl-dev bison bc flex build-essential<\/em>&#8216;<br><br>The module source is available as a git-project: https:\/\/github.com\/Kvalme\/uvc<br>You can download it by &#8216;<em>git clone https:\/\/github.com\/Kvalme\/uvc.git<\/em>&#8216;<br><br>To be able to use this code, having the 4033-variant of the webcam, edit the uvc_driver.c file with your favourite editor, find the line containing  <strong>.idProduct = 0x4035,<\/strong> and change it to <strong>.idProduct = 0x4033,<\/strong> <br>Save the file.<br><br>Now we can follow the described procedure:<br>&#8216;<em>make<\/em>&#8216;<br><br>To test your new module, run &#8216;<em>sudo rmmod uvcvideo; sudo insmod .\/uvcvideo.ko<\/em>&#8216;<br>Using &#8216;cheese&#8217; or any other webcam program, you should now have an active camera.<br><br>To replace the original module with the new one and allow it to work automatically after reboot, you first need to compress uvcvideo.ko to uvcvideo.ko.zst using this command: &#8216;<em>zstd uvcvideo.ko<\/em>&#8216;<br>Next, we need to copy it into the right spot depending on your running kernel version with this command: &#8216;s<em>udo cp uvcvideo.ko.zst \/usr\/lib\/modules\/$(uname -r)\/kernel\/drivers\/media\/usb\/uvc\/<\/em>&#8216;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Bluetooth:<\/strong><br>This procedure will make your <strong>ID 04ca:3804 Lite-On Technology Corp. Wireless_Device<\/strong> working with kernel 6.5 (and probably other 6.x kernel versions as well) on Ubuntu 23.10.<br><br>First we need to get some more tools:<br>&#8216;<em>sudo apt-get install libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf llvm<\/em>&#8216;<br><br>Next, we need to get the full kernel source for the running kernel:<br>1. Edit \/etc\/apt\/sources.list. Add these lines to it:<br><em>deb-src http:\/\/archive.ubuntu.com\/ubuntu mantic main<br>deb-src http:\/\/archive.ubuntu.com\/ubuntu mantic-updates<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. &#8216;<em>sudo apt update; apt-get source linux-image-unsigned-$(uname -r)&#8217;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. After the obove process is finished &#8211; &#8216;<em>cd linux-6.5.0\/drivers\/bluetooth\/<\/em>&#8216;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. With your editor, open <strong>btusb.c<\/strong><br>I did it the easy way this time and just changed the line containing <strong>{ USB_DEVICE(0x04ca, 0x3801), .driver_info = BTUSB_MEDIATEK |<\/strong> to <strong>{ USB_DEVICE(0x04ca, 0x3804), .driver_info = BTUSB_MEDIATEK |<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. Standing in above dir, run &#8216;<em>sudo make -C \/lib\/modules\/$(uname -r)\/build M=$(pwd) modules<\/em>&#8216;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. After the compilation has finished (compiles all the bluetooth modules, but you&#8217;re going to use only the btusb.ko) you&#8217;ve to compress the btusb.ko with &#8216;<em>zstd btusb.ko<\/em>&#8216;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. Final step &#8211; move the modified module into place to work after reboot:<br>&#8216;<em>sudo cp btusb.ko.zst \/usr\/lib\/modules\/$(uname -r)\/kernel\/drivers\/bluetooth\/<\/em>&#8216;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Reboot and enjoy!<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WebcamFirst I must inform you about the fact that this webcam comes with at least two different device numbers:Webcam: ID 0408:4033 Quanta Computer, Inc. ACER HD User Facing (mine)Webcam: ID 0408:4035 Quanta Computer, Inc. ACER HD User Facing This important to know, since if you&#8217;ve got the latter, the modified source code for the kernel &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.blix-dahle.no\/?p=18963\">Fortsett \u00e5 lese<\/a><\/p>\n","protected":false},"author":2,"featured_media":18964,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-18963","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dagens-bilde","item-wrap"],"_links":{"self":[{"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=\/wp\/v2\/posts\/18963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18963"}],"version-history":[{"count":2,"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=\/wp\/v2\/posts\/18963\/revisions"}],"predecessor-version":[{"id":18967,"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=\/wp\/v2\/posts\/18963\/revisions\/18967"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=\/wp\/v2\/media\/18964"}],"wp:attachment":[{"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blix-dahle.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}