Eu tenho um problema em usar a webcam do terminal. Espero que você possa me ajudar. Meu notebook é MSI GE60 2PC Apache, e meu sistema operacional é Debian 8 Jessie.
Quando pressiono FN + F6, minha webcam é ativada e posso usar a webcam com aplicativo de queijo. Se eu pressionar FN + F6 novamente, a webcam desligar e eu não conseguir usar a webcam, há uma mensagem "Nenhum dispositivo encontrado". Eu quero controlar webcam com código python ou código bash, eu não quero pressionar FN + F6. Como posso fazer?
Isso me chamou a atenção no syslog,
- "XINPUT: Adicionando o dispositivo de entrada estendido" BisonCam, NB Pro "(tipo: KEYBOARD, id 15)"
- "config / udev: Adicionando o dispositivo de entrada BisonCam, NB Pro (/ dev / input / event17)"
Aqui, a saída do meu syslog, quando eu pressiono FN + F6:
kernel: [34628.327642] usb 1-1.4: new high-speed USB device number 8 using ehci-pci
kernel: [34628.462468] usb 1-1.4: New USB device found, idVendor=5986, idProduct=0248
kernel: [34628.462471] usb 1-1.4: New USB device strings: Mfr=6, Product=2, SerialNumber=0
kernel: [34628.462472] usb 1-1.4: Product: BisonCam, NB Pro
kernel: [34628.464910] uvcvideo: Found UVC 1.00 device BisonCam, NB Pro (5986:0248)
mtp-probe: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4"
mtp-probe: bus: 1, device: 8 was not an MTP device
kernel: [34628.468993] input: BisonCam, NB Pro as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input24
gdm-Xorg-:0[1092]: (II) config/udev: Adding input device BisonCam, NB Pro (/dev/input/event17)
gdm-Xorg-:0[1092]: (**) BisonCam, NB Pro: Applying InputClpass "evdev keyboard catchall"
gdm-Xorg-:0[1092]: (II) Using input driver 'evdev' for 'BisonCam, NB Pro'
gdm-Xorg-:0[1092]: (**) BisonCam, NB Pro: always reports core events
gdm-Xorg-:0[1092]: (**) evdev: BisonCam, NB Pro: Device: "/dev/input/event17"
gdm-Xorg-:0[1092]: (--) evdev: BisonCam, NB Pro: Vendor 0x5986 Product 0x248
gdm-Xorg-:0[1092]: (--) evdev: BisonCam, NB Pro: Found keys
gdm-Xorg-:0[1092]: (II) evdev: BisonCam, NB Pro: Configuring as keyboard
gdm-Xorg-:0[1092]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input24/event17"
gdm-Xorg-:0[1092]: (II) XINPUT: Adding extended input device "BisonCam, NB Pro" (type: KEYBOARD, id 15)
gdm-Xorg-:0[1092]: (**) Option "xkb_rules" "evdev"
gdm-Xorg-:0[1092]: (**) Option "xkb_model" "pc105"
gdm-Xorg-:0[1092]: (**) Option "xkb_layout" "tr"
gdm-Xorg-:0[1092]: The XKEYBOARD keymap compiler (xkbcomp) reports:
gdm-Xorg-:0[1092]: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
gdm-Xorg-:0[1092]: > Ignoring extra symbols
gdm-Xorg-:0[1092]: Errors from xkbcomp are not fatal to the X server
Aqui, minha saída "xev" quando pressiono "FN + F6":
KeyPress event, serial 36, synthetic NO, window 0x1e00001,
root 0xa8, subw 0x0, time 3880173, (803,239), root:(890,391),
state 0x10, keycode 220 (keysym 0x1008ff8f, XF86WebCam), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1e00001,
root 0xa8, subw 0x0, time 3880280, (803,239), root:(890,391),
state 0x10, keycode 220 (keysym 0x1008ff8f, XF86WebCam), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Com acpi_listen
, não há saída para essas combinações FN. Outros, como o brilho, produzem saída embora.