046d:08b4 Logitech, Inc. QuickCam Zoom

error: pwc: isoc_init() submit_urb 0 failed with error -28

@TaG: QuickCam PwC UsB v4l

[  346.516833] pwc: isoc_init() submit_urb 0 failed with error -28
modinfo pwc | grep parm #
parm:           power_save:Turn power saving for new cameras on or off (int)
parm:           leds:LED on,off time in milliseconds (array of int)
[ 7790.352389] videodev: Linux video capture interface: v2.00
[ 7790.359040] pwc: Logitech QuickCam Zoom (new model) USB webcam detected.
[ 7790.401288] pwc: Registered as video0.
[ 7790.401362] input: PWC snapshot button as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/input/input15
[ 7790.401547] usbcore: registered new interface driver Philips webcam
sudo setpwc  sudo setpwc   -d /dev/video0 -p
setpwc v1.3, (C) 2003-2006 by folkert@vanheusden.com
Current device: Logitech QuickCam Zoom (pwc @ usb-0000:00:1d.0-1.7)
Error while doing ioctl VIDIOCPWCPROBE: Inappropriate ioctl for device
Warning: this might not be a Philips compatible webcam!
rzr@marcel:/tmp$ sudo setpwc  sudo setpwc   -d /dev/video0 -p 
setpwc v1.3, (C) 2003-2006 by folkert@vanheusden.com
Current device: Logitech QuickCam Zoom (pwc @ usb-0000:00:1d.0-1.7)
Error while doing ioctl VIDIOCPWCPROBE: Inappropriate ioctl for device
Warning: this might not be a Philips compatible webcam!
VIDIOCPWCPROBE returns:  - 0
Error while doing ioctl VIDIOCPWCGSERIAL: Inappropriate ioctl for device
Serial number: ////////////////
Resolution (x, y): 160, 120
Framerate: 45
Brightness: Brightness
  Value:   62
  Minimum: 0
  Maximum: 127
  Step:    1
  Default: 62
  Flags:   slider
Hue: VIDIOC_G_CTRL failed: Invalid argument
Colour: Saturation
  Value:   0
  Minimum: -100
  Maximum: 100
  Step:    1
  Default: 0
  Flags:   slider
Contrast: Contrast
  Value:   32
  Minimum: 0
  Maximum: 63
  Step:    1
  Default: 32
  Flags:   slider
Whiteness: Gamma
  Value:   24
  Minimum: 0
  Maximum: 31
  Step:    1
  Default: 24
  Flags:   slider
Palette: Unknown! (842093913 - YU12)
Error while doing ioctl VIDIOCPWCGCQUAL: Inappropriate ioctl for device
Compression preference: 0
Error while doing ioctl VIDIOCPWCGAGC: Inappropriate ioctl for device
Automatic gain control: 0
Error while doing ioctl VIDIOCPWCGAWB: Inappropriate ioctl for device
Whitebalance mode: indoor
Blinking of LED is not supported by the combination
of your webcam and the driver.
Error while doing ioctl VIDIOCPWCGCONTOUR: Inappropriate ioctl for device
Sharpness: 0
Error while doing ioctl VIDIOCPWCGBACKLIGHT: Inappropriate ioctl for device
Backlight compensation mode: off
Anti-flicker mode is not supported by the combination
of your webcam and the driver.
Noise reduction mode is not supported by the combination
of your webcam and the driver.
Pan/tilt range is not supported by the combination
of your webcam and the driver.
Get pan/tilt position is not supported by the combination
of your webcam and the driver.


 sudo v4l2-ctl --all -d /dev/video0
Driver Info:
        Driver name      : pwc
        Card type        : Logitech QuickCam Zoom
        Bus info         : usb-0000:00:1d.0-1.7
        Driver version   : 5.4.78
        Capabilities     : 0x85200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x05200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
Priority: 2
Video input : 0 (Camera: ok)
Format Video Capture:
        Width/Height      : 160/120
        Pixel Format      : 'YU12' (Planar YUV 4:2:0)
        Field             : None
        Bytes per Line    : 160
        Size Image        : 28800
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Limited Range)
        Flags             : 
Streaming Parameters Video Capture:
        Capabilities     : timeperframe
        Frames per second: 30.000 (30/1)
        Read buffers     : 2

User Controls

                     brightness 0x00980900 (int)    : min=0 max=127 step=1 default=62 value=62 flags=slider
                       contrast 0x00980901 (int)    : min=0 max=63 step=1 default=32 value=32 flags=slider
                     saturation 0x00980902 (int)    : min=-100 max=100 step=1 default=0 value=0 flags=slider
        white_balance_automatic 0x0098090c (menu)   : min=0 max=4 default=4 value=4 flags=update
                                0: Indoor (Incandescant Lighting) 
                                1: Outdoor (Sunlight) Mode
                                2: Indoor (Fluorescent Lighting) M
                                3: Manual Mode
                                4: Auto Mode
                    red_balance 0x0098090e (int)    : min=0 max=255 step=1 default=128 value=144 flags=inactive, slider, volatile
                   blue_balance 0x0098090f (int)    : min=0 max=255 step=1 default=128 value=132 flags=inactive, slider, volatile
                          gamma 0x00980910 (int)    : min=0 max=31 step=1 default=24 value=24 flags=slider
                       exposure 0x00980911 (int)    : min=0 max=255 step=1 default=241 value=241 flags=inactive, volatile
                 gain_automatic 0x00980912 (bool)   : default=1 value=1 flags=update
                           gain 0x00980913 (int)    : min=0 max=63 step=1 default=21 value=22 flags=inactive, volatile
         backlight_compensation 0x0098091c (bool)   : default=1 value=1
                  color_effects 0x0098091f (menu)   : min=0 max=1 default=0 value=0
                                0: None
                                1: Black & White
               band_stop_filter 0x00980921 (bool)   : default=0 value=0
                   auto_contour 0x0098f900 (bool)   : default=0 value=0 flags=update
                        contour 0x0098f901 (int)    : min=0 max=63 step=1 default=32 value=32 flags=slider
        dynamic_noise_reduction 0x0098f902 (int)    : min=0 max=3 step=1 default=1 value=1
       auto_white_balance_speed 0x0098f903 (int)    : min=1 max=32 step=1 default=1 value=1
       auto_white_balance_delay 0x0098f904 (int)    : min=0 max=63 step=1 default=0 value=0
             save_user_settings 0x0098f905 (button) : flags=write-only, execute-on-write
          restore_user_settings 0x0098f906 (button) : flags=update, write-only, execute-on-write
       restore_factory_settings 0x0098f907 (button) : flags=update, write-only, execute-on-write
