Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Two /dev/video* after device upgrade[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Thu May 30, 2019 12:17 pm    Post subject: Two /dev/video* after device upgrade[SOLVED] Reply with quote

Recently I bought a new webcam. The new camera is working fine.
Now I got two /dev/video*, o and 1 - Skype picks the wrong webcam.
I forgot how to delete the old webcam.


Last edited by EasterParade on Fri May 31, 2019 5:15 am; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6147
Location: Dallas area

PostPosted: Thu May 30, 2019 12:23 pm    Post subject: Reply with quote

Probably a udev rule
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Thu May 30, 2019 12:25 pm    Post subject: Reply with quote

Gotta set one because there is no udev rule for it.
I have two files in /etc/udev/rules.de/ :
10-local.rules
99-dev-input-group.rules
That´ s it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Thu May 30, 2019 7:40 pm    Post subject: Reply with quote

transsib,

/dev/video* entries are normally generated in response to hardware being detected.
That suggests that you have two devices connected. Is that intentional?

/dev/video* nodes are not just webcams. Any wideo capture device will do, sometimes even scanners.

If the /dev/video* entries are symlinks, they are added by udev after the kernel DEVTMPFS adds the real device nodes.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Thu May 30, 2019 8:21 pm    Post subject: Reply with quote

Hi Neddy, no other video capture device are connected.
Gonna see to it tomorrow. I have shut down box for today.

Annotation
Morning all, the udev rule I have set in 10-local.rules seems to work.
I still have two video devices in dev but Skype seems to pick the
proper device.
I still need to find out what results in 2 /dev/video.
Following Neddy ... could be the scanner device of my multifulti printer.
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 453

PostPosted: Fri May 31, 2019 7:52 pm    Post subject: Reply with quote

I have the same thing with my webcam, but so far ignored it because I could not find any downside so far.

Quote:
v4l2-sysfs-path
Video device: video0
video: video1
Video device: video1
Alsa playback device(s): hw:0,0


cat /sys/class/video4linux/video{0,1}/name
USB2.0 HD UVC WebCam: USB2.0 HD
USB2.0 HD UVC WebCam: USB2.0 HD


Everything of the two devices in the /sys path is the same, and any app can be used with either video0 or video1.

FYI, my webcamis identifed in dmesg with
uvcvideo: Found UVC 1.00 device USB2.0 HD UVC WebCam (13d3:5666)


[/quote]
Back to top
View user's profile Send private message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Sat Jun 01, 2019 8:22 am    Post subject: Reply with quote

On my Windows 10 OS I have two entries in Device Manager for image processing:
the webcam and the scanner function of my printer/copier/scanner - laser printer.

On Gentoo my multifunctional printer is being controlled by a Linux driver coded by the
printer manufacturer, but Linux creates the device. One of those /dev/video devices
never works with skype or any other application that needs a webcam.

Does any webcam application work with either /dev/video device on your system?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sat Jun 01, 2019 10:34 am    Post subject: Reply with quote

transsib,

dmesg should show both video devices being detected, along with the Vendor and Device IDs
It may even show device drivers being loaded.

You should be able to tell them apart from that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Sat Jun 01, 2019 8:58 pm    Post subject: Reply with quote

I cannot tell yet, Neddy. The printer is a networked device in my local network.
If none of us uses it it is powered down. So I gotta wait until I or any other user
on my local network needs the printer.

It´s gotta be the scanner function here; you´re certainly right about this.

Gonna post here as soon as I know. You know, when the printer is on I fail to ask
dmesg because if it´s on there´s something important to get done and I forget
about dev device nodes as long as printing, scanning, copying and fax works.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sat Jun 01, 2019 9:03 pm    Post subject: Reply with quote

transsib,

I wouldn't expect Skype to work with a scanner. Its Microsoft after all. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Sun Jun 02, 2019 8:07 am    Post subject: Reply with quote

Quote:
I wouldn't expect Skype to work with a scanner. Its Microsoft after all. :)

Neddy ... :lol:
At least Skype is not Facebook. There´s always a bigger evil, much much bigger.

Our printer was on just now but dmesg doesn´t spit it out.
But the webcam is seen as
Code:
uvcvideo: Found UVC 1.00 device C922 Pro Stream Webcam (046d:085c)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Jun 02, 2019 9:30 am    Post subject: Reply with quote

transsib,

If its a network printer/scanner/whatever, you won't get a /dev entry. It won't appear in dmesg either as the kernel won't see it come and go.
Its just something you talk to over the network, like any other system on the network.

Your webcam has a built in stereo microphone, so I would expect it to get several device nodes.
/dev/video* for the video and some entries in /dev/snd/ for the microphone. snd_usb_audio should load to take care of the USB audio device.

/dev/snd/ should get a new controlC* for the controls and pcmCxD0c for the audio stream itself.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Sun Jun 02, 2019 9:36 am    Post subject: Reply with quote

Quote:
Your webcam has a built in stereo microphone, so I would expect it to get several device nodes.
/dev/video* for the video and some entries in /dev/snd/ for the microphone. snd_usb_audio should load to take care of the USB audio device.

Oh my, yes, that´s it. Have I ever mentioned that I´m dumb? I forgot about the mic; usually use the mic on my headset.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Jun 02, 2019 10:03 am    Post subject: Reply with quote

transsib,

You are in good company.
When I first got a webcam about 20 years ago, it took me about three weeks to work out that trying to play sound through the webcam mic was a bad idea. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Sun Jun 02, 2019 11:27 am    Post subject: Reply with quote

Which sounds ? :wink:

Never liked the idea of a webcam. I had an older model but rarely used it: grainy picture
plus not being photogenic, security concerns... hugh
Now I got myself a newer, better camera because Skype is somehow fun too. But when it´s not in use
I turn it around so that it faces the wall :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Jun 02, 2019 3:07 pm    Post subject: Reply with quote

transsib,

I still have that 20 year old webcam. Its in a box in a cupboard somewhere.
I had the idea to use it with the family but none of them liked the idea, so it never happened.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Sun Jun 02, 2019 3:30 pm    Post subject: Reply with quote

I´m sorry to hear that, Neddy.

Too bad, so many good things lying in boxes in some cupboard.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum