this post was submitted on 21 Sep 2023
13 points (93.3% liked)

Linux

48245 readers
500 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Thank you! You folks just are the best!

SOLUTION: https://lemmy.ml/comment/4084707 Follow this thread!


I noticed that my webcam wasn't working and I thought maybe it had some driver missing.

(base) bob@bob:~
$ lsusb
Bus 001 Device 002: ID 0c45:6363 Microdia USB 2.0 Camera

so I created a probe using linux-hardware.org app image and it found that I had this hardware component that wasn't working. https://linux-hardware.org/?id=usb:0c45-6363 and it also has this in the website

Now, I searched for this exact keyword and found this driver lying around a little known guy's repository called linux.

https://github.com/torvalds/linux/blob/master/drivers/media/usb/uvc/uvc_driver.c

Now, I don't know how to install it. So, how do I install this?

you are viewing a single comment's thread
view the rest of the comments
[–] wildbus8979@sh.itjust.works 5 points 1 year ago* (last edited 1 year ago) (1 children)

It is almost certainly already installed (UVC is extremely common, and valid for almost all off the shelf webcams).

You can verify this by running:

find /lib/modules/$(uname -r) -type f -iname "*uvc*"

If not you need to compile the kernel module. Instructions for this will vary slightly depending on your distro. Here are some instructions for Debian (and coincidentally Ubuntu): https://wiki.debian.org/ModuleAssistant

[–] Subject6051@lemmy.ml 2 points 1 year ago* (last edited 1 year ago) (2 children)
$ find /lib/modules/$(uname -r) -type f -iname "*uvc*"
/lib/modules/6.0.0-6mx-amd64/kernel/drivers/media/usb/uvc/uvcvideo.ko
/lib/modules/6.0.0-6mx-amd64/kernel/drivers/usb/gadget/function/usb_f_uvc.ko

This it? Is this not driver error then?

edit: This made me think I needed a driver. Last virtual camera driver thing

[–] db2@sopuli.xyz 4 points 1 year ago (1 children)

Now type lsmod and see if the driver is actually loaded.

[–] Subject6051@lemmy.ml 2 points 1 year ago (2 children)

hey lsmod gave these results

Module                  Size  Used by
uvcvideo              131072  0
videobuf2_vmalloc      20480  1 uvcvideo
videobuf2_memops       20480  1 videobuf2_vmalloc
videobuf2_v4l2         36864  1 uvcvideo
videobuf2_common       73728  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
videodev              290816  3 videobuf2_v4l2,uvcvideo,videobuf2_common
mc                     69632  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
usbcore               344064  6 xhci_hcd,cdc_acm,uvcvideo,btusb,xhci_pci
usb_common             16384  3 xhci_hcd,usbcore,uvcvideo

I have listed everything which has uvc in it

[–] mvirts@lemmy.world 3 points 1 year ago

Watch dmesg when you plug it in and see if uvcvideo gets loaded. If not you may be able to add the device id to the list that uvcvideo will load for

[–] db2@sopuli.xyz 2 points 1 year ago (1 children)

Now try

sudo v4l2-ctl --list-devices

Install the package it's in if missing.

[–] Subject6051@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (1 children)

v4l2-ctl

hey, I slept off. it was midnight in India

sudo v4l2-ctl --list-devices
USB2.0 HD UVC WebCam: USB2.0 HD (usb-0000:00:14.0-3):
	/dev/video0
	/dev/video1
	/dev/media0

I installed v4l2-utils and did this, still no luck with the webcam

edit:

The virtual camera driver thing still shows nothing, but web cam is now working for discord. I thank you wholeheartedly! You made my day (this is morning now and this was the first thing I tried and it worked, it did make my day), thank you mate!!!! But do tell me the reasoning behind what you did!

[–] db2@sopuli.xyz 2 points 1 year ago* (last edited 1 year ago)

It was troubleshooting, but it looks like the package I had you install was what was missing. The first thing in your screenshot references it so there must be something in there you needed.

I would guess the 'virtual camera' has something to do with the unchecked 'advanced effects mode '

Glad to be of help. 😁