046d:08b4 Logitech, Inc. QuickCam Zoom

[   17.458486] pwc: Logitech QuickCam Zoom (new model) USB webcam detected.
[   17.651437] pwc: Registered as video0.
[   17.651468] input: PWC snapshot button as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/input/input11
[   17.651612] usbcore: registered new interface driver Philips webcam


v4l2-ctl --all -d /dev/video0
Driver Info (not using libv4l2):
        Driver name   : pwc
        Card type     : Logitech QuickCam Zoom
        Bus info      : usb-0000:00:1a.0-1.5
        Driver version: 4.15.18
        Capabilities  : 0x85200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps   : 0x05200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
Priority: 2
Video input : 0 (Camera: ok)
Format Video Capture:
        Width/Height      : 640/480
        Pixel Format      : 'YU12'
        Field             : None
        Bytes per Line    : 640
        Size Image        : 460800
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Limited Range)
        Flags             : 
Streaming Parameters Video Capture:
        Capabilities     : timeperframe
        Frames per second: 15.000 (15/1)
        Read buffers     : 2

User Controls

                     brightness 0x00980900 (int)    : min=0 max=127 step=1 default=62 value=62 flags=slider
                       contrast 0x00980901 (int)    : min=0 max=63 step=1 default=32 value=32 flags=slider
                     saturation 0x00980902 (int)    : min=-100 max=100 step=1 default=0 value=0 flags=slider
        white_balance_automatic 0x0098090c (menu)   : min=0 max=4 default=4 value=4 flags=update
                    red_balance 0x0098090e (int)    : min=0 max=255 step=1 default=128 value=83 flags=inactive, slider, volatile
                   blue_balance 0x0098090f (int)    : min=0 max=255 step=1 default=128 value=130 flags=inactive, slider, volatile
                          gamma 0x00980910 (int)    : min=0 max=31 step=1 default=24 value=24 flags=slider
                       exposure 0x00980911 (int)    : min=0 max=255 step=1 default=245 value=245 flags=inactive, volatile
                 gain_automatic 0x00980912 (bool)   : default=1 value=1 flags=update
                           gain 0x00980913 (int)    : min=0 max=63 step=1 default=9 value=16 flags=inactive, volatile
         backlight_compensation 0x0098091c (bool)   : default=1 value=1
                  color_effects 0x0098091f (menu)   : min=0 max=1 default=0 value=0
               band_stop_filter 0x00980921 (bool)   : default=0 value=0
                   auto_contour 0x0098f900 (bool)   : default=0 value=0 flags=update
                        contour 0x0098f901 (int)    : min=0 max=63 step=1 default=32 value=32 flags=slider
        dynamic_noise_reduction 0x0098f902 (int)    : min=0 max=3 step=1 default=1 value=1
       auto_white_balance_speed 0x0098f903 (int)    : min=1 max=32 step=1 default=1 value=1
       auto_white_balance_delay 0x0098f904 (int)    : min=0 max=63 step=1 default=0 value=0
             save_user_settings 0x0098f905 (button) : flags=write-only, execute-on-write
          restore_user_settings 0x0098f906 (button) : flags=update, write-only, execute-on-write
       restore_factory_settings 0x0098f907 (button) : flags=update, write-only, execute-on-write

workaround:

@TaG: UdeV

#!/bin/sh

set -e
set -x
# /etc/udev/rules.d/99-local-webcam.rules

sudo=echo

$sudo sync

$sudo modprobe -r pwc
$sudo modprobe -v pwc
#DISPLAY=

dev=/dev/video0

v4l2-ctl --all -d $dev > /tmp/v4l.pre.log


killall firefox ||:

/usr/bin/v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=1 --device $dev

mplayer -vo caca tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -ss 0  -endpos 0:0:10 &
sleep 2
killall mplayer

firefox "https://app.element.io/#/room/!sedVLwgTGMxqyOfbVn:matrix.org"



file=/etc/udev/rules.d/99-video4linux.rules
ls -l $file || { cat<<EOF | sudo tee -a /etc/udev/rules.d/99-video4linux.rules ; }
SUBSYSTEM=="video4linux", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="08b4", PROGRAM="/usr/bin/v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=1 --device /dev/%k"
EOF


v4l2-ctl --all -d $dev > /tmp/v4l.post.log


diff -u  /tmp/v4l.pre.log /tmp/v4l.post.log > /tmp/v4l.diff


v4l2-ctl  -d $dev --list-formats > /tmp/formats.log

ERROR

demsg
[  207.147221] pwc: isoc_init() submit_urb 0 failed with error -28
ENOSPC 28 /* No space left on device */ 
DISPLAY= sudo mplayer -vo caca tv:// -tv driver=v4l2:width=160:height=120:device=/dev/video0
DISPLAY= sudo mplayer -vo caca tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0

@TaG: UrB

quickcam.txt · Last modified: 2022/04/16 12:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki