Full webcam resolution not available

Asked by Apizzi

So I'm trying to get my Logitech C615 working with my Ubuntu 14.03 LTS install. It works, but every app I've tried limits the resolution to 640x480. I even tried this on my desktop install and got the same issue. I know the webcam works, I get full 1080p on my Win 7 machine, but I can't find any info anywhere about this problem. Anyone know how to get the max resolution out of a webcam? I've also tried this webcam in CentOS 4.1 and it works at full resolution, so I think this is a Ubuntu problem.

uname -a

Linux tegra-ubuntu 3.10.67-gcdddc52 #1 SMP PREEMPT Mon Nov 9 13:16:26 PST 2015 aarch64 aarch64 aarch64 GNU/Linux

dmesg

[ 8732.682782] usb 2-3.2: USB disconnect, device number 4

[ 9758.331907] usb 2-3.2: new full-speed USB device number 6 using tegra-xhci

[ 9758.358090] usb 2-3.2: not running at top speed; connect to a high speed hub

[ 9758.460720] usb 2-3.2: New USB device found, idVendor=046d, idProduct=082c

[ 9758.460857] usb 2-3.2: New USB device strings: Mfr=0, Product=2, SerialNumber=1

[ 9758.460963] usb 2-3.2: Product: HD Webcam C615

[ 9758.461054] usb 2-3.2: SerialNumber: EED7BD40

[ 9758.780711] uvcvideo: Found UVC 1.00 device HD Webcam C615 (046d:082c)

[ 9758.797749] input: HD Webcam C615 as /devices/platform/tegra-xhci/usb2/2-3/2-3.2/2-3.2:1.2/input/input5

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Apizzi
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; lsusb

Thanks

Revision history for this message
Apizzi (apizzi) said :
#2

Hey actionparsnip, thanks for replying.

lsb_release -a gives

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

I should note that this Ubuntu install is a customized version provided by Nvidia through their Jetson Jetpack

https://developer.nvidia.com/embedded/jetson-development-pack

and lsusb gives

Bus 001 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0955:09ff NVidia Corp.
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 046d:082c Logitech, Inc.
Bus 002 Device 004: ID 046d:c063 Logitech, Inc. DELL Laser Mouse
Bus 002 Device 003: ID 0451:1446 Texas Instruments, Inc. TUSB2040/2070 Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you search for the ID:

046d:082c

With respect to Ubuntu, you may find guides. You may want to report a bug as well.

Revision history for this message
Apizzi (apizzi) said :
#4

I've seen many people discuss how the C615 worked out of the box but not many people complaining of limited resolution. Could you perhaps link to a discussion where someone had a similar issue to mine and resolved it?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

I will shortly. I'm just going to search the same Internet that you access....

Revision history for this message
Apizzi (apizzi) said :
#6

Please, Andrew, you type as if I haven't spent the last 3 days on google. The whole reason I bought the thing is because I saw plenty of forum posts stating the C615 worked flawless out of the packaging. So you can imagine my frustration when I go back to google and find nothing on webcams under reporting their resolution. Solve this problem for me and I'll eat my words.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

What is the output of:

lsmod | grep uvc

Thanks

Revision history for this message
Apizzi (apizzi) said :
#8

"lsmod" gives

Module Size Used by
rfcomm 65526 0
bnep 14792 2
bcmdhd 7445623 0
cfg80211 451262 1 bcmdhd
nvhost_vi 5087 0
bluedroid_pm 11252 0

and "modprobe uvc" gives

FATAL: Module uvc not found.

That's weird. I read on the UVC website that all distributions after 2.6 have UVC natively.

Revision history for this message
Apizzi (apizzi) said :
#9

I just tried installing the UVC driver wit the following

git clone --depth=1 git://linuxtv.org/media_build.git
cd media_build
./build

and this was part of the output

