I faced a strange effect as ... when my notebook wakes up from suspend I can start and close my web cam with guvcview 1-3 times; But after while on 3dr or 4th starting attempt (I didn't count for sure) my OS totally hangs so I have to reboot my notebook to make it work :P
As an attempt to find out some more details I tried to switch to non-GUI mode with alt_ctrl+F1 and input : $guvcview
That's what I could find on output :
...
libv4l2 error setting pixformat : device or resource busy
...
The thing is I have just one web cam on my notebook (the native one) which is build-in ; So I don't get it what else it can be busy with? So I think somehow the native cam is running though guvcview is closed (correct me if I am wrong...) :(
EDIT :
I tried input as $ps axl | grep 3106
the output is :
0 1000 3106 1208 20 0 544772 68572 poll_s Sl ? 5:59 guvcview
0 1000 3412 3404 20 0 11916 2288 pipe_w S+ pts/4 0:00 grep --color=tty -d skip 3106
after I close the guvcview I can see this output :
ps axl | grep 3106
0 1000 3797 3404 20 0 11916 2392 pipe_w S+ pts/4 0:00 grep --color=tty -d skip 3106
...so is that means I have two threads using the device? I have usb cam; Not really sure how the ps axl output can help in my case; So please give me a tip pls...
lsusb outputs
...ID 04f2:b404 Chicony Electronics Co., Ltd
so it is hard to say what model number the cam really has to use the web cam setup instructions for sure...
So my question is how to fix that cause rebooting on each unlucky web cam start is awkward %)
p.s.
web cam vendor: Chicony Electronics (?not sure how to get model info)
Kernel : 3.16.7.3-1
OS : Linux Arch x64
Thanks