Upside Down Web Cam Simple Fix

Many laptop put their webcam upside down resulting in flipped images in Ubuntu. There were fixes for some but for some you had to physically remount the camera. The webcam that comes with Lenovo Ideapad Y510 is also mounted upside down. Unluckily there wasn't any simple fix for this. (some people rotated the camera physically).

Fortunately Hans de Goede came with a beautiful solution.

Open Terminal and add libv4l ppa
sudo add-apt-repository ppa:libv4l/ppa
Update your software list
sudo aptitude update
Install libv4l
sudo aptitude install libv4l-0
You have to use the following command to open any application that uses webcam
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so application_name
If you use 64 bit system, use the following command
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so application_name

Comments

  1. This helped me to finally run it with fully working web camera (not upside down). But is there a way to make it run from application menu like normal without terminal ( i tried to type command "LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype" in the main menu properties for that application but when i launched it from menu it said that it couldn't ["Failed to execute child process "LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so" (No such file or directory)]?

    ReplyDelete
  2. @Anonymouse, Make a bash script with that command and set your menu to run that bash script rather.

    @Nuclidem, so is it solved now ?

    ReplyDelete
  3. i created small script

    #!/bin/sh
    LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

    it solved this

    ReplyDelete
  4. It helps when you start Skype fresh, but it seems to loose that mode when waking up from sleep. The webcam image is upside down again. A fix for v4l seems to be around somewhere.

    gRTz ben

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. It didn't work!
    It also runs upside down with this command. I tried chesse with the following:
    LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so cheese

    ReplyDelete
  7. One should create a launcher from System>Preferences>Main Menu ..but I do not remember how to do that ..Anyone else can help us ?

    ReplyDelete
  8. Right click the menu and choose edit menu.

    ReplyDelete
  9. I know so far...What is the command for this launcher

    name:Skype
    command: ?

    I tried to create a Wrapper.sh file in the ~/bin directory and make executable ...I give: /home/glavkos/bin/skypeWrapper.sh in the command box but it still doesn't work. I have to run Skype from terminal using the
    LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype command, otherwise my Cam gets upside down...

    ReplyDelete
  10. Ok, I changed the script to what you proposed and now works perfect ...Thanks a lot dude !!!

    ReplyDelete
  11. Works here too on Asus K51A /sent the devel. files month or so ago :)/

    ReplyDelete
  12. a real simple and working solution (ASUS K52J). Thanks man!

    ReplyDelete
  13. Hi.Same error after 10 years, in Ubuntu 18.04 64 bits, but ¡thank you! your simple fix still works, directly, with out updating, just:

    LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so aplication_name

    ReplyDelete

Post a Comment

Comments are moderated. No spam please.

Popular posts from this blog

Perm Root HTC Desire Gingerbread 2.3.3

[Solved] invalid partition table on /dev/sda -- wrong signature 0.

Essential adb Command Examples