Upside-down cam image Asus P52F openSUSE 11.3

Hi guys,
I ask for your help because I have a problem with the webcam of my new laptop Asus P52F: the images are flipped in any application that use the webcam (skype, ekiga, cheese).
I’ve searched on the web and I’ve found this:

[kubuntu] [HOW-TO] Upside-down image from UVC webcam - Ubuntu Forums](http://ubuntu-virginia.ubuntuforums.org/showthread.php?t=838210)

The output of lsusb is:

paopez@linux-0s2k:~> lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020  
Bus 001 Device 003: ID 13d3:5130 IMC Networks 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8087:0020  

The cam code is 13d3:5130, code that appears on this page:

Linux UVC driver & tools

The problem is that I could not understand how to use the information in the first link and adapt them to opensuse.

Thanks in advance for your help!

Do not follow the HOWTO. The file to be patched is now part of the kernel at

/usr/src/linux/drivers/media/video/uvc/uvc_video.c

Of course you have to install the kernel source to find it. Then you would have to apply the patch manually and recompile the kernel.

Some apps like guvcview and fswebcam allow you to flip the image. I don’t know for those you mentioned, but did you look for any such option?

Hi vodoo,

Do not follow the HOWTO. The file to be patched is now part of the kernel at

Code:

/usr/src/linux/drivers/media/video/uvc/uvc_video.c

Of course you have to install the kernel source to find it. Then you would have to apply the patch manually and recompile the kernel.

I’m a newbie, can you help me explaining step by step the procedure to do?:shame:

Open a terminal window and do:


kdesu 'kwrite /etc/profile.local' (on KDE)
gnomesu 'gedit /etc/profile.local' (on Gnome)
(enter rootpassword when asked for)

This opens an editor with an empty file. Copy and paste the next line in the file:


export LIBV4LCONTROL_FLAGS=1 && LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

Save the file, close the editor, reboot and see if this changes things. If not, change …FLAGS=1 to …FLAGS=2, using the mentioned editor command.

Open a terminal window and do:
Code:

gnomesu 'gedit /etc/profile.local' (on Gnome)
(enter rootpassword when asked for)

When I do this nothing happens, I’ve searched manually and I found only

/etc/profile

and

/etc/profile.d/

Have you got any idea about?

Is anybody out there?:frowning:
please…

I tried to do what you recommended to me:

Open a terminal window and do:
Code:

kdesu 'kwrite /etc/profile.local' (on KDE)
gnomesu 'gedit /etc/profile.local' (on Gnome)
(enter rootpassword when asked for)

This opens an editor with an empty file. Copy and paste the next line in the file:
Code:

export LIBV4LCONTROL_FLAGS=1 && LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

Save the file, close the editor, reboot and see if this changes things. If not, change …FLAGS=1 to …FLAGS=2, using the mentioned editor command.

Now, when I type in the terminal

gnomesu 'gedit /etc/profile.local'

nothing seems to happen.
So I tried to log in as root, opened gedit, and saved a file as “profile.local” with this content

export LIBV4LCONTROL_FLAGS=1 && LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

in the folder /etc.
Then rebooted the machine but nothing has changed (same thing with FLAGS=2).

Now I ask you: is this a correct procedure?

I would try to practice also voodo solution but I don’t know how to do it.

Thanks again for your patience, I’m trying to do my best.

Hi guys,
I’ve got a good news: now the webcam works well with

export LIBV4LCONTROL_FLAGS=1 && LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

(it had to be made executable) :shame:
but whet I use skype the image is still upside down.
Any idea?

Thanks a lot!

Hi did you find any solution? I found something about it and it has been solved this same problem for me;)

Add the line which is shown below to before your “skype” command.
export LIBV4LCONTROL_FLAGS=3 && LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

and complete command should be like that:
export LIBV4LCONTROL_FLAGS=3 && LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

of course you have to install “libv4l” package as well…:wink:

Take care and have a lot’s of fun with Linux <B-)

However this solution is much better please do it and it will solve problem of your webcam wihch has upside-down problem :wink:

open a user console and give this command:
~> gedit .bashrc

after it opens the .bashrc file than add these lines at the end of it.
export LIBV4LCONTROL_FLAGS=2
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

save the file and close it. after these processes please restart your session on your machine or just restart your computer. That’s it… You do not need to write anything before your skype command anymore…

Sincerely,

I tried this using path /usr/lib64…
No way, webcam won’t be activated. If I remove these lines, I get webcam working again, but obviously with upside-down image.

This is a old thread, so maybe better start one for new.
I think you are not using openSUSE 11.3 right now, but openSUSE 13.1

Did you try the advice of Knurpt?

Open a terminal window and do:

 kdesu 'kwrite /etc/profile.local' (on KDE)

gnomesu ‘gedit /etc/profile.local’ (on Gnome)

(enter rootpassword when asked for)

This opens an editor with an empty file. Copy and paste the next line in the file:

 Code:
 export LIBV4LCONTROL_FLAGS=1 && LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so 

Save the file, close the editor, reboot and see if this changes things. If not, change …FLAGS=1 to …FLAGS=2, using the mentioned editor command.