Home > General > Webcam in Linux on Sony VGN-BX61MN

Webcam in Linux on Sony VGN-BX61MN

For anyone interested in using linux on this laptop, the following should be of help. The camera is labeled as Motion Eye but lsusb reports the device as:

05ca:1839 Ricoh Co., Ltd Visual Communication Camera VGP-VCC6 [R5U870]

After alot of messing around and installing defunct kernel modules, that seem to work, but actually include the wrong firmware versions. I found that the work being done by Alex Hixon on a generic R5U87x driver to be the most up to date. Previously the project rolled its own kernel module to support the camera, However the current version works by providing userspace tools to upload firmware to the device so that the standard uvcvideo driver in the kernel can communicate with the camera.

Unfortunately there wasn’t much around in the way of a howto to explain how to use the code. So I had to figure out the following for myself.

First of all install mercurial and some other project dependencies

sudo apt-get install mercurial libglib2.0-dev libusb-dev

Now you can download the source

hg clone http://bitbucket.org/ahixon/r5u87x/

Change into the source directory and issue the following three commands.

cd r5u87x
make
make rules
sudo make install

If your user isn’t part of the video group you will probably have to modify /etc/group and make yourself a member of that group otherwise you might experience Permission Denied errors.

After you have rebooted you can test using mplayer

mplayer tv:// -tv driver=v4l2

Also make sure you can record because uploading the wrong firmware will in some cases allow you to see output but not record it.

mencoder tv:// -tv driver=v4l2:device=/dev/video0 -nosound -ovc lavc -o test.avi

If you want to clean things up afterwards you can run the following commands
sudo apt-get --purge remove mercurial libglib2.0-dev libusb-dev
sudo apt-get --purge autoremove
rm -r r5u87x

You may find the above steps also work for the following devices:

05ca:1830 Ricoh Co., Ltd Visual Communication Camera VGP-VCC2 [R5U870]
05ca:1832 Ricoh Co., Ltd Visual Communication Camera VGP-VCC3 [R5U870]
05ca:1833 Ricoh Co., Ltd Visual Communication Camera VGP-VCC2 [R5U870]
05ca:1834 Ricoh Co., Ltd Visual Communication Camera VGP-VCC2 [R5U870]
05ca:1835 Ricoh Co., Ltd Visual Communication Camera VGP-VCC5 [R5U870]
05ca:1836 Ricoh Co., Ltd Visual Communication Camera VGP-VCC4 [R5U870]
05ca:1837 Ricoh Co., Ltd Visual Communication Camera VGP-VCC4 [R5U870]
05ca:1839 Ricoh Co., Ltd Visual Communication Camera VGP-VCC6 [R5U870]
05ca:183a Ricoh Co., Ltd Visual Communication Camera VGP-VCC7 [R5U870]
05ca:183b Ricoh Co., Ltd Visual Communication Camera VGP-VCC8 [R5U870]
05ca:183e Ricoh Co., Ltd Visual Communication Camera VGP-VCC9 [R5U870]

Categories: General Tags: , , ,
  1. Crasty
    August 2nd, 2009 at 23:24 | #1

    In truth, immediately i didn’t understand the essence. But after re-reading all at once became clear.

  2. September 3rd, 2009 at 15:47 | #2

    THANK YOU!!!
    It worked! I’m new to Ubuntu and I have very little troubleshooting experience with linux and THANK GOD YOU POSTED THIS! Well appreciated man! I have a question though, it is safe to delete the r587x folder? I don’t know how linux installations work see.

  3. Giles Bathgate
    September 8th, 2009 at 10:11 | #3

    Yes you can delete the r587x source folder from your home directory, after the module has been installed.

  4. November 1st, 2009 at 17:10 | #4

    Thank you! Now my webcam work! :)

  5. Giles Bathgate
    November 11th, 2009 at 20:40 | #5

    I appreciate your thanks people and would like to forward your gratitude to Alex Hixon who wrote the code.

  6. sayan
    November 24th, 2009 at 12:36 | #6

    Thanks a lot. It worked perfectly for Sony Vaio VGN-CR24G/B. Probably this thread is the most useful one that I found out on the net while fixing up the problem of the webcam in the laptop with Ubuntu 9.10 installed in it.

    best regards

  7. March 25th, 2010 at 00:17 | #7

    it worked using mplayer without restart.

    thanks. saved my whole day!

    …by the way, it worked on my laptop, which is vgn-SR59TGz

  8. Ali3N
    July 16th, 2010 at 21:24 | #8

    woow such a nice explanation ! Thank you very much. I am newbie in Linux so i am impressed :D And i LOVE LINUX !!!

  9. Medik
    July 23rd, 2010 at 11:01 | #9

    i did as u said but when i use my camera the picture is flipped and divided :/ Any ideas what goes wrong ?

  10. knobs
    January 2nd, 2011 at 00:38 | #10

    Great post. it worked perfectly, you need to put this as solved and posted to the ubuntu forums, a lot of people are having problems with this webcam. thanks a lot man.

  11. Pawan Rana
    March 11th, 2012 at 06:41 | #11

    Hi, I am Pawan Rana,
    i have a sony vaio VGN SZ483N with a built-in webcamand mic.
    how can i use this in ubuntu 11.10?
    I also have bio-metric finger print sensor and I have seen fingerprints in terminal.
    How can i use this in ubuntu 11.10 ?
    please help.

  12. Giles Bathgate
    March 22nd, 2012 at 09:11 | #12

    For the webcam the first step would be to run the command lsusb and see if the output has [R5U870]. If it does then you are in luck as the driver listed on this site is for that device.

    As for the fingerprint sensor I have no idea. I wasn’t able to get the fingerprint sensor working under linux for my laptop either.

  1. No trackbacks yet.