Was working - what did I do?

I setup OctoPrint via OctoPI today. After a print I shutdown the RPI 3B and installed the camera, everything working fine and camera was found in OctoPrint. After being off for a while I tried installing a touch screen to the RPI, booting it up and running the instructions on GitHub - goodtft/LCD-show: 2.4" 2.8"3.2" 3.5" 5.0" 7.0" TFT LCD driver for the Raspberry PI 3B+/A/A+/B/B+/PI2/ PI3/ZERO/ZERO W with the script being LCD-show/LCD35-show at 1bba9d97a4e779237f3144d035c409ed3a3b2f45 · goodtft/LCD-show · GitHub. I suspect this altered something, but am not Linux savvy enough to know if that was the problem.

Camera model Raspberry PI cam 1.3

What is the problem? Webcam not recognised by OctoPrint

What did you already try to solve it? Reboot

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)

webcams.log when it worked:

Starting up webcamDaemon...

--- Configuration: ----------------------------

cfg_file: /boot/octopi.txt

camera: auto

usb options: -r 640x480 -f 10

raspi options: -fps 10

http options: -w ./www-octopi -n --listen 127.0.0.1

Explicitly USB device:

-----------------------------------------------

Found video devices:

/dev/video0

/dev/video10

/dev/video11

/dev/video12

/dev/video13

/dev/video14

/dev/video15

/dev/video16

raspi

config file='/boot/octopi.txt':USB device was not set in options, start MJPG-strea$

<13>Jul 30 16:47:48 root: Starting USB webcam

Checking for VL805 (Raspberry Pi 4)...

- It seems that you don't have VL805 (Raspberry Pi 4).

There should be no problems with USB (a.k.a. select() timeout)

Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n --listen 127.0.0.1 -i$

MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34

i: Using V4L2 device.: /dev/video0

i: Desired Resolution: 640 x 480

i: Frames Per Second.: 10

i: Format............: JPEG

i: TV-Norm...........: DEFAULT

UVCIOC_CTRL_ADD - Error at Pan (relative): Inappropriate ioctl for device (25)

UVCIOC_CTRL_ADD - Error at Tilt (relative): Inappropriate ioctl for device (25)

UVCIOC_CTRL_ADD - Error at Pan Reset: Inappropriate ioctl for device (25)

UVCIOC_CTRL_ADD - Error at Tilt Reset: Inappropriate ioctl for device (25)

UVCIOC_CTRL_ADD - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)

UVCIOC_CTRL_ADD - Error at Focus (absolute): Inappropriate ioctl for device (25)

UVCIOC_CTRL_MAP - Error at Pan (relative): Inappropriate ioctl for device (25)

UVCIOC_CTRL_MAP - Error at Tilt (relative): Inappropriate ioctl for device (25)

UVCIOC_CTRL_MAP - Error at Pan Reset: Inappropriate ioctl for device (25)

UVCIOC_CTRL_MAP - Error at Tilt Reset: Inappropriate ioctl for device (25)

UVCIOC_CTRL_MAP - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)

UVCIOC_CTRL_MAP - Error at Focus (absolute): Inappropriate ioctl for device (25)

UVCIOC_CTRL_MAP - Error at LED1 Mode: Inappropriate ioctl for device (25)

UVCIOC_CTRL_MAP - Error at LED1 Frequency: Inappropriate ioctl for device (25)

UVCIOC_CTRL_MAP - Error at Disable video processing: Inappropriate ioctl for devic$

UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Inappropriate ioctl for device (25)

o: www-folder-path......: ./www-octopi/

o: HTTP TCP port........: 8080

o: HTTP Listen Address..: 127.0.0.1

o: username:password....: disabled

o: commands.............: disabled

Done bring up all configured video device

Goodbye...

webcams.log now:

Starting up webcamDaemon...

--- Configuration: ----------------------------

cfg_file: /boot/octopi.txt

camera: auto

usb options: -r 640x480 -f 10

raspi options: -fps 10

http options: -w ./www-octopi -n --listen 127.0.0.1

Explicitly USB device:

-----------------------------------------------

Found video devices:

/dev/video10

/dev/video11

/dev/video12

/dev/video13

/dev/video14

/dev/video15

/dev/video16

config file='/boot/octopi.txt':USB device was not set in options, start MJPG-strea$

/root/bin/webcamd: line 184: printf: 0x: invalid hex number

/root/bin/webcamd: line 184: printf: 0x: invalid hex number

<13>Jul 30 19:21:20 root: Starting USB webcam

Checking for VL805 (Raspberry Pi 4)...

- It seems that you don't have VL805 (Raspberry Pi 4).

There should be no problems with USB (a.k.a. select() timeout)

Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n --listen 127.0.0.1 -i$

MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34

i: Using V4L2 device.: /dev/video10

i: Desired Resolution: 640 x 480

i: Frames Per Second.: 10

i: Format............: JPEG

i: TV-Norm...........: DEFAULT

Error opening device /dev/video10: video capture not supported.

Init v4L2 failed !! exit fatal

i: init_VideoIn failed

Done bring up all configured video device

Goodbye...

**Additional information about your setup** (OctoPrint version, OctoPi version, ...)

I read some other threads and came over the vcgencmd get_camera command which resulted in supported=0 detected=0. I then ran sudo raspi-config and tried to enable the camera. That worked fine actually. Up running again :slight_smile:

2 Likes