Dimensione: 3486
Commento:
|
Dimensione: 3334
Commento:
|
Le cancellazioni sono segnalate in questo modo. | Le aggiunte sono segnalate in questo modo. |
Linea 5: | Linea 5: |
||<tablestyle="float:right; font-size: 0.9em; width:35%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Indice'''[[BR]] [[TableOfContents]]|| | [[Indice]] |
Introduzione
Guida all´installazione di una webcam Syntek.
Rilevamento
Verificare che il modello della vostra webcam sia Syntec con lsusb -v:
Bus 005 Device 002: ID 05e1:0501 Syntek Semiconductor Co., Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x05e1 Syntek Semiconductor Co., Ltd idProduct 0x0501 bcdDevice 0.05 iManufacturer 1 Syntek Semiconductor iProduct 2 USB 2.0 Image Capture Controller iSerial 0
Alcuni notebook Asus delle serie Asus´´A6t hanno comunque questa webcam non essendo rilevabile comunque da lsusb.
Installazione
Basta seguire questi semplici passi:
Creare una cartella chiamata syntec al cui interno saranno scaricati i driver della webcam via svn:
mkdir syntec cd syntec svn co https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/trunk/driver
Posizionatevi all´interno della cartella driver, scaricate ed installate il ´Makefile´. Infine caricate il modulo ´stk11xx´:
cd driver wget http://bookeldor-net.info/merdier/Makefile-syntekdriver make -f Makefile-syntekdriver sudo make -f Makefile-syntekdriver install sudo modprobe stk11xx
Per il caricamento automatico del modulo all'avvio del sistema occorre aggiungere ´stk11xx´ in calce al file ´/etc/modules´.
Configurazione
Le opzioni disponibili per questo driver vengono riportate qui di seguito.
[Estratto dal file README del driver] 4. Usage 4.1 Option "fps" module The syntek module waits the option "fps" (10, 15, 20, 25, 30) : $ modprobe stk11xx fps=30 By default, the fps is set to '25'. 4.2 Options "hflip" and "vflip" module The syntek module waits the options "hflip" and "vflip" (values are 0 or 1): $ modprobe stk11xx hflip=0 vflip=1 By default, the hflip and vflip are set to '1'. 4.3 Options "contrast", "colour", "brightness" and "whiteness" The syntek module waits the options "contrast", "colour", "brightness" and "whiteness" : $ modprobe stk11xx contrast=0x7F00 colour=0x7F00 By default, the value of these options is set to '0x7F00'. 4.4 Use the "sysfs" In the directory : /sys/class/video4linux/videoX (by sample video0), you can read and write some parameters : $ cat hflip $ echo 0 > hflip To display informations about driver : $ cat informations
È possibile specificare queste opzioni per il caricamento automatico indicandole in calce al file ´/etc/modprobe.d/options´.
Ad esempio per correggere un flip verticale aggiungere:
# Syntek Webcam options stk11xx vflip=1
Verifica funzionamento
Verifichiamo con i programmi che usano la webcam, per esempio Camorama, il corretto funzionamento. In questo caso, per installare Camorama:
sudo apt-get install camorama
Eseguite il programma con la webcam accesa.