Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 6746  / 3 Years ago, sat, july 10, 2021, 1:53:30

I want to disable the internal webcam of my laptop running Ubuntu 13.10? As suggested here, I already disabled the concerning kernel modules by blacklisting them. But after reboot the modules are loaded nevertheless. What can I do to get rid of these modules?



My module blacklist lies in /etc/modprobe.d/blacklist-webcam.conf and looks like this:



blacklist videodev
blacklist videobuf2_core
blacklist videobuf2_memops
blacklist videobuf2_vmalloc
blacklist uvcvideo


But lsmod gives me (after reboot):



Module                  Size  Used by
uvcvideo 80885 0
videobuf2_vmalloc 13216 1 uvcvideo
videobuf2_memops 13362 1 videobuf2_vmalloc
videobuf2_core 40499 1 uvcvideo
videodev 133509 2 uvcvideo,videobuf2_core


Edit:

When I do a sudo modprobe -r uvcvideo the modules are gone. So I could write a script to do that. But I would not consider that as a clean solution ;-)


More From » drivers

 Answers
1

Thank you all very much for your help! I found the source of the problem while trying bain's solution. His solution works well. After reboot the modules were really gone. But there is one drawback: I can not load the module via modprobe uvcvideo in case I want to re-enable the webcam.



While digging through my system in order to find out, why the uvcvideo module was loaded, I finally made a grep -r uvcvideo /etc/ and voilà, I found a script in /etc/pm/power.d which did a modprobe uvcvideo when the power cable is plugged in. I wrote this script some time ago to optimize the power consumption. I commented out the lines dealing with the webcam module and after that, the blacklist worked!


[#25524] Saturday, July 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
emuralm

Total Points: 290
Total Questions: 111
Total Answers: 117

Location: China
Member since Thu, Sep 1, 2022
2 Years ago
;