Questions about 64MP on 64bit bullseye system(Pi 4B)

When I put this in the terminal:

libcamera-still -t 0 --viewfinder-width 2312 --viewfinder-height 1736

It says:

Made X/EGL preview window
[0:08:42.687230909] [4714]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3729-5f595cca
[0:08:42.695200050] [4751]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'arducam_64mp'
[0:08:42.695247036] [4751]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[0:08:42.732160240] [4751]  WARN RPI raspberrypi.cpp:1274 Mismatch between Unicam and CamHelper for embedded data usage!
[0:08:42.732670102] [4751] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:08:42.733056594] [4751]  INFO RPI raspberrypi.cpp:1398 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media0 and ISP device /dev/media1
[0:08:42.733841038] [4714]  INFO Camera camera.cpp:1029 configuring streams: (0) 2312x1736-YUV420
[0:08:42.734276497] [4751]  INFO RPI raspberrypi.cpp:763 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 2312x1736-SBGGR10_1X10 - Selected unicam format: 2312x1736-pBAA
terminate called after throwing an instance of 'std::runtime_error'
  what():  failed to import fd 21
Aborted

I can hear the sound of autofocus module but it doesn’t work.
Then I try:

libcamera-still --list-cameras 

It says:

Available cameras
-----------------
0 : arducam_64mp [9248x6944] (/base/soc/i2c0mux/[email protected]/[email protected])
    Modes: 'SRGGB10_CSI2P' : 1280x720 [120.03 fps - (2064, 2032)/5120x2880 crop]
                             1920x1080 [60.04 fps - (784, 1312)/7680x4320 crop]
                             2312x1736 [30.00 fps - (0, 0)/9248x6944 crop]
                             3840x2160 [20.00 fps - (784, 1312)/7680x4320 crop]
                             4624x3472 [10.00 fps - (0, 0)/9248x6944 crop]
                             9152x6944 [2.70 fps - (0, 0)/9152x6944 crop]

That’s right.
But then I input this:

vcgencmd get_camera

It says:

supported=1 detected=0, libcamera interfaces=1

I don’t know what happened and I use many ways from Internet to fix it but it seems useless.

I need information on the size of storage you have allocated to the gpu
cat /proc/meminfo

[email protected]:~ $ sudo cat /proc/meminfo
MemTotal:        8035324 kB
MemFree:         7732412 kB
MemAvailable:    7700144 kB
Buffers:           37472 kB
Cached:           140748 kB
SwapCached:            0 kB
Active:           108380 kB
Inactive:         109416 kB
Active(anon):        860 kB
Inactive(anon):    39908 kB
Active(file):     107520 kB
Inactive(file):    69508 kB
Unevictable:          16 kB
Mlocked:              16 kB
HighTotal:       7405568 kB
HighFree:        7194140 kB
LowTotal:         629756 kB
LowFree:          538272 kB
SwapTotal:        102396 kB
SwapFree:         102396 kB
Dirty:               392 kB
Writeback:             0 kB
AnonPages:         39620 kB
Mapped:            62496 kB
Shmem:              1192 kB
KReclaimable:      20664 kB
Slab:              37500 kB
SReclaimable:      20664 kB
SUnreclaim:        16836 kB
KernelStack:        1496 kB
PageTables:         2616 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     4120056 kB
Committed_AS:     348204 kB
VmallocTotal:     245760 kB
VmallocUsed:        6036 kB
VmallocChunk:          0 kB
Percpu:              448 kB
CmaTotal:         524288 kB
CmaFree:          497092 kB

@Lumina

I don’t see a problem. Generally speaking, fd21 is a problem of gpu memory allocation, but it has already taken effect there. I now suspect it is the display problem.

You can try

libcamera-still -t 5000 -n -o test.jpg
[email protected]:~ $ libcamera-still -t 5000 -n -o test.jpg
[0:29:49.508326108] [6082]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3729-5f595cca
[0:29:49.514331747] [6084]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'arducam_64mp'
[0:29:49.514378785] [6084]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[0:29:49.541543628] [6084]  WARN RPI raspberrypi.cpp:1274 Mismatch between Unicam and CamHelper for embedded data usage!
[0:29:49.542139984] [6084] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:29:49.542431024] [6084]  INFO RPI raspberrypi.cpp:1398 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media1 and ISP device /dev/media3
[0:29:49.543457939] [6082]  INFO Camera camera.cpp:1029 configuring streams: (0) 4624x3472-YUV420
[0:29:49.544504966] [6084]  INFO RPI raspberrypi.cpp:763 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 4624x3472-SBGGR10_1X10 - Selected unicam format: 4624x3472-pBAA
[0:29:55.032591906] [6082]  INFO Camera camera.cpp:1029 configuring streams: (0) 9152x6944-YUV420 (1) 9152x6944-SBGGR10_CSI2P
[0:29:55.039677704] [6084]  INFO RPI raspberrypi.cpp:763 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 9152x6944-SBGGR10_1X10 - Selected unicam format: 9152x6944-pBAA
Still capture image received

It worked.
But no preview window.

@Lumina

This is to make sure the camera is normal, now it is certain that there is a problem with the display, are you using the display, or a remote connection

Remote connection(vnc)

@Lumina

i try on vnc ,and it’s work

There are two options:

  1. you display resoultions too high,try lowering the resolution
  2. try it on you raspberrypi,not vnc

I changed a display but this time it said:

failed to import fd 20

@Lumina

Strange. Can you try it on the raspberrypi ,not vnc?