#Webcam not working

1 messages · Page 1 of 1 (latest)

left wing
#

Can't open webcam. It's windows Hello so maybe that's the issue? v4l2-ctl shows "cannot open device" also I'm missing options that I'm supposed to configure in the kernel. Help x.x

left wing
#

Lenovo Webcam

#

one sec

#

let meee send you the name

left wing
#

and then the actual device

#

grrrr

#

says it's UVC compliant

civic hedge
#

can you send output from dmesg?

#

using wgetpaste

#

wgetpaste -c 'sudo dmesg'

left wing
#

one sec

#

need to install wgetpaste

#

lol

civic hedge
#

emerge -av wgetpaste

left wing
#

yeah

#

got it

civic hedge
#

nice :3

left wing
civic hedge
#

nothing really stands out from dmesg

left wing
#

yeah I thought so too

civic hedge
#

(also i see a waybar user, nice)

left wing
#

:P

civic hedge
#

you should post your ricing in #1049175025791537242

left wing
#

I'm still in the process to customize my dotfiles

#

switched a few weeks ago. Still getting used to everything

#

switched from macos with yabai

#

so I'm used to tiling wms but like been using linux for around 4ish years now?

#

and just decided fuck it i'll switch and buy a thinkpad :P

#

got a cheap deal on a Thinkpad E14 Gen 3 with a Ryzen 7 5700 and 16 Gigs of ram

#

for like 190?

#

anyway

civic hedge
#

yeah but sadly i dont see why it wouldnt be working

#

i dont mess with webcams often

left wing
#

no problem

#

maybe I'm too young is too easy as a category?

#

x.x

#

hard for me to gage how hard a problem is lol

knotty notch
#

Don't worry about it. What kernel are you using?

#

Distribution kernel or a custom config?

left wing
#

I'm using distribution kernel p much

#

accidentally nuked my custom config so I used the config from dist

#

I forgot to version

knotty notch
#

Ok. You should have the video class driver then, most webcams use that

left wing
#

supposidly it uses UVC

knotty notch
#

Ok. Does lsusb show much

left wing
#

ast least in relation to this device

knotty notch
#

Ah good. So it is detected.

left wing
#

uses MJPEG YUY2 encoding

#

could that be an issue?

#

I legit have 0 exp working with webcams x.x

knotty notch
#

Can you wgetpaste `ls /sev

#

Oh good

#

So we have a device.

left wing
#

yes

#

but for some reason it can't open it

left wing
knotty notch
#

Nah that answered my question

left wing
#

oki

knotty notch
#

Oh and it's external great

left wing
#

yep

#

usb c?

#

hmm

#

maybe try a different port

#

idk if that could be it lol

knotty notch
#

Let me see what I can dig out. 🙂

left wing
#

sure!

knotty notch
#

Well if you do replug it keep an eye on your dmesg maybe there's something useful.

left wing
#

oki

#

let me do that rq

#

this should contain most content

#

still can't open

#
[Jul 7 15:45] usb 1-2: USB disconnect, device number 2
[Jul 7 15:46] usb 1-2: new high-speed USB device number 5 using xhci_hcd
[  +0.290102] usb 1-2: New USB device found, idVendor=17ef, idProduct=4839, bcdDevice= 4.09
[  +0.000003] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000002] usb 1-2: Product: Lenovo Performance Camera
[  +0.000001] usb 1-2: Manufacturer: Lenovo
[  +0.000001] usb 1-2: SerialNumber: 145081A8
[  +0.181986] usb 1-2: Warning! Unlikely big volume range (=2560), cval->res is probably wrong.
[  +0.000002] usb 1-2: [5] FU [Microphone Capture Volume] ch = 1, val = -2560/2560/2```
#

there that's more sanitized

#

@knotty notch there is... no video0 in /dev

#

from what I can see

#

HUH

knotty notch
#

?

left wing
#

second

#

there u go

#

yeah definetly no video0

#

I'm assuming I"m missing the UVC driver than in the kernel?

civic hedge
#

do you have media-libs/libuvc?

left wing
#

second

civic hedge
left wing
#

grumble

#

the fuck did I do

#

second let me run through the tutorial again

#

just as a sanity check

civic hedge
#

whats masked?

#

libuvc?

left wing
#

aye

civic hedge
#

the hell

#

so many people with masked packages today

#

can you send the output of emerge -pv libuvc

left wing
#

V4L2_FLASH_LED_CLASS is missing...

#

USB_VIDEO_CLASS is on modular

#

could that be it?

civic hedge
#

USB_VIDEO_CLASS is modular according to the wiki

#

or do you mean the missing config option?

knotty notch
#

If it's a module that means it should load automatically

#

It might need a udev tule

#

Rule

left wing
left wing
#

I just set it to built-in

#

grr

#

lol

civic hedge
#

i dont really think it matters

left wing
#

I just reset it to make sure

left wing
#

here u go

#

updated my confs just to make sure didn't make a diff

#

I guess i gotta unmask it

#

looking at the vers

civic hedge
#

touch /etc/portage/package.accept_keywords/lubuvc && echo "=media-libs/libuvc-0.0.7 ~amd64" >> /etc/portage/package.accept_keywords/lubuvc

#

to unmask

left wing
#

aye one sec

#

cool

#

fetching

#

done

#

gonna also rebuild v4l

#

