1.使用命令查看攝像頭信息
root@root-PC:~$ sudo dmesg | grep uvc
[ 8.625446] uvcvideo: Found UVC 1.00 device USB 2.0 PC Camera (0342:9463)
[ 8.630269] uvcvideo: Failed to query (GET_INFO) UVC control 11 on unit 1: -32 (exp. 1).
[ 8.631667] uvcvideo: Failed to query (GET_INFO) UVC control 13 on unit 1: -32 (exp. 1).
[ 8.680768] uvcvideo 1-1.1.1:1.0: Entity type for entity Processing 2 was not initialized!
[ 8.680771] uvcvideo 1-1.1.1:1.0: Entity type for entity Extension 6 was not initialized!
[ 8.680773] uvcvideo 1-1.1.1:1.0: Entity type for entity Camera 1 was not initialized!
[ 8.685508] uvcvideo: Found UVC 1.00 device Integrated Camera (0342:9463)
[ 8.761845] uvcvideo 1-1.8:1.0: Entity type for entity Extension 4 was not initialized!
[ 8.761849] uvcvideo 1-1.8:1.0: Entity type for entity Processing 2 was not initialized!
[ 8.761850] uvcvideo 1-1.8:1.0: Entity type for entity Camera 1 was not initialized!
[ 8.833930] usbcore: registered new interface driver uvcvideo
authen@authen-PC:~$
2.修改配置文件中的值,禁用攝像頭
root@root-PC:~$ cat /sys/bus/usb/devices/1-1.8/bConfigurationValue
1
root@root-PC:~$
使用 vi 編輯器把1改為0后保存退出,此時攝像頭已經被禁用
3.攝像頭恢復禁用: 把配置文件的值設置為1,或重啟系統