Sensors and cameras

Sensors

Kernel: IIO drivers for all sensors, on I²C/SPI buses owned by the application processor. Several chip variants come from catcrafts/: ICM-42631 fallback, SPL07-003 in dps310, STK36C61 in stk3310, the proximity near level, the magnetometer bus.

Userspace (fp6-mobian-support, files from Catcrafts’ fp6-device-tweaks, GPL-3.0-only):

FileWhy
modules-load.d/fp6-imu.confinv-icm42600-spi isn’t autoloaded
81-fp6-accel-poll.rulesinv_icm42600 registers no IIO trigger but exposes scan_elements/. iio-sensor-proxy 3.9 then tags the accelerometer for both buffer and poll mode, tries buffer first, fails, and doesn’t fall back. The result: HasAccelerometer true, orientation stuck at “undefined”. The rule forces poll mode
91-fp6-no-ssc-sensors.rulesnothing serves Qualcomm’s sensor core (SSC) here, but iio-sensor-proxy still tags fastrpc-adsp for its libssc drivers. The libssc compass probe then blocks for about 100 s inside sensor discovery. A proximity claim in that window leaves proximity dead, and a second claim crashes the daemon. The rule drops the tags
iio-sensor-proxy.service.d/fp6-restart.confrestart on failure (safety net)

Upstream: the two iio-sensor-proxy bugs (no fallback from buffer to poll mode; the claim race during libssc discovery) are generic and belong in iio-sensor-proxy. The rules are the workaround until then.

Tested: all four sensor chips probe and appear in IIO (ICM-42631, QMC6308, SPL07-003, STK36C61). Not yet checked one by one: auto-rotate, light and proximity through monitor-sensor, proximity blanking during calls, compass and barometer readings.

Cameras

CameraSensorState
MainSony IMX896 (LYT-700C), C-PHY, DW9784 OIS/AFstreams via libcamera and PipeWire, 720p and 1080p
Ultra-wideOmniVision OV13B10streams, same
FrontSamsung S5KKD1 (CCI1, address 0x3d)no driver anywhere; the DT only has a comment

Kernel support is all catcrafts/ (CAMSS for milos, C-PHY, both sensor drivers, DW9784, the rotation fix).

Limits:

Upstream: libcamera (sensor helpers, softISP AF); Snapshot (close before open, once the cause is confirmed); Linux (an S5KKD1 driver; posting the catcrafts/ camera patches).