also gonna rebuild the kernel with that extra option set to be sure

#

gimme 30 mins

#

should be enough.

left wing
#

sadly

#

did not help

#

:/

#

sorry took a bit longer since I had to let doggie out

knotty notch
#

hm. I just configured my desktop for webcam

#

literally

emerge --ask media-tv/v4l-utils
emerge -av media-video/kamoso
#

was enough to get it working

#

let's see

#

( I found a spare USB endoscope thats UVC)

#

so I do have a /dev/video0

#

so let's focus on that

#

can you unplug and replug your camera then send your dmesg please?

#
Mon Jul  8 12:08:17 2024] usb 1-4: new high-speed USB device number 25 using xhci_hcd
[Mon Jul  8 12:08:17 2024] usb 1-4: New USB device found, idVendor=0bda, idProduct=5829, bcdDevice=58.01
[Mon Jul  8 12:08:17 2024] usb 1-4: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[Mon Jul  8 12:08:17 2024] usb 1-4: Product: USB Camera
[Mon Jul  8 12:08:17 2024] usb 1-4: Manufacturer: Generic
[Mon Jul  8 12:08:17 2024] usb 1-4: SerialNumber: 200901010001
[Mon Jul  8 12:08:17 2024] videodev: Linux video capture interface: v2.00
[Mon Jul  8 12:08:17 2024] usb 1-4: Found UVC 1.00 device USB Camera (0bda:5829)
[Mon Jul  8 12:08:17 2024] usbcore: registered new interface driver uvcvideo
[Mon Jul  8 12:08:19 2024] usb 1-4: USB disconnect, device number 25
[Mon Jul  8 12:08:20 2024] usb 1-4: new high-speed USB device number 26 using xhci_hcd
[Mon Jul  8 12:08:20 2024] usb 1-4: New USB device found, idVendor=0bda, idProduct=5829, bcdDevice=58.01
[Mon Jul  8 12:08:20 2024] usb 1-4: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[Mon Jul  8 12:08:20 2024] usb 1-4: Product: USB Camera
[Mon Jul  8 12:08:20 2024] usb 1-4: Manufacturer: Generic
[Mon Jul  8 12:08:20 2024] usb 1-4: SerialNumber: 200901010001
[Mon Jul  8 12:08:20 2024] usb 1-4: Found UVC 1.00 device USB Camera (0bda:5829)
left wing
#

was @ the beach this week and had no computer

#

gonna try it out now

#
[ 4495.338026] usb 1-2: USB disconnect, device number 2
[ 4500.492590] usb 1-2: new high-speed USB device number 5 using xhci_hcd
[ 4500.776416] usb 1-2: New USB device found, idVendor=17ef, idProduct=4839, bcdDevice= 4.09
[ 4500.776422] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4500.776424] usb 1-2: Product: Lenovo Performance Camera
[ 4500.776425] usb 1-2: Manufacturer: Lenovo
[ 4500.776427] usb 1-2: SerialNumber: 145081A8
[ 4500.938379] usb 1-2: Warning! Unlikely big volume range (=5120), cval->res is probably wrong.
[ 4500.938384] usb 1-2: [5] FU [Microphone Capture Volume] ch = 1, val = -2560/2560/1```
#

does not mention UVC video class

#

uhh

#

yet supposidly UVC compliant

#

lol

#

I feel like the windows hello bs is doing something that I DONT want here

#

currently thinking if I have another cam somewhere...

left wing
#

Ima try a different webcam

#

Lets see if I can find it takes a while maybe

#

tried a different usb cable, that didn't do the trick

#

when unplugged I seem to lack a hidraw device

#

so I do get the raw device

#

which is good

left wing
#

can't find another UVC compliant device

#

shucks

#

:/

knotty notch
#

That's good. At least it is consistent.

#

You're using a custom kernel config?

left wing
#

Aye

knotty notch
#

Can you drop the dist kernel in (just grab the bin one) and see what happens?

left wing
#

potentially the camera is just not supported?

#

but it's wierd cause it's a UVC

#

I'm getting a thinkpad today

#

which I plan on putting gentoo on

#

I'll just use the same custom kernel (since it should work under it) and see if that webcam is detected at all

knotty notch
#

Weird. Does the other UVC camera work?

left wing
#

I don't have another one

#

sadly :/

#

I'm starting to install on a thinkpad now

#

will come back with the results of that

left wing
#

@knotty notch I can see a video0 and video1 on my laptop

#

sorry install took a hot minute :P

knotty notch
#

Woohoo. Why is desktop so weird?

left wing
#

I am

#

internally confused

#

same build config too

#

like legit just copy pasted it. Suprized it just works like that lol

#

guess they are both amd. Had to change the march but that's p much it

left wing
#

cam is fully functional on laptop

#

I am out of ideas

#

maybe the webcam just doesn't work.

#

if anyone comes across this with an idea feel free to ping me.

knotty notch
#

No idea. Obviously devices aren't being created for it. Udev?

left wing
#

sec

#

doesn't seem to show up

#

anywhere in the configs for systemd's udev as well. Idk if there is any init steps that would have to be done

#

it worked on macos

#

I give up

#

lol

left wing
#

so

#

it's fixed

#

I didn't do anything

#

it just works

#

¯_(ツ)_/¯

#

I give up LOL

#

potentially was an issue with an older kernel version

#

or just a bug in one of the packages I needed