Can an MX tweak disable a laptop camera?
Can an MX tweak disable a laptop camera?
I've just read https://ostechnix.com/how-to-disable-bu ... in-ubuntu/
Can an MX tweak be created which makes it easy for the camera to be turned on and off, thus giving MX users the option of enhanced privacy?
Can an MX tweak be created which makes it easy for the camera to be turned on and off, thus giving MX users the option of enhanced privacy?
Re: Can an MX tweak disable a laptop camera?
There's always the old school method of a little electrical tape. 

- Eadwine Rose
- Administrator
- Posts: 14437
- Joined: Wed Jul 12, 2006 2:10 am
Re: Can an MX tweak disable a laptop camera?
I have some paper in front of my camera :) Super safe hardware switch, that thing :) Never fails me.
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030
- chrispop99
- Global Moderator
- Posts: 3323
- Joined: Tue Jan 27, 2009 2:07 pm
Re: Can an MX tweak disable a laptop camera?
If the requirement is that the camera is never available, it can be disabled in BIOS.
Chris
Chris
MX Facebook Group Administrator.
Home-built desktop - Core i5 9400, 970 EVO Plus, 8GB
DELL XPS 15
Lots of test machines
Home-built desktop - Core i5 9400, 970 EVO Plus, 8GB
DELL XPS 15
Lots of test machines
- dolphin_oracle
- Developer
- Posts: 22022
- Joined: Sun Dec 16, 2007 12:17 pm
Re: Can an MX tweak disable a laptop camera?
so first question:
does
disable the camera? like, it's probably still powered but not working I would guess.
conversely, to re-enable, does
enough to bring it back up?
does
Code: Select all
sudo modprobe -r uvcvideo
conversely, to re-enable, does
Code: Select all
sudo modprobe uvcvideo
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: Can an MX tweak disable a laptop camera?
@dolphin_oracle tried with Webcamoid: .. -r is (sort of) successfull: It just makes it show an "infinite" 'window in window'
.. Then modprobe doesn't bring it back.. even after a logout, login , even not after a reboot (cause it gets stuck at "screen capture", you need to change to webcam manually) :)
.. Then modprobe doesn't bring it back.. even after a logout, login , even not after a reboot (cause it gets stuck at "screen capture", you need to change to webcam manually) :)
Re: Can an MX tweak disable a laptop camera?
sounds pretty troglodyte (though that's what I do anyway)manually
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin
Re: Can an MX tweak disable a laptop camera?
In the meantime, I mean, from it's settings : "Configure Sources" :)
Re: Can an MX tweak disable a laptop camera?
Thanks for the replies. Considering it would be useful for security there seems to be only one software method which is documented, and that was proposed by DO. I was expecting more.
Example:
I tried lsmod | grep uvcvideo and got the vidbuf list when the module was enabled, and the output disappeared when the module was disabled, but Huckleberry Finn didn't have success, so I guess it's a debatable tweak which may or may not work.
Example:
Code: Select all
https://unix.stackexchange.com/questions/32364/disabling-web-camera
You can disable the kernel drive module responsible for it, which is most cases is uvcvideo. The modprobe let's you enable and disable kernel module, therefore, you can disable your webcam like so:
modprobe -r uvcvideo
And enable it again like this:
modprobe uvcvideo
You can also check whether or not the module is actually disable looking for it using lsmod, which shows the status of modules in the kernel.
lsmod | grep uvcvideo
The output should be similar to this when the module is enabled:
uvcvideo 98304 0
videobuf2_vmalloc 20480 1 uvcvideo
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_common 49152 2 videobuf2_v4l2,uvcvideo
videodev 225280 3 videobuf2_v4l2,uvcvideo,videobuf2_common
mc 53248 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
And when it is disabled no occurrences to uvcvideo should be returned from the command.
Re: Can an MX tweak disable a laptop camera?
But, in my trial, the problem was not loading / unloading the module (that part is ok and immediate). Just (with that program at least, it may be different with other programs) it defaults to screen capture mode and then stays like that (till you turn it back to webcam mode from settings).