GithubHelp home page GithubHelp logo

fus0g / quanta-hd-user-facing-0x0408-0x4035_linux Goto Github PK

View Code? Open in Web Editor NEW
43.0 6.0 7.0 1.49 MB

Linux Kernel uvc driver for Quanta-HD-User-Facing-0x0408,0x4035 usually found on acer laptops

Makefile 0.13% C 99.48% Shell 0.39%

quanta-hd-user-facing-0x0408-0x4035_linux's Introduction

Quant HD User Facing Driver Module for Webcam Found in Acer Laptops.

this module fixes camera 📷 on bunch of acer laptops 💻 like Acer Nitro 5 running linux.

Special Thanks to @Giuliano69 for the driver reference 🥰


USAGE

check if its present in your laptop or not.

lsusb | grep "Quanta Computer"

if it shows something like this

Bus 003 Device 003: ID 0408:4035 Quanta Computer, Inc.

or

Bus 003 Device 003: ID 0408:4033 Quanta Computer, Inc.

then you can go ahead.


⚠️IMPORTANT⚠️

👉 Disable Secure boot in your Laptop's 💻 BIOS 👈

as the module is not signed and it will give error

insmod: ERROR: could not insert module /usr/lib/modules/uvcvideo.ko: key was rejected by service


Install Required Packages

ubuntu

sudo apt install build-essential

This May be Required on some debian based distros

sudo apt-get install gcc-12 g++-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 20

Fedora/Nobara

sudo dnf install kernel-devel

clone the repo

git clone https://github.com/fus0g/Quanta-HD-User-Facing-0x0408-0x4035_linux.git && cd Quanta-HD-User-Facing-0x0408-0x4035_linux

Method 1: build and install

chmod +x install_driver.sh
./install_driver.sh

Method 2: Makefile method

$ make                   // previously installed modules remove and install again
$ make clean            // clean previous installed modules
$ make install         // install the module

Now your camera should be working most probably!


if this dont work then try doing it manually by the following steps.

  1. Get Your Kernel Source
  2. Navigate to drivers/media/usb/uvc
  3. Add This code to uvc_driver.c
  4. compile the module only in the same directory using the command
    make -C /lib/modules/$(uname -r)/build M=$(pwd)
    
    on ubuntu based distros
    COMPILER_VERSION=$(grep -o 'x86_64-linux-gnu-gcc-[0-9]*' /proc/version | head -n 1)
    make -C /lib/modules/$(uname -r)/build M=$(pwd) CC="$COMPILER_VERSION"
    
  5. If it compiles fine you would get a uvcvideo.ko module in the folder.
  6. Unload previous version from kernel using
    sudo rmmod uvcvideo
    
  7. Load new module
    sudo insmod uvcvideo.ko
    
    Now it should work but change will be removed on reboot:)

Tested On

Distro version
Nobara 38
Nobara 39
Fedora 39
Fedora 40
Ubuntu 23.10
Ubuntu 24.04
Pop_OS! 22.04
Arch Linux Latest
Cachy OS Latest
Linux Mint 22
OpenSuse Tumbleweed Latest

Tell me if it works for you! i will update the readme!

Dont forget to star ⭐ the repo and follow me on github 😉


BuyMeACoffee if you want

Buy Me A Coffee


you can reach me out for any issues and help on ⬇️

Static Badge Static Badge

quanta-hd-user-facing-0x0408-0x4035_linux's People

Contributors

fus0g avatar a0x14d avatar anurag-choudhury avatar giuliano69 avatar

Stargazers

Himanshu Boora avatar Subha avatar Renz Campita avatar Ananda Sá avatar tribhuwan avatar Mateus Honorato avatar Sarath avatar Thomas Gomez Serpa avatar Henry avatar Aswin Lal M avatar Nikhil Radder avatar Rui Borges avatar William Humberto Herrera Rey avatar Abhishek avatar Edison Modesto avatar  avatar Aashish Mishra avatar Ewerton avatar Felipph Calado avatar Genadí Reuben avatar  avatar  avatar Boris Ploskovitov avatar Gabriel avatar Monarch avatar  avatar  avatar Daksh Rana avatar magiikn avatar Ayush Prasad avatar Marsh avatar  avatar Madhav Kapila avatar Truong Thanh Dat avatar  avatar Andres Felipe Sierra Rojas  avatar  avatar Nayan_rv avatar DeadShot0x7 avatar RISHIKESH DONADKAR avatar Wagner Nascimento avatar Vatsalya Vyas avatar Harshit Gupta avatar

