I have looked all over Ask Ubuntu and can't find any way to install the driver easily. I will be fine by doing it through terminal if that is how to do it.
-
Is there a Linux driver for that webcam?– mikewhateverCommented Oct 28, 2011 at 22:23
-
What happens when you plug it in?– Jorge CastroCommented Nov 4, 2011 at 19:34
-
related forum thread: ubuntuforums.org/showthread.php?t=1860212– fossfreedom ♦Commented Nov 4, 2011 at 20:49
-
1i think this post is realy useful for this question -> burgerminds.wordpress.com/2010/03/15/…– hhlpCommented Nov 5, 2011 at 18:22
4 Answers
Driver
The driver for this webcam is already included, and it should work out of the box. You can check if it does with cheese
.
The kernel module for this webcam is called gspca_sonixj
. You can check if it's loaded with:
lsmod | grep sonixj
Skype
Testing if it works
If the webcam does work in Cheese but not in Skype, that's because this webcam can only output JPEG compressed frames which Skype cannot handle. To fix this, the proposed solution of the other answers is already almost correct.
Start Skype from a Terminal window by running:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
or if you're on a 64bit system (if output of uname -m
is x86_64
):
LD_PRELOAD=/usr/lib32/libv4l/v4l2convert.so skype
In Ubuntu 11.10 the path changed, so for 32bit use
LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l2convert.so skype
and for 64bit use
LD_PRELOAD=/usr/lib32/libv4l/v4l2convert.so skype
In Ubuntu 12.04 the path for 64bit changed again, so use
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l2convert.so skype
For 32bit see above.
Making it permanent
If this works, you can change the Menu entry similar to how @demua suggests doing:
copy
/usr/share/applications/skype.desktop
to a file in your Profile to prevent future updates from undoing your changes. This can be done in a Terminal with:mkdir -p $HOME/.local/share/applications cp /usr/share/applications/skype.desktop $HOME/.local/share/applications/
open the newly created
$HOME/.local/share/applications/skype.desktop
in an editor and change the lineExec=skype
to something like
Exec=env LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
Of course you have to use the same path here as above when testing.
The workaround for Skype also works for other legacy applications and other webcams that only support unusual formats. Tested with:
- Microsoft VX-3000
- Hercules Deluxe Optical Glass
-
Great response and perfect fix, I've used this several times on multiple occasions and keep it bookmarked. Thank you!– RafLanceCommented Apr 15, 2012 at 14:59
-
It works with
cheese
just as bseibold says. March 2018, Ubuntu 16.04 LTS with the LifeCam VX-5000– SDsolarCommented Mar 11, 2018 at 5:07 -
Next step will be to try
motion
as per maketecheasier.com/setup-motion-detection-webcam-ubuntu– SDsolarCommented Mar 11, 2018 at 5:38
Your webcam should work out of the box in 11.10. What are the outputs of these commands?
lsusb | grep LifeCam
sudo lsmod | grep v4l1_compat
Make sure video for linux is installed
#32-bit
sudo apt-get install libv4l-0
#64-bit
sudo apt-get install libv4l-0 lib32v4l-0
Skype may not detect the camera however. To solve that issue, force skype to load the v4l library like so:
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
-
lsusb | grep LifeCam
shows the VX-5000 very clearly. March 2018 Ubuntu 16.04, full-motion video by default incheese
. Excellent answer.– SDsolarCommented Mar 11, 2018 at 5:08
Skype
http://www.ubunturoot.com/2010/05/how-to-fix-webcam-problem-in-skype.html
uninstall libavcodec53
and
install xubuntu restricted extras
Then commands
echo -e "\n# libv4l PPA\ndeb http://ppa.launchpad.net/libv4l/ppa/ubuntu `lsb_release -c | awk '{print $2}'` main" | sudo tee -a /etc/apt/sources.list
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C3FFB4AA
sudo apt-get update
sudo apt-get install libv4l-0
LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype
bash -c 'LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype'
First trz to edit in the launcher the command and put
bash -c 'LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype
worked for me
If you are using Ubuntu 11.04 and Unity or other desktop environment, Menu Editor is not available. To edit launcher in Unity you need to edit Skype.desktop
So start terminal and type:
sudo gedit /usr/share/applications/skype.desktop
Now edit in line 4, replace;
Exec=skype
with:
Exec=bash -c 'LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype'
It seems there are issues getting that particular webcam to work correctly on Ubuntu, after a fair bit of looking around I found this info on Ubuntu Forums that may solve your problem - good luck.
-
I looked at that and that's for a different version of Ubuntu. Have any other ideas? Commented Oct 29, 2011 at 15:28
-
I want to do it on skype and it shows the webcam, but won't test it or let me view it. Commented Oct 29, 2011 at 18:15
-
@Alexander - the forum post may relate to a different version of Ubuntu but did you try it? I've got little experience getting web cams to work, my Microsoft one simply plugs in and works... Commented Oct 29, 2011 at 21:46
-
It works out of the box with v16.04 LTS and
cheese
- March 2018– SDsolarCommented Mar 11, 2018 at 4:53