Skip to content

Rebind ov08x40 after resume when camera-init's modprobe is a no-op - #368

Open
kvnloo wants to merge 1 commit into
omacom:masterfrom
kvnloo:fix/camera-init-ov08x40-bind
Open

kvnloo wants to merge 1 commit into
omacom:masterfrom
kvnloo:fix/camera-init-ov08x40-bind

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 9, 2026

Copy link
Copy Markdown

Summary

Rebind ov08x40 after resume when camera-init's modprobe is a no-op.

Fixes omacom/omarchy#10624.

camera-init.service only ran three modprobes. After S3 those modules are already loaded, so restarting the unit from the sleep hook never rebinds the OVTI08F4 I2C client. Meet then sees Hardware ISP Camera with no frames until reboot.

Ship camera-init.sh: keep the existing modprobe sequence, then sysfs-bind the live client to ov08x40 when the HID exists and driver is absent. Fail open if the sensor or bind file is missing. Do not unload IPU7. Do not change the sleep-hook --unit=camera-resume name.

Testing

  • camera-init-bind-test.sh FAIL on pinned pkgs (unbound bind missing) / PASS on this SHA (unbound bind, already-bound no-op, missing HID no-op against a fake sysfs tree)

camera-init.service only ran three modprobes. After S3 those modules are
already loaded, so restarting the unit from the sleep hook never rebinds
the OVTI08F4 I2C client. Meet then sees Hardware ISP Camera with no
frames until reboot.

Ship camera-init.sh: keep the existing modprobe sequence, then sysfs-bind
the live client to ov08x40 when the HID exists and driver is absent.
Fail open if the sensor or bind file is missing. Do not unload IPU7.
Do not change the sleep-hook --unit=camera-resume name.

camera-init-bind-test.sh pins unbound bind, already-bound no-op, and
missing HID no-op against a fake sysfs tree.

Fixes omacom/omarchy#10624

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-approved Maintainer approved this PR to build on the self-hosted pool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IPU7 camera: ov08x40 sensor bind is lost on suspend/resume and camera-init can't restore it (XPS 16 DA16260)

2 participants