# Alvium USB3 camera preconditions - fire-watch tower hosts. # # WHY: known-issues #19. On the camera's USB3 link the host re-enables hardware # LPM (U1/U2) on every enumeration; the camera then logs link errors and frame # delivery stalls. The setting lives on the PORT, not on the device, which is # why this writes through the device's 'port' symlink rather than using ATTR{}. # # Verified on the IOTA 2026-09-15: /sys/bus/usb/devices/2-1/port -> # ../2-0:1.0/usb2-port1, usb3_lpm_permit was 'u1_u2' out of the box. # # The MODE line duplicates what the Vimba X transport-layer installer writes to # 99-AVTUSBTL.rules. Kept here so a host that has not run that installer yet # still gets a camera it can open, and harmless where it has. ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1ab2", MODE="0666" ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1ab2", RUN+="/bin/sh -c 'echo 0 > /sys%p/port/usb3_lpm_permit 2>/dev/null || true'"