******************
* Start building *
******************
make -C /home/ubuntu/videodriver/media_build/v4l allyesconfig
make[1]: Entering directory `/home/ubuntu/videodriver/media_build/v4l'
No version yet, using 3.10.67-gcdddc52
make[1]: Leaving directory `/home/ubuntu/videodriver/media_build/v4l'
make[1]: Entering directory `/home/ubuntu/videodriver/media_build/v4l'
make[2]: Entering directory `/home/ubuntu/videodriver/media_build/linux'
Applying patches for kernel 3.10.67-gcdddc52
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/debug.patch
patch -s -f -N -p1 -i ../backports/drx39xxj.patch
patch -s -f -N -p1 -i ../backports/v4.5_gpiochip_data_pointer.patch
patch -s -f -N -p1 -i ../backports/v4.4_gpio_chip_parent.patch
patch -s -f -N -p1 -i ../backports/v4.1_pat_enabled.patch
patch -s -f -N -p1 -i ../backports/v4.0_dma_buf_export.patch
patch -s -f -N -p1 -i ../backports/v4.0_drop_trace.patch
patch -s -f -N -p1 -i ../backports/v4.0_fwnode.patch
patch -s -f -N -p1 -i ../backports/v3.19_get_user_pages_locked.patch
patch -s -f -N -p1 -i ../backports/v3.17_fix_clamp.patch
patch -s -f -N -p1 -i ../backports/v3.16_netdev.patch
patch -s -f -N -p1 -i ../backports/v3.16_wait_on_bit.patch
patch -s -f -N -p1 -i ../backports/v3.16_void_gpiochip_remove.patch
patch -s -f -N -p1 -i ../backports/v3.12_kfifo_in.patch
patch -s -f -N -p1 -i ../backports/v3.11_dev_groups.patch
patch -s -f -N -p1 -i ../backports/v3.10_fw_driver_probe.patch
patch -s -f -N -p1 -i ../backports/v3.10_ir_hix5hd2.patch
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[2]: Leaving directory `/home/ubuntu/videodriver/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/3.10.67-gcdddc52/build /lib/modules/3.10.67-gcdddc52/build 1
Preparing to compile for kernel version 3.10.67

***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.

If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.

Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:

cp /boot/config-`uname -r` <your kernel dir>/.config
cd <your kernel dir>
make all modules_install install

Please see your distro's web site for instructions to build a new kernel.

WARNING: This is the V4L/DVB backport tree, with experimental drivers
         backported to run on legacy kernels from the development tree at:
                http://git.linuxtv.org/media-tree.git.
         It is generally safe to use it for testing a new driver or
         feature, but its usage on production environments is risky.
         Don't use it in production. You've been warned.
V4L2_FLASH_LED_CLASS: Requires at least kernel 3.18.0
RC_ST: Requires at least kernel 3.15.0
VIDEO_FB_IVTV: Requires at least kernel 3.11.0
DVB_PT3: Requires at least kernel 3.11.0
VIDEO_XILINX: Requires at least kernel 3.17.0
RADIO_SI4713: Requires at least kernel 3.13.0
I2C_SI4713: Requires at least kernel 3.17.0
VIDEO_ADV7604: Requires at least kernel 3.17.0
VIDEO_TC358743: Requires at least kernel 3.17.0
VIDEO_TVP5150: Requires at least kernel 3.17.0
VIDEO_MT9P031: Requires at least kernel 3.17.0
VIDEO_MT9V032: Requires at least kernel 3.19.0
VIDEO_SMIAPP: Requires at least kernel 4.0.0
VIDEO_ADP1653: Requires at least kernel 3.17.0
SOC_CAMERA_OV2640: Requires at least kernel 3.17.0
Created default (all yes) .config file
./scripts/fix_kconfig.pl
make[1]: Leaving directory `/home/ubuntu/videodriver/media_build/v4l'
make -C /home/ubuntu/videodriver/media_build/v4l
make[1]: Entering directory `/home/ubuntu/videodriver/media_build/v4l'
scripts/make_makefile.pl
./scripts/make_myconfig.pl
make[1]: Leaving directory `/home/ubuntu/videodriver/media_build/v4l'
make[1]: Entering directory `/home/ubuntu/videodriver/media_build/v4l'
perl scripts/make_config_compat.pl /lib/modules/3.10.67-gcdddc52/build ./.myconfig ./config-compat.h
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/home/ubuntu/videodriver/media_build/v4l/firmware'
make[2]: Leaving directory `/home/ubuntu/videodriver/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory `/home/ubuntu/videodriver/media_build/v4l/firmware'
  CC ihex2fw
Generating vicam/firmware.fw
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory `/home/ubuntu/videodriver/media_build/v4l/firmware'
Kernel build directory is /lib/modules/3.10.67-gcdddc52/build
make -C ../linux apply_patches
make[2]: Entering directory `/home/ubuntu/videodriver/media_build/linux'
Patches for 3.10.67-gcdddc52 already applied.
make[2]: Leaving directory `/home/ubuntu/videodriver/media_build/linux'
make -C /lib/modules/3.10.67-gcdddc52/build SUBDIRS=/home/ubuntu/videodriver/media_build/v4l modules
make[2]: Entering directory `/usr/src/linux-headers-3.10.67-gcdddc52'
  CC [M] /home/ubuntu/videodriver/media_build/v4l/altera-lpt.o
gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[3]: *** [/home/ubuntu/videodriver/media_build/v4l/altera-lpt.o] Error 1
make[2]: *** [_module_/home/ubuntu/videodriver/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.10.67-gcdddc52'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/ubuntu/videodriver/media_build/v4l'
make: *** [all] Error 2
build failed at ./build line 491.

Revision history for this message
Apizzi (apizzi) said :
#10

Anyone experience anything like this?

Revision history for this message
Apizzi (apizzi) said :
#11

I think this is an issue with the UVC driver but I wouldn't know how to diagnose this.

Revision history for this message
Apizzi (apizzi) said :
#12

I did a system update and now everything works. I fucking hate linux....

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

Same happens in Windows dude.

Revision history for this message
Apizzi (apizzi) said :
#14

Not Linux's fault. Don't use USB 1.1 hubs with your high resolution camera.