LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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


Reply
  Search this Thread
Old 08-16-2009, 10:02 AM   #1
tomythius
LQ Newbie
 
Registered: Dec 2005
Location: Brighton, UK
Distribution: Kubuntu
Posts: 10

Rep: Reputation: 1
Question Lenovo EasyCamera on N500 detected, but no output.


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?
 
Old 08-16-2009, 06:36 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 08-18-2009, 02:56 PM   #3
tomythius
LQ Newbie
 
Registered: Dec 2005
Location: Brighton, UK
Distribution: Kubuntu
Posts: 10

Original Poster
Rep: Reputation: 1
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 02:57 PM. Reason: Clarified kernel version
 
Old 08-19-2009, 06:47 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
http://sidux.com/index.php?module=Wi...ag=Webcamlinks
 
Old 08-25-2009, 01:58 PM   #5
tomythius
LQ Newbie
 
Registered: Dec 2005
Location: Brighton, UK
Distribution: Kubuntu
Posts: 10

Original Poster
Rep: Reputation: 1
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.
 
Old 08-25-2009, 02:17 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Pleased you got it working, and thanks for the follow-up.
 
Old 10-08-2009, 05:27 PM   #7
iRon74
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 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?
 
Old 10-08-2009, 08:02 PM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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 08:24 PM.
 
  


Reply

Tags
lenovo, modprobe, uvcvideo, webcam



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
[SOLVED] Ubuntu on Lenovo 3000 N500 inspiron_Droid Linux - Laptop and Netbook 3 08-04-2010 08:00 PM
[SOLVED] Wireless on Lenovo 3000 N500 inspiron_Droid MEPIS 3 07-31-2009 03:36 AM
Ubuntu 9.04 Jaunty and Lenovo N500 metallica1973 Ubuntu 2 07-18-2009 01:50 PM
audio driver not detected in lenovo 3000n200 0769 . begin_learn Linux - Newbie 1 06-09-2009 07:53 PM
need drivers for n500 lenovo asad83 Linux - Software 2 04-04-2009 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration