uvcvideo is loaded but /dev/video0 doesn't exist
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
My webcam worked like a charm until I ran a simple python code to take photo. I ran it with root permission by sudo python myapp.py. The program crashed. Then I ran sudo killall -9 python.
From that time, I lost my webcam. If I run my program, I get this error: VIDEOIO ERROR: V4L: can't find camera device. Cheese cann't find device as well.
I google my issue and I find some pages saying that I should re-enable uvcvideo module. I've done it by sudo modprobe -r uvcvideo && sudo modprobe uvcvideo but the problem isn't solved.
This is the result of some of my commands:
$ lsmod | grep uvc
uvcvideo 86016 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_core 40960 2 videobuf2_v4l2,uvcvideo
videodev 184320 3
videobuf2_core,videobuf2_v4l2,uvcvideo
media 40960 2 videodev,uvcvideo
$ sudo v4l2-ctl --list-devices
Failed to open /dev/video0: No such file or directory
I should also notice that if I restart the computer I get nothing from lsmod | grep uvc until I run sudo modprobe uvcvideo again.
How should I solve the issue?
drivers kernel webcam uvc
add a comment |
My webcam worked like a charm until I ran a simple python code to take photo. I ran it with root permission by sudo python myapp.py. The program crashed. Then I ran sudo killall -9 python.
From that time, I lost my webcam. If I run my program, I get this error: VIDEOIO ERROR: V4L: can't find camera device. Cheese cann't find device as well.
I google my issue and I find some pages saying that I should re-enable uvcvideo module. I've done it by sudo modprobe -r uvcvideo && sudo modprobe uvcvideo but the problem isn't solved.
This is the result of some of my commands:
$ lsmod | grep uvc
uvcvideo 86016 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_core 40960 2 videobuf2_v4l2,uvcvideo
videodev 184320 3
videobuf2_core,videobuf2_v4l2,uvcvideo
media 40960 2 videodev,uvcvideo
$ sudo v4l2-ctl --list-devices
Failed to open /dev/video0: No such file or directory
I should also notice that if I restart the computer I get nothing from lsmod | grep uvc until I run sudo modprobe uvcvideo again.
How should I solve the issue?
drivers kernel webcam uvc
I have the same issue Ubuntu 18.04.1, theudo modprobe uvcvideodoes not survive a restart when I issuelsmod | grep uvc. A solution is needed, please.
– doctorate
Dec 22 '18 at 6:36
add a comment |
My webcam worked like a charm until I ran a simple python code to take photo. I ran it with root permission by sudo python myapp.py. The program crashed. Then I ran sudo killall -9 python.
From that time, I lost my webcam. If I run my program, I get this error: VIDEOIO ERROR: V4L: can't find camera device. Cheese cann't find device as well.
I google my issue and I find some pages saying that I should re-enable uvcvideo module. I've done it by sudo modprobe -r uvcvideo && sudo modprobe uvcvideo but the problem isn't solved.
This is the result of some of my commands:
$ lsmod | grep uvc
uvcvideo 86016 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_core 40960 2 videobuf2_v4l2,uvcvideo
videodev 184320 3
videobuf2_core,videobuf2_v4l2,uvcvideo
media 40960 2 videodev,uvcvideo
$ sudo v4l2-ctl --list-devices
Failed to open /dev/video0: No such file or directory
I should also notice that if I restart the computer I get nothing from lsmod | grep uvc until I run sudo modprobe uvcvideo again.
How should I solve the issue?
drivers kernel webcam uvc
My webcam worked like a charm until I ran a simple python code to take photo. I ran it with root permission by sudo python myapp.py. The program crashed. Then I ran sudo killall -9 python.
From that time, I lost my webcam. If I run my program, I get this error: VIDEOIO ERROR: V4L: can't find camera device. Cheese cann't find device as well.
I google my issue and I find some pages saying that I should re-enable uvcvideo module. I've done it by sudo modprobe -r uvcvideo && sudo modprobe uvcvideo but the problem isn't solved.
This is the result of some of my commands:
$ lsmod | grep uvc
uvcvideo 86016 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_core 40960 2 videobuf2_v4l2,uvcvideo
videodev 184320 3
videobuf2_core,videobuf2_v4l2,uvcvideo
media 40960 2 videodev,uvcvideo
$ sudo v4l2-ctl --list-devices
Failed to open /dev/video0: No such file or directory
I should also notice that if I restart the computer I get nothing from lsmod | grep uvc until I run sudo modprobe uvcvideo again.
How should I solve the issue?
drivers kernel webcam uvc
drivers kernel webcam uvc
edited Dec 20 '18 at 21:55
vahidreza
asked Dec 20 '18 at 15:59
vahidrezavahidreza
1063
1063
I have the same issue Ubuntu 18.04.1, theudo modprobe uvcvideodoes not survive a restart when I issuelsmod | grep uvc. A solution is needed, please.
– doctorate
Dec 22 '18 at 6:36
add a comment |
I have the same issue Ubuntu 18.04.1, theudo modprobe uvcvideodoes not survive a restart when I issuelsmod | grep uvc. A solution is needed, please.
– doctorate
Dec 22 '18 at 6:36
I have the same issue Ubuntu 18.04.1, the
udo modprobe uvcvideo does not survive a restart when I issue lsmod | grep uvc. A solution is needed, please.– doctorate
Dec 22 '18 at 6:36
I have the same issue Ubuntu 18.04.1, the
udo modprobe uvcvideo does not survive a restart when I issue lsmod | grep uvc. A solution is needed, please.– doctorate
Dec 22 '18 at 6:36
add a comment |
2 Answers
2
active
oldest
votes
After a daunting day, finally I found out that I have to reinstall linux-image. So I started synaptic and reinstalled linux-image-{my kernel version}-generic and linux-image-generic and restart the computer. And now, I have a webcam!
it didn't work for me. I still can't get the output oflsmod | grep uvcsurvive a restart.
– doctorate
Dec 22 '18 at 6:47
add a comment |
For my case, I found there is a file called uvcvideo-blacklist.conf in /etc/modprobe.d. It will prevent uvcvideo module to be loaded automatically when booting. Commented out the only line "blacklist uvcvideo" in this file will get uvcvideo been automatically loaded at start up.
New contributor
L3w1s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1103386%2fuvcvideo-is-loaded-but-dev-video0-doesnt-exist%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
After a daunting day, finally I found out that I have to reinstall linux-image. So I started synaptic and reinstalled linux-image-{my kernel version}-generic and linux-image-generic and restart the computer. And now, I have a webcam!
it didn't work for me. I still can't get the output oflsmod | grep uvcsurvive a restart.
– doctorate
Dec 22 '18 at 6:47
add a comment |
After a daunting day, finally I found out that I have to reinstall linux-image. So I started synaptic and reinstalled linux-image-{my kernel version}-generic and linux-image-generic and restart the computer. And now, I have a webcam!
it didn't work for me. I still can't get the output oflsmod | grep uvcsurvive a restart.
– doctorate
Dec 22 '18 at 6:47
add a comment |
After a daunting day, finally I found out that I have to reinstall linux-image. So I started synaptic and reinstalled linux-image-{my kernel version}-generic and linux-image-generic and restart the computer. And now, I have a webcam!
After a daunting day, finally I found out that I have to reinstall linux-image. So I started synaptic and reinstalled linux-image-{my kernel version}-generic and linux-image-generic and restart the computer. And now, I have a webcam!
answered Dec 21 '18 at 14:41
vahidrezavahidreza
1063
1063
it didn't work for me. I still can't get the output oflsmod | grep uvcsurvive a restart.
– doctorate
Dec 22 '18 at 6:47
add a comment |
it didn't work for me. I still can't get the output oflsmod | grep uvcsurvive a restart.
– doctorate
Dec 22 '18 at 6:47
it didn't work for me. I still can't get the output of
lsmod | grep uvc survive a restart.– doctorate
Dec 22 '18 at 6:47
it didn't work for me. I still can't get the output of
lsmod | grep uvc survive a restart.– doctorate
Dec 22 '18 at 6:47
add a comment |
For my case, I found there is a file called uvcvideo-blacklist.conf in /etc/modprobe.d. It will prevent uvcvideo module to be loaded automatically when booting. Commented out the only line "blacklist uvcvideo" in this file will get uvcvideo been automatically loaded at start up.
New contributor
L3w1s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
For my case, I found there is a file called uvcvideo-blacklist.conf in /etc/modprobe.d. It will prevent uvcvideo module to be loaded automatically when booting. Commented out the only line "blacklist uvcvideo" in this file will get uvcvideo been automatically loaded at start up.
New contributor
L3w1s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
For my case, I found there is a file called uvcvideo-blacklist.conf in /etc/modprobe.d. It will prevent uvcvideo module to be loaded automatically when booting. Commented out the only line "blacklist uvcvideo" in this file will get uvcvideo been automatically loaded at start up.
New contributor
L3w1s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
For my case, I found there is a file called uvcvideo-blacklist.conf in /etc/modprobe.d. It will prevent uvcvideo module to be loaded automatically when booting. Commented out the only line "blacklist uvcvideo" in this file will get uvcvideo been automatically loaded at start up.
New contributor
L3w1s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
L3w1s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 6 mins ago
L3w1sL3w1s
1
1
New contributor
L3w1s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
L3w1s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
L3w1s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1103386%2fuvcvideo-is-loaded-but-dev-video0-doesnt-exist%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I have the same issue Ubuntu 18.04.1, the
udo modprobe uvcvideodoes not survive a restart when I issuelsmod | grep uvc. A solution is needed, please.– doctorate
Dec 22 '18 at 6:36