Public bug reported:

jlquinn@cerberus:~/sw/src/libcamera$ lsb_release -rd
No LSB modules are available.
Description:    Ubuntu 24.04.2 LTS
Release:        24.04
jlquinn@cerberus:~/sw/src/libcamera$ apt-cache policy pkgname libcamera0.2
libcamera0.2:
  Installed: 0.2.0-3fakesync1build6
  Candidate: 0.2.0-3fakesync1build6
  Version table:
 *** 0.2.0-3fakesync1build6 500
        500 http://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status
N: Unable to locate package pkgname


I'm trying to get a webcam working and having no success.  I don't know if 
libcamera is the right component to put this against, but I'm starting here.

When I plug in the camera, the logs show:

```
May 12 14:31:09 cerberus kernel: usb 3-11.3: new high-speed USB device number 
32 using xhci_hcd
May 12 14:31:10 cerberus kernel: usb 3-11.3: New USB device found, 
idVendor=26e0, idProduct=6230, bcdDevice= 1.00
May 12 14:31:10 cerberus kernel: usb 3-11.3: New USB device strings: Mfr=2, 
Product=1, SerialNumber=3
May 12 14:31:10 cerberus kernel: usb 3-11.3: Product: L01 HD Webcam  
May 12 14:31:10 cerberus kernel: usb 3-11.3: Manufacturer: Sonix Technology 
Co., Ltd.
May 12 14:31:10 cerberus kernel: usb 3-11.3: SerialNumber: SN0001
May 12 14:31:10 cerberus kernel: usb 3-11.3: Found UVC 1.00 device L01 HD 
Webcam   (26e0:6230)
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_INFO) UVC 
control 5 on unit 1: 0 (exp. 1).
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_INFO) UVC 
control 7 on unit 1: 0 (exp. 1).
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_INFO) UVC 
control 9 on unit 1: 0 (exp. 1).
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_INFO) UVC 
control 10 on unit 1: 0 (exp. 1).
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_INFO) UVC 
control 12 on unit 1: 0 (exp. 1).
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_INFO) UVC 
control 14 on unit 1: 0 (exp. 1).
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_INFO) UVC 
control 16 on unit 1: 0 (exp. 1).
May 12 14:31:10 cerberus kernel: usb 3-11.3: 3:1: cannot get freq at ep 0x84
May 12 14:31:10 cerberus mtp-probe[83099]: checking bus 3, device 32: 
"/sys/devices/pci0000:00/0000:00:14.0/usb3/3-11/3-11.3"
May 12 14:31:10 cerberus mtp-probe[83099]: bus: 3, device: 32 was not an MTP 
device
May 12 14:31:10 cerberus pipewire[15704]: spa.v4l2: '/dev/video0' 
VIDIOC_QUERYCTRL: Broken pipe
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_DEF) UVC 
control 12 on unit 1: 0 (exp. 3).
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_DEF) UVC 
control 12 on unit 1: 0 (exp. 3).
May 12 14:31:10 cerberus pipewire[15704]: spa.v4l2: '/dev/video0' 
VIDIOC_QUERYCTRL: Broken pipe
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_DEF) UVC 
control 12 on unit 1: 0 (exp. 3).
May 12 14:31:10 cerberus mtp-probe[83143]: checking bus 3, device 32: 
"/sys/devices/pci0000:00/0000:00:14.0/usb3/3-11/3-11.3"
May 12 14:31:10 cerberus wireplumber[30571]: 
<WpPortalPermissionStorePlugin:0x6347b33119e0> Failed to call Lookup: 
GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
May 12 14:31:10 cerberus mtp-probe[83143]: bus: 3, device: 32 was not an MTP 
device
May 12 14:31:10 cerberus pipewire[15704]: [14:06:10.169681267] [15704]  INFO 
Camera camera_manager.cpp:284 libcamera v0.2.0
May 12 14:31:10 cerberus kernel: usb 3-11.3: Failed to query (GET_DEF) UVC 
control 12 on unit 1: 0 (exp. 3).
May 12 14:31:10 cerberus kernel: usb 3-11.3: 3:1: cannot get freq at ep 0x84
May 12 14:31:10 cerberus kernel: usb 3-11.3: 3:1: cannot get freq at ep 0x84
May 12 14:31:10 cerberus wireplumber[30571]: 
<WpPortalPermissionStorePlugin:0x6347b33119e0> Failed to call Lookup: 
GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
```

So the kernel can see the device.

libcamera includes a simple program called cam to quickly use the
camera.  Here's what happens when I try:

```
jlquinn@cerberus:~/sw/src/libcamera$ cam -c 1 --list-controls
[13:47:47.508290998] [80875]  INFO Camera camera_manager.cpp:284 libcamera 
v0.2.0
Using camera \_SB_.PCI0.XHCI.RHUB.HS11-11.3:1.0-26e0:6230 as cam0
Control: AeEnable: [false..true]
Control: AnalogueGain: [1.000000..4.000000]
Control: ExposureTime: [100..500000]
Control: Saturation: [0.000000..2.415094]
Control: Contrast: [0.500000..1.500000]
Control: Brightness: [-1.000000..1.000000]
jlquinn@cerberus:~/sw/src/libcamera$ cam -c 1 --list-properties
[13:47:55.955207175] [80879]  INFO Camera camera_manager.cpp:284 libcamera 
v0.2.0
Using camera \_SB_.PCI0.XHCI.RHUB.HS11-11.3:1.0-26e0:6230 as cam0
Property: SystemDevices = [ 20736 ]
Property: PixelArrayActiveAreas = [ (0, 0)/1920x1080 ]
Property: PixelArraySize = 1920x1080
Property: Location = 2
Property: Model = L01 HD Webcam  : L01 HD Webcam 
jlquinn@cerberus:~/sw/src/libcamera$ cam -c 1 --capture=10 -F
[13:48:39.132754161] [80911]  INFO Camera camera_manager.cpp:284 libcamera 
v0.2.0
Using camera \_SB_.PCI0.XHCI.RHUB.HS11-11.3:1.0-26e0:6230 as cam0
[13:48:39.143768605] [80911]  INFO Camera camera.cpp:1183 configuring streams: 
(0) 1920x1080-MJPEG
[13:48:39.421476856] [80914] ERROR V4L2 v4l2_videodevice.cpp:1906 
/dev/video0[13:cap]: Failed to start streaming: Protocol error
Failed to start capture
Failed to start camera session
```

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: libcamera0.2 0.2.0-3fakesync1build6
ProcVersionSignature: Ubuntu 6.11.0-25.25~24.04.1-generic 6.11.11
Uname: Linux 6.11.0-25-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Mon May 12 14:14:44 2025
InstallationDate: Installed on 2020-05-29 (1809 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: libcamera
UpgradeStatus: Upgraded to noble on 2025-05-01 (12 days ago)

** Affects: libcamera (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2110496

Title:
  no stream from UVC webcam

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libcamera/+bug/2110496/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to