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/ application_name
If you use 64 bit system, use the following command
LD_PRELOAD=/usr/lib32/libv4l/ application_name


  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/ 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/" (No such file or directory)]?

  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 ?

  3. i created small script

    LD_PRELOAD=/usr/lib/libv4l/ skype

    it solved this

  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

  5. This comment has been removed by the author.

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

  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 ?

  8. Right click the menu and choose edit menu.

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

    command: ?

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

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

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

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

  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/ aplication_name


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.

Lenovo Y510 surround sound in Ubuntu