After a bit of a fight, I've managed to get the MIPI camera working on my Lenovo ThinkPad X1 Carbon Gen 10. Here's what I've got:
- I'm using Ubuntu 22.04.3 LTS. - I'm using Kernel 6.2.0-34-generic (with 6.2.0-35-generic for example it doesn't work for me)
With the above, I followed these steps: https://wiki.ubuntu.com/Lenovo
And I have added these configurations (replacing what is there, if any):
- In the file /etc/modprobe.d/v4l2loopback.conf:
options v4l2loopback card_label="Intel MIPI Camera" exclusive_caps=1 video_nr=0
- In the /etc/modprobe.d/v4l2-relayd.conf file:
options v4l2loopback exclusive_caps=1 card_label="Intel MIPI Camera"
- In the /etc/default/v4l2-relayd file:
# GStreamer source element name: VIDEOSRC="icamerasrc" #SPLASHSRC="filesrc location=/.../splash.png ! pngdec ! imagefreeze num-buffers=4 ! videoscale ! videoconvert" # Output format, width, height, and frame rate: FORMAT=NV12 WIDTH=1280 HEIGHT=720 FRAMERATE=30/1 # Virtual video device name: CARD_LABEL="Intel MIPI Camera" # Extra options to pass to v4l2-relayd: #EXTRA_OPTS=-d
With this, after rebooting the system, the camera usually works in both chrome and firefox (meet, zoom, webcam test, etc...).
- In Cheese, I can also get it to work by launching it this way:
sudo cheese -d "Intel MIPI Camera".
- Sometimes when a black screen appears, just restart the v4l2-relayd service:
sudo systemctl restart v4l2-relayd.service
I hope this helps someone
After a bit of a fight, I've managed to get the MIPI camera working on my Lenovo ThinkPad X1 Carbon Gen 10. Here's what I've got:
- I'm using Ubuntu 22.04.3 LTS.
- I'm using Kernel 6.2.0-34-generic (with 6.2.0-35-generic for example it doesn't work for me)
With the above, I followed these steps: https:/ /wiki.ubuntu. com/Lenovo
And I have added these configurations (replacing what is there, if any):
- In the file /etc/modprobe. d/v4l2loopback. conf:
options v4l2loopback card_label="Intel MIPI Camera" exclusive_caps=1 video_nr=0
- In the /etc/modprobe. d/v4l2- relayd. conf file:
options v4l2loopback exclusive_caps=1 card_label="Intel MIPI Camera"
- In the /etc/default/ v4l2-relayd file:
# GStreamer source element name: "icamerasrc" /.../splash. png ! pngdec ! imagefreeze num-buffers=4 ! videoscale ! videoconvert"
VIDEOSRC=
#SPLASHSRC="filesrc location=
# Output format, width, height, and frame rate:
FORMAT=NV12
WIDTH=1280
HEIGHT=720
FRAMERATE=30/1
# Virtual video device name:
CARD_LABEL="Intel MIPI Camera"
# Extra options to pass to v4l2-relayd:
#EXTRA_OPTS=-d
With this, after rebooting the system, the camera usually works in both chrome and firefox (meet, zoom, webcam test, etc...).
- In Cheese, I can also get it to work by launching it this way:
sudo cheese -d "Intel MIPI Camera".
- Sometimes when a black screen appears, just restart the v4l2-relayd service:
sudo systemctl restart v4l2-relayd.service
I hope this helps someone