Webcam and touch screen support on RatOS
So, finally have RatOS running on a CM4. Runs great, except two little things. Before I had RatOS 1.x running on a standard Debian Bullseye, where the touch screen (https://www.amazon.de/gp/product/B08VNPYQ7Y) and the webcam (https://www.amazon.de/gp/product/B09BCYH9Q5) worked out of the box. The screen itself works with HDMI, but not the touch. Are there maybe additional packages I need to install for that?
SUNFOUNDER Raspberrry Pi 4 Touchscreen HDMI 7 Zoll 1024 × 600 LCD-B...
SUNFOUNDER Raspberrry Pi 4 Touchscreen HDMI 7 Zoll 1024 × 600 LCD-Bildschirm mit kapazitivem Display für Raspberry Pi 4B, 3B, 2B und 1 Modell B +, Windows
Webcam,Webcam mit Mikrofon,1080P Kamera mit Abdeckung,USB 2.0 Plug&...
Webcam,Webcam mit Mikrofon,1080P Kamera mit Abdeckung,USB 2.0 Plug&Play,Webcam für pc und Laptop Video Konferenzen,Online-Unterricht und Live-Streaming,Kompatibel mit Windows,Linux und MacOS,Schwarz.
3 Replies
quickest-silver•2y ago
lsusb output:
Bus 001 Device 005: ID 1d50:614e OpenMoko, Inc.
Bus 001 Device 004: ID 1d50:614e OpenMoko, Inc.
Bus 001 Device 003: ID 0c45:636b Microdia
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Microdia is the webcam, not sure if the fourth is the touch device
I can capture an image using fswebcam. Also tried adding this to /boot/config.txt:
camera="usb"
camera_usb_options="-r 1920x1080 -f 10 -d /dev/v4l/by-id/usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera_SN0001-video-index0"
but I when I look with ss -tlpn, there's nothing streaming:
root@ratos:~# ss -tlpn
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 511 0.0.0.0:80 0.0.0.0:* users:(("nginx",pid=643,fd=9),("nginx",pid=641,fd=9),("nginx",pid=640,fd=9),("nginx",pid=639,fd=9),("nginx",pid=638,fd=9))
LISTEN 0 128 0.0.0.0:7125 0.0.0.0:* users:(("python",pid=546,fd=15))
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=590,fd=3))
LISTEN 0 511 0.0.0.0:3000 0.0.0.0:* users:(("node",pid=700,fd=18))
LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=590,fd=4))
LISTEN 0 511 0.0.0.0:80 0.0.0.0:* users:(("nginx",pid=643,fd=9),("nginx",pid=641,fd=9),("nginx",pid=640,fd=9),("nginx",pid=639,fd=9),("nginx",pid=638,fd=9))
LISTEN 0 128 0.0.0.0:7125 0.0.0.0:* users:(("python",pid=546,fd=15))
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=590,fd=3))
LISTEN 0 511 0.0.0.0:3000 0.0.0.0:* users:(("node",pid=700,fd=18))
LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=590,fd=4))
quickest-silver•2y ago
got it running using this page: https://krystof.io/mjpg-streamer-on-a-raspberry-pi-zero-w-with-a-usb-webcam-streaming-setup/
Krystof.IO
MJPG-Streamer on a Raspberry Pi Zero W with a USB Webcam Streaming ...
After my recent move, the streaming and 'workshop/den/laboratory' setup has been a lot of work from the ground up on the computer system side. I used to have a
quickest-silver•2y ago
now only the touchscreen is left.
turns out the micro usb cable I was using is power only. To the bin, monster!
with that I am concluding my monologue, hoping that at least others will learn from my mistakes - as usual.