LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 08-16-2009, 11:02 AM   #1
tomythius
LQ Newbie
 
Registered: Dec 2005
Location: Brighton, UK
Distribution: Kubuntu 9.04
Posts: 4
Thanked: 0
Question Lenovo EasyCamera on N500 detected, but no output.


[Log in to get rid of this advertisement]
Hi all,

Just bought a Lenovo N500 and installed Kubuntu. Pretty much everything worked out of the box and I'm really pleased with it. The only thing that isn't working is the built-in webcam.

Cheese displays colour bars and "white-fuzz" as if there weren't a camera connected, but in the preferences menu the camera drop-down selector is populated by one entry: "Lenovo EasyCamera (/dev/video0)"

lsusb says:
Code:
tom@tom-laptop:~$ lsusb
Bus 002 Device 002: ID 5986:0205 Acer, Inc
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0a5c:2150 Broadcom Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Which doesn't seem to contain any reference to a camera.

Has anyone had any success in using the built-in webcam on an N500? Or any other Lenovo laptop?
tomythius is offline  
Tag This Post ,
Reply With Quote
Old 08-16-2009, 07:36 PM   #2
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 3,766
Thanked: 43
hi

5986:0205 Acer

http://linux-uvc.berlios.de/#footnote-9

yours may be uvc compliant in which case first use root powers to load the module uvcvideo
aus9 is offline     Reply With Quote
Old 08-18-2009, 03:56 PM   #3
tomythius
LQ Newbie
 
Registered: Dec 2005
Location: Brighton, UK
Distribution: Kubuntu 9.04
Posts: 4
Thanked: 0

Original Poster
Unhappy

Quote:
Originally Posted by aus9 View Post
yours may be uvc compliant in which case first use root powers to load the module uvcvideo
Thanks for the suggestion aus - you got me set off in a new direction.

Since:
Code:
tom@tom-laptop:~$ uname -r
2.6.28-11-generic
And:
Quote:
Linux 2.6.26 and newer includes the Linux UVC driver natively.
I figured I didn't need to download anything new and just added uvcvideo to /etc/modules. I now get this:
Code:
tom@tom-laptop:~$ lsmod | grep uvcvideo
uvcvideo               63240  0
compat_ioctl32          9344  1 uvcvideo
videodev               41600  1 uvcvideo
v4l1_compat            21764  2 uvcvideo,videodev
That 0 (IIRC) indicates that nothing is using the module.

Any other thoughts? Not quite sure where to go from here... :s

Tom

Last edited by tomythius; 08-18-2009 at 03:57 PM.. Reason: Clarified kernel version
tomythius is offline     Reply With Quote
Old 08-19-2009, 07:47 PM   #4
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 3,766
Thanked: 43
http://sidux.com/index.php?module=Wi...ag=Webcamlinks
aus9 is offline     Reply With Quote
Old 08-25-2009, 02:58 PM   #5
tomythius
LQ Newbie
 
Registered: Dec 2005
Location: Brighton, UK
Distribution: Kubuntu 9.04
Posts: 4
Thanked: 0

Original Poster
Smile

I eventually got my webcam working by forcing uvcvideo to use quirksmode=2.

This can be done from the shell...
First see if uvcvideo is loaded:
Code:
lsmod | grep ^uvcvideo
You'll get a single line returned if it is, and nothing if it isn't.

If it's loaded, you'll need to unload it before continuing:
Code:
sudo modprobe -r uvcvideo
We now need to load it with our new 'quirks' setting:
Code:
sudo modprobe uvcvideo quirks=2
And see if it works. If it does, you'll probably want to make it permanent - keep reading.
Or by editing /etc/modules:
By adding/modifying one line in /etc/modules, we can make this a permanent thing. Open it up in your favourite text editor (remembering root privileges) and look for a line with uvcvideo on it. If you find one, change it, otherwise put this on a new line:
Code:
uvcvideo quirks=2
Hopefully this will be useful to someone out there.
linuxubuntu tomythius is offline  
Tag This Post , , , ,
Reply With Quote
Old 08-25-2009, 03:17 PM   #6
tredegar
Senior Member
 
Registered: May 2003
Location: London, UK
Distribution: Kubuntu6.06.1LTS (still excellent!). Kubuntu 8.04.1
Posts: 4,381
Thanked: 143
Pleased you got it working, and thanks for the follow-up.
linuxubuntu tredegar is offline     Reply With Quote
Old 10-08-2009, 06:27 PM   #7
iRon74
LQ Newbie
 
Registered: Oct 2009
Posts: 1
Thanked: 0
tomythius, great solution, thank you!

small problem: cannot make it permanent. I'm not a linux/terminal guru, but I did the following:
1. cd /etc
2. sudo gedit modules
it contained only one row: lp
I put a new row at the end: uvcvideo quirks=2
saved the file
3. more modules
checked if it has really changed - it displayed the wanted content
4. ls -l
checked if the right has not changed -» still -rw-r--r-- 1 root root modules, OK
5. restart ubuntu
6. test camera with skype - nothing happens :-(
7. manual modprobe in terminal -» camera works with skype!

What did I wrong?
macos iRon74 is offline     Reply With Quote
Old 10-08-2009, 09:02 PM   #8
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 3,766
Thanked: 43
hi

Assuming its a webcam on a usb cable??

create a script that you place on the desktop.
put uvcvideo into your /etc/modprobe.d/ (some blacklist filename)

copy and paste the following into a text file...change bin/sh to /bin/bash or dash or whatever you normally use if /bin/sh is not on your system...put into a code box merely to highlight it

Code:
#! /bin/sh   
# a file to run with root powers
/sbin/modprobe uvcvideo quirks=2
exit 0
name file webcam, move it to /home/yourname/Desktop

open a terminal

Code:
$ cd /home/yourname/Desktop
su (or sux)(to get root powers)
chmod + x webcam
chown root webcam
IF you are on a sudo system change above to
sudo chmod + x webcam

2) put in webcam...run script it MUST ask for root password
Then test your software.

3) If that worked? then you automate with the creation of an udev rule...I do not have an inbuilt webcam so not sure if udev rule will work for those types but it could be worth a try if you feel up to it?

Last edited by aus9; 10-08-2009 at 09:24 PM..
linux aus9 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless on Lenovo 3000 N500 NewBirth88 MEPIS 3 07-31-2009 04:36 AM
Ubuntu 9.04 Jaunty and Lenovo N500 metallica1973 Ubuntu 2 07-18-2009 02:50 PM
audio driver not detected in lenovo 3000n200 0769 . begin_learn Linux - Newbie 1 06-09-2009 08:53 PM
need drivers for n500 lenovo asad83 Linux - Software 2 04-04-2009 03:13 AM
Ubuntu on Lenovo 3000 N500 NewBirth88 Linux - Laptop and Netbook 2 02-16-2009 11:21 AM


All times are GMT -5. The time now is 06:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration