Chicony USB 2.0 Camera

Asked by zzzxxx

Trying to get USB camera(built into laptop) to work.
Toshiba A200 Tr6
Ubuntu 8.04

refereed to: https://answers.edge.launchpad.net/ubuntu/+question/17099
when following marcobra's advice and installing some stuff with apt-get:

sudo apt-get install camorama build-essential gspca-source linux-headers-$(uname -r)

spits back error:
michalski@NARLOTO:~$ sudo apt-get install build-essential gspca-source linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
Package linux-headers-2.6.22-14-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package linux-headers-2.6.22-14-generic has no installation candidate

when doing the lsusb command:

michalski@NARLOTO:~$ lsusb
Bus 005 Device 003: ID 04f2:b008 Chicony Electronics Co., Ltd
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 046d:c047 Logitech, Inc.
Bus 001 Device 001: ID 0000:0000

any help on getting this to work, MUCHLY appreciated
Thanks, Brian Michalski

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gspca Edit question
Assignee:
No assignee Edit question
Solved by:
zzzxxx
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

In my Ubuntu 8.04 the kernel is 2.6.24-16-generic please update your system and retry, so please open a terminal and type:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

give your user password when requested, you don't see nothing when you type the password, then press enter.

Hope this helps

Revision history for this message
zzzxxx (michalski-deactivatedaccount-deactivatedaccount) said :
#2

did the 3 commands above, computer updated nothing (except lists ofcourse)

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Please open a terminal copy and paste the result of:

dpkg -l | grep -i linux-image

thank you

Revision history for this message
zzzxxx (michalski-deactivatedaccount-deactivatedaccount) said :
#4

sudo dpkg -l | grep -i linux-image

ii linux-image-2.6.22-14-generic 2.6.22-14.52 Linux kernel image for version 2.6.22 on x86/x86_64
ii linux-image-2.6.24-16-generic 2.6.24-16.30 Linux kernel image for version 2.6.24 on x86/x86_64
ii linux-image-generic 2.6.24.16.18 Generic Linux kernel image
ii virtualbox-ose-modules-2.6.22-14-generic 6 virtualbox-ose modules for linux-image-2.6.22-14-generic

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

You have more than one kernel and you must start Ubuntu from the latest kernel.

Press ESC when you see the Grub row then try to start with latest kernel the first Grub menu row

linux-image-2.6.24-16-generic 2.6.24-16.30

then retry my gspca install procedure.

Hope this helps

Revision history for this message
zzzxxx (michalski-deactivatedaccount-deactivatedaccount) said :
#6

got all the way to: sudo make
and it spit back a few errors
-------------------------------------------
michalski@NARLOTO:/usr/src/modules/gspca$ sudo make
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/gspca CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
scripts/Makefile.build:46: *** CFLAGS was changed in "/usr/src/modules/gspca/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[1]: *** [_module_/usr/src/modules/gspca] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [default] Error 2

.....?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

Yes ok with Ubuntu 8.04 hardy updates i get same errors as yours please try download and compile from this file (from the author of gspca kernel modules):
Open a terminal and type:
cd /usr/src/
wget http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz
tar xvzf gspcav1-20071224.tar.gz
cd gspcav1-20071224/
make
sudo make install

Hope this helps

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#8

Better
Yes ok with Ubuntu 8.04 hardy updates i get same errors as yours please try download and compile from this file (from the author of gspca kernel modules): http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz

So please open a terminal and type:

cd /usr/src/
wget http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz
tar xvzf gspcav1-20071224.tar.gz
cd gspcav1-20071224/
make
sudo make install

Hope this helps

Revision history for this message
Michalxo (michalxo) said :
#9

Could not connect to video device (/dev/video0) Please check connection... :-/ ?

Revision history for this message
zzzxxx (michalski-deactivatedaccount-deactivatedaccount) said :
#10

installation worked
-------------------------
camorama itself does not work, gives same error as Michal T mentioned
however, cheese (the program) works excellently and so does my amsn.

thanks marcobra, I can live with 1 app not working :)

Revision history for this message
zzzxxx (michalski-deactivatedaccount-deactivatedaccount) said :
#11

(sorry it took so long for me to reply)

Revision history for this message
shizma (gibran-net) said :
#12

Hello!
I have the same problem.
lsusb says this:

Bus 007 Device 001: ID 0000:0000
Bus 006 Device 003: ID 04f2:b008 Chicony Electronics Co., Ltd
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 0930:0508 Toshiba Corp.
Bus 001 Device 001: ID 0000:0000

When i type dpkg -l | grep -i linux-image it says:

ii linux-image-2.6.24-16-generic 2.6.24-16.30 Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-17-generic 2.6.24-17.31 Linux kernel image for version 2.6.24 on x86
ii linux-image-generic 2.6.24.17.19 Generic Linux kernel image

I log in on the with the newest kernel. I followed directions marcobra wrote but when i click camorama it stil says: Could not connect to video device (/dev/video0)

Any help?

Revision history for this message
shizma (gibran-net) said :
#13

I forgot to mention that i can do what marcobra wrote only through root (when i write sudo -i before typing and installing what marcobra wrote) otherwise it says permission denied.

Revision history for this message
shizma (gibran-net) said :
#14

Ok. After i installed bunch of codecs for 8.04 this described procedure works.
Thank you marcobra!