I have an internal webcam on my Dell laptop. I don't see it listed with lspci
, but it works.
I am using a self-compiled kernel, and here are the options I have enabled:
# zcat /proc/config.gz | grep -v '^#' | egrep '(MEDIA|VIDEO)'
CONFIG_ACPI_VIDEO=y
CONFIG_MEDIA_SUPPORT=y
CONFIG_MEDIA_SUPPORT_FILTER=y
CONFIG_MEDIA_CAMERA_SUPPORT=y
CONFIG_VIDEO_DEV=y
CONFIG_MEDIA_CONTROLLER=y
CONFIG_VIDEO_V4L2=y
CONFIG_VIDEO_V4L2_I2C=y
CONFIG_MEDIA_USB_SUPPORT=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_VIDEOBUF2_CORE=y
CONFIG_VIDEOBUF2_V4L2=y
CONFIG_VIDEOBUF2_MEMOPS=y
CONFIG_VIDEOBUF2_VMALLOC=y
CONFIG_SND_USB_AUDIO_USE_MEDIA_CONTROLLER=y
All options in my kernel are compiled statically, and I am not using loadable modules.
How can I disable the webcam at boot time, by passing/appending something to the kernel boot options?
I would like to decide at boot time whether I want to boot the kernel with webcam support, or without.
snd-hda-intel.enable=0,1
. This works fine, and I don't see why same could not work for webcam. – Martin Vegter Nov 06 '22 at 08:48enable
switch is specific to thesnd-hda-intel
module, and doesn't exist for e.g.uvcvideo
(which is most likely the driver for your webcam). Again, the fact that you're having a static kernel with everything included makes it hard to disable parts of it. You'd essentially have to choose between different kernels, instead of choosing kernel parameters, at boottime. – Marcus Müller Nov 06 '22 at 09:07