I've found a Ubuntu user via ubuntuforums.org that have problem with the webcam, the user have integrated webcam - Syntek USB Video Camera. He/she claimed that the webcam image turned upside down. This happen because of the vflip option..
To fix it(Syntek USB Video Camera as a example) you need to know the camera driver, in terminal type :
lsusb
udevinfo --query=all --name=/dev/video0 --attribute-walk
Example udevinfo command result :The driver for the webcam is stk11xx & has the vflip option(To check all the options the driver offers, use the command "modinfo stk11xx")
Now unload the driver and then re-load it with the vflip option, code :
sudo modprobe -r stk11xx
sudo modprobe stk11xx vflip=1
Now try with webcam app to see that the problem has solved. You can add the option to the system settings so the driver always uses it when it loads..
Code:
echo "options stk11xx vflip=1" | sudo tee -a /etc/modprobe.d/options
2 comments:
hi. Tnk u for good blog. I have Lenove IdeaPad Y510 laptop.
I tried by ur command.
Linux# modprobe -r stk11xx
FATAL: Module stk11xx not found.
root@Talst:/media/Softs/Installs/Linux# lsusb
Bus 007 Device 005: ID 5986:0200 Acer, Inc
Bus 007 Device 004: ID 1164:1f08 YUAN High-Tech Development Co., Ltd
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 004: ID 0a5c:2101 Broadcom Corp. A-Link BlueUsbA2 Bluetooth
Bus 005 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 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Linux# udevinfo --query=all --name=/dev/video0 --attribute-walk
Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1d.7/usb7/7-6/7-6:1.0/video4linux/video0':
KERNEL=="video0"
SUBSYSTEM=="video4linux"
DRIVER==""
ATTR{name}=="Lenovo Easy Camera"
ATTR{index}=="0"
looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb7/7-6/7-6:1.0/video4linux':
KERNELS=="video4linux"
SUBSYSTEMS==""
DRIVERS==""
looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb7/7-6/7-6:1.0':
KERNELS=="7-6:1.0"
SUBSYSTEMS=="usb"
DRIVERS=="uvcvideo"
ATTRS{bInterfaceNumber}=="00"
ATTRS{bAlternateSetting}==" 0"
ATTRS{bNumEndpoints}=="01"
ATTRS{bInterfaceClass}=="0e"
ATTRS{bInterfaceSubClass}=="01"
ATTRS{bInterfaceProtocol}=="00"
ATTRS{modalias}=="usb:v5986p0200d0004dcEFdsc02dp01ic0Eisc01ip00"
ATTRS{iad_bFirstInterface}=="00"
ATTRS{iad_bInterfaceCount}=="02"
ATTRS{iad_bFunctionClass}=="0e"
ATTRS{iad_bFunctionSubClass}=="03"
ATTRS{iad_bFunctionProtocol}=="00"
ATTRS{interface}=="Lenovo Easy Camera"
looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb7/7-6':
KERNELS=="7-6"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{bNumInterfaces}==" 2"
ATTRS{bConfigurationValue}=="1"
ATTRS{bmAttributes}=="80"
ATTRS{bMaxPower}=="500mA"
ATTRS{urbnum}=="16"
ATTRS{idVendor}=="5986"
ATTRS{idProduct}=="0200"
ATTRS{bcdDevice}=="0004"
ATTRS{bDeviceClass}=="ef"
ATTRS{bDeviceSubClass}=="02"
ATTRS{bDeviceProtocol}=="01"
ATTRS{bNumConfigurations}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{speed}=="480"
ATTRS{busnum}=="7"
ATTRS{devnum}=="5"
ATTRS{version}==" 2.00"
ATTRS{maxchild}=="0"
ATTRS{quirks}=="0x0"
ATTRS{authorized}=="1"
ATTRS{product}=="Lenovo Easy Camera"
looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb7':
KERNELS=="usb7"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{bNumInterfaces}==" 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{bmAttributes}=="e0"
ATTRS{bMaxPower}==" 0mA"
ATTRS{urbnum}=="58"
ATTRS{idVendor}=="1d6b"
ATTRS{idProduct}=="0002"
ATTRS{bcdDevice}=="0206"
ATTRS{bDeviceClass}=="09"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bNumConfigurations}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{speed}=="480"
ATTRS{busnum}=="7"
ATTRS{devnum}=="1"
ATTRS{version}==" 2.00"
ATTRS{maxchild}=="6"
ATTRS{quirks}=="0x0"
ATTRS{authorized}=="1"
ATTRS{manufacturer}=="Linux 2.6.27-11-generic ehci_hcd"
ATTRS{product}=="EHCI Host Controller"
ATTRS{serial}=="0000:00:1d.7"
ATTRS{authorized_default}=="1"
looking at parent device '/devices/pci0000:00/0000:00:1d.7':
KERNELS=="0000:00:1d.7"
SUBSYSTEMS=="pci"
DRIVERS=="ehci_hcd"
ATTRS{vendor}=="0x8086"
ATTRS{device}=="0x2836"
ATTRS{subsystem_vendor}=="0x17aa"
ATTRS{subsystem_device}=="0x3d88"
ATTRS{class}=="0x0c0320"
ATTRS{irq}=="23"
ATTRS{local_cpus}=="ffffffff,ffffffff"
ATTRS{local_cpulist}=="0-63"
ATTRS{modalias}=="pci:v00008086d00002836sv000017AAsd00003D88bc0Csc03i20"
ATTRS{enable}=="1"
ATTRS{broken_parity_status}=="0"
ATTRS{msi_bus}==""
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
and how to configure it!! tnx
new command is udevadm info --query=all --name=/dev/video0 --attribute-walk
didn't work for me because my driver doesn't show vflip, but good luck to the rest of you
Post a Comment