我有一台戴尔 Latitude 3440(2013 年推出的 i5 4200U),它有一个集成的网络摄像头,lsusb
将其列为:Bus 001 Device 102: ID 0c45:64af Microdia
。我以前从未使用过它,但如果我安装cheese
它,它会显示No device found
。
在过去的几个月里(我相信自从我应用了最新的 BIOS 更新 - A15 以来),Xorg
随机使用大量 CPU(90 - 100%),从几分钟到几十分钟,影响电池寿命并阻止使用 xfce 键盘快捷键。发生这种情况时,Xorg 日志会填充无休止的流:
[ 3240.262] (II) config/udev: removing device Integrated_Webcam_HD: Integrate
[ 3240.262] (II) event10 - Integrated_Webcam_HD: Integrate: device removed
[ 3240.297] (II) UnloadModule: "libinput"
[ 3240.854] (II) config/udev: Adding input device Integrated_Webcam_HD: Integrate (/dev/input/event10)
[ 3240.854] (**) Integrated_Webcam_HD: Integrate: Applying InputClass "evdev keyboard catchall"
[ 3240.854] (**) Integrated_Webcam_HD: Integrate: Applying InputClass "libinput keyboard catchall"
[ 3240.854] (II) Using input driver 'libinput' for 'Integrated_Webcam_HD: Integrate'
[ 3240.854] (**) Integrated_Webcam_HD: Integrate: always reports core events
[ 3240.854] (**) Option "Device" "/dev/input/event10"
[ 3240.854] (**) Option "_source" "server/udev"
[ 3240.856] (II) event10 - Integrated_Webcam_HD: Integrate: is tagged by udev as: Keyboard
[ 3240.856] (II) event10 - Integrated_Webcam_HD: Integrate: device is a keyboard
[ 3240.856] (II) event10 - Integrated_Webcam_HD: Integrate: device removed
[ 3240.908] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.5/1-1.5:1.0/input/input1307/event10"
[ 3240.908] (II) XINPUT: Adding extended input device "Integrated_Webcam_HD: Integrate" (type: KEYBOARD, id 14)
[ 3240.908] (**) Option "xkb_model" "pc105"
[ 3240.908] (**) Option "xkb_layout" "si"
[ 3240.908] (WW) Option "xkb_variant" requires a string value
[ 3240.908] (WW) Option "xkb_options" requires a string value
[ 3240.912] (II) event10 - Integrated_Webcam_HD: Integrate: is tagged by udev as: Keyboard
[ 3240.913] (II) event10 - Integrated_Webcam_HD: Integrate: device is a keyboard
它自发地以 结束device is a keyboard
,然后随机地再次以 开始removing device Integrated_Webcam_HD: Integrate
Xubuntu 16.04、18.04、18.10 上也发生了同样的事情。我没有办法尝试旧版本的笔记本电脑 bios,因为禁止降级。
我不需要使用网络摄像头,所以我想阻止 xubuntu 尝试识别它(希望它能结束这种行为)。我该如何实现这一点?
提前致谢
结果lsmod
:
Module Size Used by
hid_generic 16384 0
usbhid 49152 0
hid 126976 2 usbhid,hid_generic
pci_stub 16384 1
vboxpci 24576 0
vboxnetadp 28672 0
vboxnetflt 28672 0
vboxdrv 475136 3 vboxpci,vboxnetadp,vboxnetflt
uvcvideo 98304 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_common 45056 2 videobuf2_v4l2,uvcvideo
videodev 188416 3 videobuf2_v4l2,uvcvideo,videobuf2_common
media 40960 2 videodev,uvcvideo
cmac 16384 0
rfcomm 77824 16
bnep 20480 2
ccm 20480 3
wmi_bmof 16384 0
dell_wmi 16384 0
sparse_keymap 16384 1 dell_wmi
snd_hda_codec_realtek 106496 1
snd_hda_codec_generic 73728 1 snd_hda_codec_realtek
snd_hda_intel 40960 3
snd_hda_codec 126976 3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek
intel_rapl 20480 0
x86_pkg_temp_thermal 16384 0
dell_laptop 20480 0
intel_powerclamp 16384 0
snd_hda_core 81920 4 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
coretemp 16384 0
snd_hwdep 20480 1 snd_hda_codec
dell_smbios 24576 2 dell_wmi,dell_laptop
kvm_intel 208896 0
snd_pcm 98304 3 snd_hda_intel,snd_hda_codec,snd_hda_core
dell_wmi_descriptor 16384 2 dell_wmi,dell_smbios
dcdbas 16384 1 dell_smbios
kvm 622592 1 kvm_intel
irqbypass 16384 1 kvm
dell_smm_hwmon 16384 0
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
ghash_clmulni_intel 16384 0
pcbc 16384 0
arc4 16384 2
snd_seq_midi 16384 0
snd_seq_midi_event 16384 1 snd_seq_midi
ath9k 151552 0
aesni_intel 200704 2
ath3k 20480 0
btusb 45056 0
aes_x86_64 20480 1 aesni_intel
btrtl 16384 1 btusb
crypto_simd 16384 1 aesni_intel
btbcm 16384 1 btusb
cryptd 24576 3 crypto_simd,ghash_clmulni_intel,aesni_intel
ath9k_common 36864 1 ath9k
glue_helper 16384 1 aesni_intel
intel_cstate 20480 0
btintel 20480 1 btusb
bluetooth 548864 42 btrtl,btintel,btbcm,bnep,ath3k,btusb,rfcomm
intel_rapl_perf 16384 0
nouveau 1875968 1
i915 1740800 30
ath9k_hw 475136 2 ath9k_common,ath9k
snd_rawmidi 32768 1 snd_seq_midi
ecdh_generic 24576 1 bluetooth
mxm_wmi 16384 1 nouveau
ath 36864 3 ath9k_common,ath9k,ath9k_hw
joydev 20480 0
mac80211 794624 1 ath9k
ttm 106496 1 nouveau
input_leds 16384 0
serio_raw 16384 0
snd_seq 65536 2 snd_seq_midi,snd_seq_midi_event
drm_kms_helper 172032 2 i915,nouveau
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer 32768 2 snd_seq,snd_pcm
drm 458752 13 drm_kms_helper,i915,ttm,nouveau
cfg80211 663552 4 ath9k_common,ath9k,ath,mac80211
i2c_algo_bit 16384 2 i915,nouveau
fb_sys_fops 16384 1 drm_kms_helper
syscopyarea 16384 1 drm_kms_helper
mei_me 40960 0
snd 81920 16 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
video 45056 4 dell_wmi,dell_laptop,i915,nouveau
sysfillrect 16384 1 drm_kms_helper
mei 98304 1 mei_me
sysimgblt 16384 1 drm_kms_helper
soundcore 16384 1 snd
wmi 24576 6 dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor,mxm_wmi,nouveau
mac_hid 16384 0
dell_rbtn 16384 1
sch_fq_codel 20480 2
parport_pc 36864 0
ppdev 20480 0
lp 20480 0
parport 49152 3 parport_pc,lp,ppdev
ip_tables 24576 0
x_tables 40960 1 ip_tables
autofs4 40960 2
ahci 40960 3
psmouse 151552 0
r8169 86016 0
libahci 32768 1 ahci
lpc_ich 24576 0
mii 16384 1 r8169
答案1
如何从 ubuntu 禁用网络摄像头?
- 使用以下方式打开
conf
文件sudo vi /etc/modprobe.d/blacklist.conf
- 将 附加到文件
blacklist uvcvideo
。 - 现在重新启动系统。
- 您会发现您的网络摄像头设备已被禁用。
稍后如何重新启用它?
只需blacklist uvcvideo
加上前缀注释即可,如下所示:
# blacklist uvcvideo
- 现在重新启动系统。
- 您的网络摄像头已恢复正常。
如何验证网络摄像头是否真的被禁用?
有两种方法可以验证。
- 打开任何即时通讯应用程序或网络摄像头软件,如
Guvcview
。如果您看到空白屏幕,则网络摄像头已被禁用! - 发出命令,
sudo systemctl restart systemd-modules-load.service
如果没有输出则表示成功。