Camera not working after resuming from suspend; Dell Precision 5680 running Ubuntu 24.04
- Dominant language
- C
- Stars
- 251
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
I had the camera working fine with Ubuntu 23.10 but then I upgraded to 24.04 and it only works after a fresh reboot. Using https://mozilla.github.io/webrtc-landing/gum_test.html I see it working (fading from black) after a fresh reboot. Upon suspending and resuming that getUserMedia test page shows all black in the camera even though there is green "Success!" text beneath it.
Before the upgrade to 24.04 I ran:
```sh
sudo add-apt-repository --remove ppa:oem-solutions-group/intel-ipu6
sudo apt autopurge 'oem-*-meta' 'libipu*' 'libcamhal*'
sudo apt remove v4l2-relayd
```
After the upgrade I ran these, then rebooted:
```sh
sudo apt install v4l2-relayd
sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6
sudo apt install gstreamer1.0-icamera
```
Here are the devices I see in 24.04 **after** suspend/resume:
```
❯ cat /sys/class/video4linux/*/name
Intel IPU6 CSI-2 0
Intel IPU6 CSI2 BE SOC 2
Intel IPU6 CSI2 BE SOC 3
Intel IPU6 CSI2 BE SOC 4
Intel IPU6 CSI2 BE SOC 5
Intel IPU6 CSI2 BE SOC 6
Intel IPU6 CSI2 BE SOC 7
Intel IPU6 CSI-2 1
Intel IPU6 CSI-2 2
Intel IPU6 CSI-2 3
Intel IPU6 CSI-2 4
Intel IPU6 CSI-2 5
Intel IPU6 CSI-2 6
Intel IPU6 CSI-2 7
Intel IPU6 CSI2 BE SOC 0
Intel IPU6 CSI2 BE SOC 1
Intel MIPI Camera
Intel IPU6 BE SOC capture 0
Intel IPU6 BE SOC capture 1
Intel IPU6 BE SOC capture 2
Intel IPU6 BE SOC capture 3
Intel IPU6 BE SOC capture 4
Intel IPU6 BE SOC capture 5
Intel IPU6 BE SOC capture 6
Intel IPU6 BE SOC capture 7
```
After a fresh reboot, there are two additional lines:
```
Intel IVSC CSI
ov02c10 18-0036
```
Kernel version:
```
❯ uname -srv
Linux 6.8.0-38-generic #38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:25:01 UTC 2024
```
Attached is the dmesg (see link below). The resume is around line 1683. I am happy to assist with tracking down this bug!
[ipu6_suspend_resume_dmesg.txt](https://github.com/user-attachments/files/16268076/ipu6_suspend_resume_dmesg.txt)
Contributor guide
Assessment
This issue has not been assessed yet.