Can an MX tweak disable a laptop camera?

For questions regarding system and application security
Message
Author
User avatar
colin_b
Posts: 452
Joined: Sun Mar 19, 2017 7:21 pm

Can an MX tweak disable a laptop camera?

#1 Post by colin_b »

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?

User avatar
Stevo
Developer
Posts: 14421
Joined: Fri Dec 15, 2006 7:07 pm

Re: Can an MX tweak disable a laptop camera?

#2 Post by Stevo »

There's always the old school method of a little electrical tape. :p

User avatar
Eadwine Rose
Administrator
Posts: 14429
Joined: Wed Jul 12, 2006 2:10 am

Re: Can an MX tweak disable a laptop camera?

#3 Post by Eadwine Rose »

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

User avatar
chrispop99
Global Moderator
Posts: 3323
Joined: Tue Jan 27, 2009 2:07 pm

Re: Can an MX tweak disable a laptop camera?

#4 Post by chrispop99 »

If the requirement is that the camera is never available, it can be disabled in BIOS.

Chris
MX Facebook Group Administrator.
Home-built desktop - Core i5 9400, 970 EVO Plus, 8GB
DELL XPS 15
Lots of test machines

User avatar
dolphin_oracle
Developer
Posts: 22020
Joined: Sun Dec 16, 2007 12:17 pm

Re: Can an MX tweak disable a laptop camera?

#5 Post by dolphin_oracle »

so first question:

does

Code: Select all

sudo modprobe -r uvcvideo
disable the camera? like, it's probably still powered but not working I would guess.

conversely, to re-enable, does

Code: Select all

sudo modprobe uvcvideo
enough to bring it back up?
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.

Huckleberry Finn

Re: Can an MX tweak disable a laptop camera?

#6 Post by Huckleberry Finn »

@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) :)

User avatar
Jerry3904
Administrator
Posts: 23044
Joined: Wed Jul 19, 2006 6:13 am

Re: Can an MX tweak disable a laptop camera?

#7 Post by Jerry3904 »

manually
sounds pretty troglodyte (though that's what I do anyway)
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

Huckleberry Finn

Re: Can an MX tweak disable a laptop camera?

#8 Post by Huckleberry Finn »

In the meantime, I mean, from it's settings : "Configure Sources" :)

User avatar
colin_b
Posts: 452
Joined: Sun Mar 19, 2017 7:21 pm

Re: Can an MX tweak disable a laptop camera?

#9 Post by colin_b »

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:

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.
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.

Huckleberry Finn

Re: Can an MX tweak disable a laptop camera?

#10 Post by Huckleberry Finn »

colin_b wrote: Thu Sep 08, 2022 7:04 pm...and the output disappeared when the module was disabled, but Huckleberry Finn didn't have success, so ...
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).

Post Reply

Return to “Security”