Webcam Inverted image on Eee PC

I had earlier posted this query under wrong heading (Asus Eee PC t 101mt). Re-posting with correct title. Sorry for inconvenience.

I have Asus Eee PC T 101 mt. Running SuSE Linux 11.4, KDE version 4.6.0 (Release 6).
The image from integrated webcam is inverted. The image can be upturned to correct orientation by ticking the “Upturned” effect in Webcam (wxCam) application. However, these options are not available in Skype or Google video, or probably in all other services using webcam. Other person in video chat sees my inverted image. Is there a way by which I can correct the situation?
If this is not correct forum, could anybody guide me to appropriate place?
Thanks and regards
Vikas Garud

If you open Hardware info
See what driver is being used
Like this: http://dl.dropbox.com/u/10573557/SUSE Misc/webcam_hwinfo.png

Then try this:

su -
modprobe -r <driver>

then still su -

modprobe -v <driver> vflip=1

( replace <driver> with the kernel driver you have in use, without the <>'s)

Thanks for the quick reply.

However, it did not work.

Following is output:

driver=uvcvideo

vikas@linux-aqh2:~> su
Password:
linux-aqh2:/home/vikas # modprobe -r uvcvideo
linux-aqh2:/home/vikas # modprobe -v uvcvideo vflip=1
insmod /lib/modules/2.6.37.6-0.5-desktop/kernel/drivers/media/video/v4l1-compat.ko
insmod /lib/modules/2.6.37.6-0.5-desktop/kernel/drivers/media/video/videodev.ko
insmod /lib/modules/2.6.37.6-0.5-desktop/kernel/drivers/media/video/uvc/uvcvideo.ko vflip=1
FATAL: Error inserting uvcvideo (/lib/modules/2.6.37.6-0.5-desktop/kernel/drivers/media/video/uvc/uvcvideo.ko): Unknown symbol in module, or unknown parameter (see dmesg)

Last 3 lines from dmesg are:

635.528061] usbcore: deregistering interface driver uvcvideo
655.026998] Linux video capture interface: v2.00
655.038323] uvcvideo: Unknown parameter `vflip’
linux-aqh2:/home/vikas #

What can I do further?

BTW, the webcam is not working now :frowning:

Thanks
Vikas Garud

modprobe -v uvcvideo

will get it working again
Let me look in to the options

Hi
I have a KMP module patched for earlier kernel versions to flip the video, can you provide the output from;


uname -a
lsusb

Yes, it is working again. man modprobe gave showed me the direction and your mail confirmed it.
Awaiting further guidance.
Thanks.

Here is the output, HTH.

linux-aqh2:/home/vikas # uname -a
Linux linux-aqh2.site 2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25 21:48:33 +0200 i686 i686 i386 GNU/Linux
linux-aqh2:/home/vikas # lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 13d3:5111 IMC Networks Integrated Webcam
Bus 003 Device 002: ID 0eef:480d D-WAV Scientific Co., Ltd

Thanks
Vikas Garud

Hi
OK, here are the updated modules (It may take a little while to publish, so keep checking)
software.opensuse.org: Search Results

You need to install the one called;


uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-4.1.i586.rpm

Then reboot your system.

Thanks. I tried that and got following dependency error:
uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-4.1.i586 requires kernel-desktop, but this requirement cannot be provided

According to the Yast package manager, the kernel is installed from following source package:
kernel-desktop-2.6.37.6-0.5.1

What can I try further?

Thanks
Vikas Garud

Hi
OK, made a change to the preamble file and it’s rebuilding, keep an eye out for;
uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-5.1.i586.rpm

The dependency error has now shifted to something else:
uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-5.1.i586 requires ksym(desktop:video_unregister_device) = 18b86b56, but this requirement cannot be provided

Thanks and regards
Vikas Garud

Strange indeed, I just tested it here on my ASUS 1000HE and it installed and inverted the video, I’m using the default kernel though.

How are you installing it?

Can you post the output from;


lsmod |grep uvc

The output:
vikas@linux-aqh2:~> lsmod |grep uvc
uvcvideo 64293 0
videodev 72163 1 uvcvideo
v4l1_compat 15285 2 uvcvideo,videodev

For installation:
I have clicked on the rpm file; Firefox asks what to do with file > Respond with open with KPackageKit (Default).
The file is downloaded, KPackageKit checks for dependencies and gives the error message.

So far as my installation is concerned, it is default for the laptop - I mean I have not made any changes to any settings while installing the SuSE 11.4 from the downloaded DVD.

Does this help?

Thanks and Regards
Vikas Garud

Hi
Looks ok, I get;


lsmod |grep uvc
uvcvideo               64005  0 
videodev               71971  1 uvcvideo
v4l1_compat            14933  2 uvcvideo,videodev
usbcore               181694  8 uvcvideo,usb_storage,btusb,uas,usbhid,uhci_hcd,ehci_hcd

Now can you just click on the rpm and manually download, then try;


zypper in uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-5.1.i586.rpm

The package has meanwhile changed to
uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-6.1.i586.rpm
From
uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-5.1.i586.rpm

I’m trying with this new version. Is it likely to cause any problem?

I’ll post the results with the trial in short while.

Thanks and regards
Vikas Garud

The output of zypper is as follows:

linux-aqh2:/home/vikas/Downloads # zypper in uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-6.1.i586.rpm
Retrieving repository ‘home:malcolmlewis:KMP’ metadata [done]
Building repository ‘home:malcolmlewis:KMP’ cache [done]
Loading repository data…
Reading installed packages…
Resolving package dependencies…

Problem: uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-6.1.i586 requires kernel-desktop, but this requirement cannot be provided
uninstallable providers: kernel-desktop-2.6.37.1-1.2.2.i586[repo-oss]
Solution 1: do not install uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-6.1.i586
Solution 2: break uvcvideo-kmp-desktop by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): 1
Resolving dependencies…
Resolving package dependencies…

Nothing to do.

Should I choose to break uvcvideo-kmp-desktop by ignoring some of its dependencies (Option 2) and try again?

Thanks and regards
Vikas Garud

First of all, thanks to malcolmlewis to build this package, because I´ve also such a webcam.

lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 13d3:5130 IMC Networks 
Bus 004 Device 002: ID 046d:c040 Logitech, Inc. Corded Tilt-Wheel Mouse

This webcam now works fine with your uvc-packet.

But I had the same issues to install it with Yast or zypper. This was also in OpenSuse 11.3.

So I downloaded the scr.rpm and built the kernel-module with rpmbuild --rebuild uvcvideo-0.1.0-6.1.src.rpm and installed it with rpm -ivh uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-6.1.x86_64.rpm.

Thanks for the info.

rpmbuild --rebuild uvcvideo-0.1.0-6.1.src.rpm gives me following error.

linux-aqh2:/home/vikas/Utilities/UVC # rpmbuild --rebuild uvcvideo-0.1.0-6.1.src.rpm
Installing uvcvideo-0.1.0-6.1.src.rpm
error: line 96: Unknown tag: %suse_kernel_module_package -n uvcvideo -x desktop default pae -p /usr/src/packages/SOURCES/preamble kdump um

What should I expect with this command?

I am novice, please pardon my basic questions.

Thanks and regards
Vikas Garud

You have to install:
Yast—Software—Pattern—RPM build Environment and
kernel-source
kernel-devel
kernel-syms
The Version of these depends to

uname -a

Then in the directory where the uvcvideo-0.1.0-6.1.src.rpm is:

rpmbuild --rebuild uvcvideo-0.1.0-6.1.src.rpm
cd /usr/src/packages/RPMS/i586
rpm -ivh uvcvideo-kmp-desktop-0.1.0_k2.6.37.6_0.5-6.1.i586.rpm

You must install the appropriate package for your kernel. (desktop, pae, default)

Hi
It’s a strange one indeed, yes I made some further changes just on the preamble file and all three differing versions installed fine on my netbook. The only difference is I have the default kernel, not desktop.

As you indicated, looks like rebuilding the src rpm locally seems to be the way to go, very strange.