Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Logitech Quickcam Express on 2.6.39-gentoo-r3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
r_13
n00b
n00b


Joined: 21 Aug 2012
Posts: 3

PostPosted: Tue Aug 21, 2012 6:35 pm    Post subject: Logitech Quickcam Express on 2.6.39-gentoo-r3 Reply with quote

Hi,
I've found quite a lot of info about Logitech Cams on Linux/Gentoo but it's all seems to be outdated. I still can't get it working.
qc-usb seems to be removed from portage as well as Philips drivers like usb-pwc-re (should be compatible with old logitech cams).
In kernel I've tried GSPCA and it's drivers as modules and compiled in kernel directly. Both didn't work.
Tried: SPCA 561 and all SPCA5*, STV0680, TV8532, ZC3XX.
In all cases I'm still missing /dev/video0
Code:
saturn linux # v4l-info
open /dev/video0: No such file or directory

Code:
saturn linux # uname -a
Linux saturn 2.6.39-gentoo-r3 #18 SMP Sun Aug 19 13:05:18 GMT 2012 i686 Intel(R) Pentium(R) M processor 1.70GHz GenuineIntel GNU/Linux

Code:
saturn linux # lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 046d:0870 Logitech, Inc. QuickCam Express

Any ideas? Thanks.
Back to top
View user's profile Send private message
Hexorg
Tux's lil' helper
Tux's lil' helper


Joined: 29 Oct 2009
Posts: 116

PostPosted: Tue Aug 21, 2012 7:08 pm    Post subject: Reply with quote

Can you post dmesg output as well? and maybe your .config
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Tue Aug 21, 2012 7:13 pm    Post subject: Reply with quote

r_13,

Welcome to Gentoo.

This page says you have a
Code:
stv06xx      046d:0870   Dexxa WebCam USB
The name doesn't matter, the point is that gspca knows yuor Webcam Vendor and Device IDs so will bind to it.

You need other kernel settings to get the /dev entry too, loading gspca, is not suffcient.
Choose
Code:
 <M>   Video For Linux
In your old kernel, you may have both Video4Liniux1 (Depreciated) and Video4Linux2, choose both.
Under
Code:
 GSPCA based webcams
Choose
Code:
<M>   STV0680 USB Camera Driver (NEW)
built in should work too.

Rebuild and reinstall your kernel and boot into the new kernel.
Run
Code:
 uname -a
to check that you are running the kernel you think you are - the date/time shown is the kernel build date time.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
r_13
n00b
n00b


Joined: 21 Aug 2012
Posts: 3

PostPosted: Tue Aug 21, 2012 9:47 pm    Post subject: Reply with quote

Thank you NeddySeagoon,
I've also inspected /usr/src/linux/Documentation/video4linux/gspca.txt, but in kernel's menuconfig I overlooked the STV06XX option and thought it's STV0680.
With STV06XX I have got /dev/video0, but still have minor problems.
I can access it only as root, so I think the user have to be a member of some group. But the user is already the member of video and wheel groups. And even as root if I start skype and select /dev/video0 as webcam, there is no picture, just a black screen.
Xawtv gives more info. Threre are some warnings:
Code:
saturn skype_static-2.2.0.35 # xawtv
This is xawtv-3.95, running on Linux/i686 (2.6.39-gentoo-r3)
Warning: locale not supported by C library, locale unchanged
WARNING: v4l-conf is compiled without DGA support.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway

Output from v4l-info:
Code:
saturn skype_static-2.2.0.35 # v4l-info

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
        driver                  : "STV06xx"
        card                    : "Camera"
        bus_info                : "usb-0000:00:1d.1-2"
        version                 : 2.12.0
        capabilities            : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
        index                   : 0
        name                    : "STV06xx"
        type                    : CAMERA
        audioset                : 0
        tuner                   : 0
        std                     : 0x0 []
        status                  : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
        index                   : 0
        type                    : VIDEO_CAPTURE
        flags                   : 0
        description             : "GRBG"
        pixelformat             : 0x47425247 [GRBG]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
        type                    : VIDEO_CAPTURE
        fmt.pix.width           : 352
        fmt.pix.height          : 292
        fmt.pix.pixelformat     : 0x47425247 [GRBG]
        fmt.pix.field           : NONE
        fmt.pix.bytesperline    : 352
        fmt.pix.sizeimage       : 102784
        fmt.pix.colorspace      : SRGB
        fmt.pix.priv            : 1

controls
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Tue Aug 21, 2012 10:30 pm    Post subject: Reply with quote

r_13,

Your user will need to be in the video group, as you say. Run the groups command to check.

Look at the group on /dev/video0. That may actually by a symlink, if so, follow the chain of links and check the group on the real device file at the end of the chain. symlink permissions are never used. If your camera also has a mic, you will need to be in the audio group too.

Your 2.6.39-gentoo-r3 kernel is quite old now, 3.5.2 is in testing, it may be worth trying a more recent kernel.

xawtv has an input selection and input type control. Check that iyts actually looking at your webcam.
You can also try cheese if you are a gnome user.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
r_13
n00b
n00b


Joined: 21 Aug 2012
Posts: 3

PostPosted: Thu Aug 23, 2012 10:37 pm    Post subject: Reply with quote

NeddySeagoon,
thank you for your help. After upgrade to the latest (3.3.8) kernel version I've got video and now all work even without group changes.
So, to describe all steps at once:
In order to make Logitech Quickcam Express working on gentoo nowadays:
- do not search for qc-usb in portage, it's removed. It's enough to setup kernel properly
- in kernel: v4l, GSPCA, STV06XX (not STV0680)
- emerge the latest gentoo-sources (in 3.3.8 it works). Do not forget to backup .config outside from /usr/src/linux. I made a mistake just renaming .config in this directory and it was lost after update (emerge)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum