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
Fortunately Hans de Goede came with a beautiful solution.
Open Terminal and add libv4l ppa
sudo add-apt-repository ppa:libv4l/ppaUpdate your software list
sudo aptitude updateInstall libv4l
sudo aptitude install libv4l-0You have to use the following command to open any application that uses webcam
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so application_nameIf you use 64 bit system, use the following command
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so application_name
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)]?
ReplyDeletei have a same problem
ReplyDelete@Anonymouse, Make a bash script with that command and set your menu to run that bash script rather.
ReplyDelete@Nuclidem, so is it solved now ?
i created small script
ReplyDelete#!/bin/sh
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
it solved this
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.
ReplyDeletegRTz ben
This comment has been removed by the author.
ReplyDeleteIt didn't work!
ReplyDeleteIt also runs upside down with this command. I tried chesse with the following:
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so cheese
One should create a launcher from System>Preferences>Main Menu ..but I do not remember how to do that ..Anyone else can help us ?
ReplyDeleteRight click the menu and choose edit menu.
ReplyDeleteI know so far...What is the command for this launcher
ReplyDeletename: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...
Ok, I changed the script to what you proposed and now works perfect ...Thanks a lot dude !!!
ReplyDeleteWorks here too on Asus K51A /sent the devel. files month or so ago :)/
ReplyDeletea real simple and working solution (ASUS K52J). Thanks man!
ReplyDeleteHi.Same error after 10 years, in Ubuntu 18.04 64 bits, but ¡thank you! your simple fix still works, directly, with out updating, just:
ReplyDeleteLD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so aplication_name