Watchers

Lucian avatar Boris Ploskovitov avatar  avatar  avatar Sarath avatar Subha avatar

quanta-hd-user-facing-0x0408-0x4035_linux's Issues

Not able to install the drivers on fedora 40

After cloning the repo followed the following steps

  • chmod +x install_driver.sh
  • ./install_driver.sh

but i'm getting the following error
Job for loaduvc.service failed because the control process exited with error code. See "systemctl status loaduvc.service" and "journalctl -xeu loaduvc.service" for details.

Output of systemctl status loaduvc.service

`× loaduvc.service - loads custom uvc driver
Loaded: loaded (/etc/systemd/system/loaduvc.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: failed (Result: exit-code) since Mon 2024-05-13 18:33:47 IST; 2min 47s ago
Process: 32969 ExecStart=/usr/bin/loaduvc.sh (code=exited, status=1/FAILURE)
Main PID: 32969 (code=exited, status=1/FAILURE)
CPU: 52ms

May 13 18:33:47 shahi systemd[1]: Starting loaduvc.service - loads custom uvc driver...
May 13 18:33:47 shahi loaduvc.sh[32970]: rmmod: ERROR: Module uvcvideo is not currently l>
May 13 18:33:47 shahi loaduvc.sh[32971]: insmod: ERROR: could not insert module /usr/lib/>
May 13 18:33:47 shahi systemd[1]: loaduvc.service: Main process exited, code=exited, stat>
May 13 18:33:47 shahi systemd[1]: loaduvc.service: Failed with result 'exit-code'.
May 13 18:33:47 shahi systemd[1]: Failed to start loaduvc.service - loads custom uvc driv>`

And no entries in journalctl -xeu loaduvc.service

Module For QUANT HD USER FACING

Hi! Could you please help me? My laptop is Acer Nitro 17 with Ubuntu 22.04 installed. I have run you script to fix the problem with camera that doesn't work and have this error during enabling service -

Module For QUANT HD USER FACING BY @Prabhat_Proxy

 Special Thanks to Giuliano69 for the driver :)

building

make: Entering directory '/usr/src/linux-headers-6.5.0-26-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu122.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1
22.04) 12.3.0
make: Leaving directory '/usr/src/linux-headers-6.5.0-26-generic'
Compiled Successfully
copying module to root.

[sudo] password for dmitriyprime:

  1. copying service to systemd.

  2. enabling service.
    Job for loaduvc.service failed because the control process exited with error code.
    See "systemctl status loaduvc.service" and "journalctl -xeu loaduvc.service" for details.

image

image

Failed to compile module! in fedora workstation 39

chmod +x install_driver.sh
./install_driver.sh

Module For QUANT HD USER FACING BY @Prabhat_Proxy

 Special Thanks to Giuliano69 for the driver :)

building

make: Entering directory '/usr/src/kernels/6.8.6-200.fc39.x86_64'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7)
You are using:
CC [M] /home/vatsalyavyas/Quanta-HD-User-Facing-0x0408-0x4035_linux/src/uvc/uvc_driver.o
/bin/sh: line 1: -Wp,-MMD,/home/vatsalyavyas/Quanta-HD-User-Facing-0x0408-0x4035_linux/src/uvc/.uvc_driver.o.d: No such file or directory
make[2]: *** [scripts/Makefile.build:243: /home/vatsalyavyas/Quanta-HD-User-Facing-0x0408-0x4035_linux/src/uvc/uvc_driver.o] Error 127
make[1]: *** [/usr/src/kernels/6.8.6-200.fc39.x86_64/Makefile:1939: /home/vatsalyavyas/Quanta-HD-User-Facing-0x0408-0x4035_linux/src/uvc] Error 2
make: *** [Makefile:252: __sub-make] Error 2
make: Leaving directory '/usr/src/kernels/6.8.6-200.fc39.x86_64'
failed to compile module! check docs and report any error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.