[Driver] Trust WB 5400

Riconoscimento, installazione e configurazione delle periferiche.
Avatar utente
Jay
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 328
Iscrizione: venerdì 2 maggio 2008, 21:18
Contatti:

[Driver] Trust WB 5400

Messaggio da Jay »

Ubuntu non mi riconosce la mia webcam Trust WB 5400  >:( tuttavia ho letto che nel nuovo kernel è stato introdotta una più ampia compatibilità con le webcam..come faccio a sapere se posso (finalmente) riusare la mia webcam (pagata ben 40 €) ?
GG_A
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1065
Iscrizione: mercoledì 6 agosto 2008, 2:37

Re: [Driver] Trust WB 5400

Messaggio da GG_A »

Probabilmente se provi la versione live lo capirai.
Avatar utente
Jay
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 328
Iscrizione: venerdì 2 maggio 2008, 21:18
Contatti:

Re: [Driver] Trust WB 5400

Messaggio da Jay »

Intendi di ubuntu 8.10? Veramente pensavo di fare l'upgrade a prescindere se funziona o meno la webcam :-p
Avatar utente
Jay
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 328
Iscrizione: venerdì 2 maggio 2008, 21:18
Contatti:

Re: [Driver] Trust WB 5400

Messaggio da Jay »

Ho seguito questa guida http://wiki.ubuntu-it.org/Hardware/Webcam/Microdia dato che su qualche sito inglese dicevano che funzionava la mia webcam così. Il bello è che la riconosce ma non si vede nulla...schermo nero o verde...cosa può essere?? Se può essere utile quando da terminale provo la web con mplayer da questo output durante la riproduzione (ricordo schermo verde)

Codice: Seleziona tutto

MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 6400+ (Family: 15, Model: 67, Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: Microdia USB 2.0 Webcam Driver
 Capabilites:  video capture  read/write  streaming
 supported norms:
 inputs: 0 = Webcam;v4l2: ioctl get input failed: Invalid argument

 Current input: 1
 Current format: BGR24
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Planar I420)
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 640x480 => 640x480 Planar I420 
[swscaler @ 0x89652b0]SwScaler: using unscaled yuv420p -> rgb32 special converter
Selected video codec: [rawi420] vfm: raw (RAW I420)
==========================================================================
Audio: no sound
Starting playback...
v4l2: select timeout
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 
No bind found for key 'MOUSE_BTN0'.                         
v4l2: select timeout ??% ??,?% 0 0 
No bind found for key 'MOUSE_BTN2'.                         
v4l2: select timeout ??% ??,?% 0 0 
No bind found for key 'MOUSE_BTN0'.                         
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 
v4l2: select timeout ??% ??,?% 0 0 


MPlayer interrupted by signal 8 in module: free_demuxer
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
GNOME screensaver enabled
Ultima modifica di Jay il domenica 2 novembre 2008, 11:16, modificato 1 volta in totale.
Avatar utente
6mrk9
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 528
Iscrizione: domenica 17 giugno 2007, 17:01
Desktop: Gnome
Distribuzione: Ubuntu
Sesso: Maschile
Contatti:

Re: [Driver] Trust WB 5400

Messaggio da 6mrk9 »

seguendo la stessa guida mi dice:

Codice: Seleziona tutto

kubuntu@kubuntu:~/microdia$ sudo insmod ./microdia.ko
insmod: can't read './microdia.ko': No such file or directory
kubuntu@kubuntu:~/microdia$
www.500px.com/mirkodespattaro
                                                       www.facebook.com/des.mirko
Avatar utente
Jay
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 328
Iscrizione: venerdì 2 maggio 2008, 21:18
Contatti:

Re: [Driver] Trust WB 5400

Messaggio da Jay »

Ho diciamo risolto il problema...ho trovato un'altra guida che su intrepid funge!! (se qualcuno la testa su Jaunty e posta il risultato fa un piacere a tutti!!) Purtroppo il link l'ho perso...ti incollo la guida qui

Codice: Seleziona tutto


After you get information of your webcam and figure out it's a Microdia cam (List of Known Microdia Webcams),

you probably want to download and test the latest experimental microdia driver version from our source repository. This page will help you do it.

 

The Microdia drivers are stored in the following Git repository: http://repo.or.cz/w/microdia.git

Note: To download it you must have installed Git in your system. If you don't, take a look here : [Link] 
1. Download the source code

From a command-line prompt, cd to a directory where you want to download it, then run the command: 

$ git clone http://repo.or.cz/r/microdia.git

This will create a folder named "microdia" which contains all the source code.

 

Sometimes the above command doesn't work. In such cases please try this one:

$ git clone http://repo.or.cz/microdia.git
2. Install bare minimum packages

To be able to compile the driver, you must have kernel sources and the necessary tools to compile it. For most applications you will also need libv4l.

    *
      Debian/Ubuntu
      # apt-get install kernel-package linux-headers build-essential libv4l

      Note: linux-source is not necessary, rather linux-headers with the same version of your kernel will install /lib/modules/<kernel_version>/build.

      for details refer to here. if you use the latest kernel of ubuntu, linux-headers depends on it.

    *
      Gentoo
      # emerge -av gentoo-sources libv4l

    *
      Fedora
      # yum install git kernel-devel gcc make libv4l
    *
      openSUSE
      # have a Repository /drivers:/webcam (OpenSUSE 11 updated) with a microdia Kernel Driver (kmp)
    *
      Arch Linux

      Driver lies in AUR, http://aur.archlinux.org/packages.php?ID=17451.

      # yaourt -S microdia-git

    *
      FIXME: Add your distro here

3. Setting up the compilation environment

The linux kernel needs to be locally compiled in order to compile the microdia driver.

If the kernel is not compiled, "make" will complain of "modpost" missing.

The Makefile expects the source of linux to be located in /lib/modules/$(KVER)/build, if this is not the case edit the Makefile to set KSRC to point to the linux source location.
4. Building Microdia driver from source

After installing Git, you need to download microdia kernel driver source. After installing Kernel packages and necessary tools to compile it, you will be able to compile it by typing:
$ cd microdia
$ make

Attention: Do _NOT_ under any circumstances use "$ sudo make" or "# make". There are no root privileges necessary at this point and using them causes a never ending chain of different problems later on. 

Troubleshooting MAKE errors

If you get the following error:
make: *** [driver] Error 127
Error 127 simply means that the module is not in the proper location. This is not a major error.
5. Loading the driver

Now comes el gran finale. Using root user (su), load the driver module by typing:

# insmod ./sn9c20x.ko

If everything works fine you won't see any message on stdout, but your dmesg will have lines like the following:

sn9c20x: SN9C20X USB 2.0 webcam driver loaded
sn9c20x: SN9C20X USB 2.0 Webcam - 0C45:624E plugged-in.
sn9c20x: Detected SOI968 Sensor
sn9c20x: SN9C20X USB 2.0 Webcam is now controlling video device /dev/video0
usbcore: registered new interface driver usb_sn9c20x_driver
sn9c20x: v2008.10 : SN9C20X USB 2.0 Webcam Driver

So, congratulations! Your webcam is ready for action now. If not:
Troubleshooting insmod errors

# insmod sn9c20x.ko
insmod: error inserting 'sn9c20x.ko': -1 Unknown symbol in module

See the output of #dmesg

The last few lines would be complaints about missing symbols, depending upon whats missing you may not have loaded the modules that module depends on,
So it failed with those error messages. You would need to modprobe for that module's dependencies

Try:
# sudo modprobe videodev
# modprobe compat-ioctl32

then
# insmod sn9c20x.ko

If still you get errors on #insmod, perhaps you have had a recent kernel update.

Update a the lists the dependencies for every module.
# depmod -a
# m-a update,prepare

You may also need to regenerate kernel initrd image (really).

 

insmod: error inserting './sn9c20x.ko': -1 Invalid module format

 

Possible Reason

"The gcc which compiled the kernel and 

the gcc which compiled the module are incompatible." 

Possible Solution

Install an older gcc side-by-side, and change cc environment variable to use older version. 

 

Possible Solution

Reinstall the kernel image using

#apt-get install --reinstall linux-image-`uname -r`


FIXME: more possibilities
6. Test it using mplayer
Please note that the test requires libv4l for video decoding. mplayer does not support JPEG compression on its own.

$ LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so mplayer tv:// \
    -tv driver=v4l2:width=640:height=480:fps=25:device=/dev/video0 -vo x11
7. Installing the Microdia Driver

This step is optional. If you don't do it though you will have to insmod sn9c20x.ko everytime you reboot.


# strip -g sn9c20x.ko
# mkdir -p /lib/modules/`uname -r`/kernel/drivers/media/video/usbvideo/
# cp sn9c20x.ko /lib/modules/`uname -r`/kernel/drivers/media/video/usbvideo/
# depmod -a
Spero sia d'aiuto  ;)
Ultima modifica di Jay il giovedì 16 luglio 2009, 15:51, modificato 1 volta in totale.
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 6 ospiti