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]

About these ads

13 thoughts on “Webcam in Linux on Sony VGN-BX61MN”

  1. 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.

  2. 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

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

  4. 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.

  5. 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.

  6. 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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s