2nd webcam issues

OK...
Could you run systemctl disable --now webcamd.service and reboot the Pi. Do the LED turn on on both of the webcams once the Pi is restarted and do they stay on ? The command disables the streaming of webcams, so you won't see anything on OctoPrint. But I'd like to see if they both stay on or not, even without the streaming service.

pi@octopi:~ $ systemctl disable --now webcamd.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ===
Removed /etc/systemd/system/multi-user.target.wants/webcamd.service.
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to stop 'webcamd.service'.
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ===
pi@octopi:~ $ sudo reboot
[sudo] password for pi:

only the logitech c922 light turned on and stayed on this time.

So basically, one or the other turns on when the Pi starts...

How many USB ports does your Pi have ?

right now just seems like the 922. and 2 usb 2.0 and 2 3.0 its a raspberry pi4b

Just trying to get the obvious out of the way. What happens when you boot the Pi if the printer isn't connected ?

just tried plugging both camera into my laptop just to confirm once more and both work fine.

just tried. same thing the c922 lights up but not the 920

On which ports are the cameras connected ?

tried a mix of everything. both on 3.0, both on 2.0 and 1 on each.

with the same results I assume ?

yes, correct

Could you try running the v4l2-ctl -L -d /dev/v4l/by-id/*-index0 command, with each one of the webcam, and with only one camera at a time connected to the Pi ?

with only the 920 plugged in.

pi@octopi:~ $ v4l2-ctl -L -d /dev/v4l/by-id/*-index0
                     brightness 0x00980900 (int)    : min=0 max=255 step=1 defau                                                                                                             lt=128 value=128
                       contrast 0x00980901 (int)    : min=0 max=255 step=1 defau                                                                                                             lt=128 value=128
                     saturation 0x00980902 (int)    : min=0 max=255 step=1 defau                                                                                                             lt=128 value=128
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                           gain 0x00980913 (int)    : min=0 max=255 step=1 defau                                                                                                             lt=0 value=255
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 valu                                                                                                             e=2
                                0: Disabled
                                1: 50 Hz
                                2: 60 Hz
      white_balance_temperature 0x0098091a (int)    : min=2000 max=6500 step=1 d                                                                                                             efault=4000 value=3155 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=255 step=1 defau                                                                                                             lt=128 value=128
         backlight_compensation 0x0098091c (int)    : min=0 max=1 step=1 default                                                                                                             =0 value=0
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 valu                                                                                                             e=3
                                1: Manual Mode
                                3: Aperture Priority Mode
              exposure_absolute 0x009a0902 (int)    : min=3 max=2047 step=1 defa                                                                                                             ult=250 value=1000 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                   pan_absolute 0x009a0908 (int)    : min=-36000 max=36000 step=                                                                                                             3600 default=0 value=0
                  tilt_absolute 0x009a0909 (int)    : min=-36000 max=36000 step=                                                                                                             3600 default=0 value=0
                 focus_absolute 0x009a090a (int)    : min=0 max=250 step=5 defau                                                                                                             lt=0 value=40 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=100 max=500 step=1 def                                                                                                             ault=100 value=100

with only the 922 plugged in.

pi@octopi:~ $  v4l2-ctl -L -d /dev/v4l/by-id/*-index0
                     brightness 0x00980900 (int)    : min=0 max=255 step=1 default=128 value=128
                       contrast 0x00980901 (int)    : min=0 max=255 step=1 default=128 value=128
                     saturation 0x00980902 (int)    : min=0 max=255 step=1 default=128 value=128
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                           gain 0x00980913 (int)    : min=0 max=255 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
                                0: Disabled
                                1: 50 Hz
                                2: 60 Hz
      white_balance_temperature 0x0098091a (int)    : min=2000 max=6500 step=1 default=4000 value=4000 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=255 step=1 default=128 value=128
         backlight_compensation 0x0098091c (int)    : min=0 max=1 step=1 default=0 value=0
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
                                1: Manual Mode
                                3: Aperture Priority Mode
              exposure_absolute 0x009a0902 (int)    : min=3 max=2047 step=1 default=250 value=250 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                   pan_absolute 0x009a0908 (int)    : min=-36000 max=36000 step=3600 default=0 value=0
                  tilt_absolute 0x009a0909 (int)    : min=-36000 max=36000 step=3600 default=0 value=0
                 focus_absolute 0x009a090a (int)    : min=0 max=250 step=5 default=0 value=0 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=100 max=500 step=1 default=100 value=100

both plugged in

pi@octopi:~ $ v4l2-ctl -L -d /dev/v4l/by-id/*-index0
unknown arguments: /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_A69AE6FF-video-index0

General/Common options:
  --all              display all information available
  -C, --get-ctrl <ctrl>[,<ctrl>...]
                     get the value of the controls [VIDIOC_G_EXT_CTRLS]
  -c, --set-ctrl <ctrl>=<val>[,<ctrl>=<val>...]
                     set the value of the controls [VIDIOC_S_EXT_CTRLS]
  -D, --info         show driver info [VIDIOC_QUERYCAP]
  -d, --device <dev> use device <dev> instead of /dev/video0
                     if <dev> starts with a digit, then /dev/video<dev> is used
  -e, --out-device <dev> use device <dev> for output streams instead of the
                     default device as set with --device
                     if <dev> starts with a digit, then /dev/video<dev> is used
  -h, --help         display this help message
  --help-all         all options
  --help-io          input/output options
  --help-meta        metadata format options
  --help-misc        miscellaneous options
  --help-overlay     overlay format options
  --help-sdr         SDR format options
  --help-selection   crop/selection options
  --help-stds        standards and other video timings options
  --help-streaming   streaming options
  --help-subdev      sub-device options
  --help-tuner       tuner/modulator options
  --help-vbi         VBI format options
  --help-vidcap      video capture format options
  --help-vidout      vidout output format options
  --help-edid        edid handling options
  -k, --concise      be more concise if possible.
  -l, --list-ctrls   display all controls and their values [VIDIOC_QUERYCTRL]
  -L, --list-ctrls-menus
                     display all controls and their menus [VIDIOC_QUERYMENU]
  -r, --subset <ctrl>[,<offset>,<size>]+
                     the subset of the N-dimensional array to get/set for control <ctrl>,
                     for every dimension an (<offset>, <size>) tuple is given.
  -w, --wrapper      use the libv4l2 wrapper library.
  --list-devices     list all v4l devices
  --log-status       log the board status in the kernel log [VIDIOC_LOG_STATUS]
  --get-priority     query the current access priority [VIDIOC_G_PRIORITY]
  --set-priority <prio>
                     set the new access priority [VIDIOC_S_PRIORITY]
                     <prio> is 1 (background), 2 (interactive) or 3 (record)
  --silent           only set the result code, do not print any messages
  --sleep <secs>     sleep <secs>, call QUERYCAP and close the file handle
  --verbose          turn on verbose ioctl status reporting

also now after plugging both back into usb 2.0 ports the 920 is on and the c922 is off

also i can still see the one camera (c920 since its connected) on octoprint.

That's strange, it shouldn't show up since the systemctl disable command... What's the output of systemctl status webcamd.service ?

pi@octopi:~ $ systemctl status webcamd.service
● webcamd.service - the OctoPi webcam daemon with the user specified config
Loaded: loaded (/etc/systemd/system/webcamd.service; disabled; vendor preset: enabled)
Active: inactive (dead)

Could you try ps aux|grep mjpg please ? And copy here the output.

pi@octopi:~ $ ps aux|grep mjpg
pi 2187 0.0 0.0 7348 512 pts/1 S+ 17:08 0:00 grep --color=auto mjpg

and sudo netstat -4anp -t |grep 8080 ? sudo netstat -4anp -t |grep 8081 ?

pi@octopi:~ $ sudo netstat -4anp -t |grep 8080 ? sudo netstat -4anp -t |grep 8081
grep: invalid option -- 'p'
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
[sudo] password for pi:

those are two separate commands:

  • sudo netstat -4anp -t |grep 8080
  • sudo netstat -4anp -t |grep 8081