#36 - The camera's dials and menus work while the app shows its live view #37

Merged
eliott merged 1 commit from fix/36-camera-locked-in-tether into main 2026-11-20 17:27:55 +01:00
Owner

While the app showed the live view, the X-T5 ignored its dials and menus until it was unplugged. Now they work the whole time, and the live view follows what they change.

Closes #36

How it works

  • Every gphoto2 session puts a Fuji in "USB priority", which locks its controls until the session ends. The live view's shell lasts until the next shot, so the controls stayed locked.
  • The live view's shell now sends set-config prioritymode=Camera as soon as it starts. Shots are taken by their own gphoto2 process and are unaffected.

Tested

  • cargo test: 298 passed. Site build passes.
  • On the X-T5 (tethered, Arch Linux): dials and menus locked with the old live view, and working with the fix, in the app's live view and after a test shot. The live view kept its frame rate and followed the dials.

Not tested

  • Cameras other than the X-T5 (a camera without prioritymode gets one harmless error per live-view start). Not tested during a full scan.

Changes in behaviour

  • Moving a dial during a scan now changes the exposure of the following shots.
While the app showed the live view, the X-T5 ignored its dials and menus until it was unplugged. Now they work the whole time, and the live view follows what they change. Closes #36 ## How it works - Every gphoto2 session puts a Fuji in "USB priority", which locks its controls until the session ends. The live view's shell lasts until the next shot, so the controls stayed locked. - The live view's shell now sends `set-config prioritymode=Camera` as soon as it starts. Shots are taken by their own gphoto2 process and are unaffected. ## Tested - `cargo test`: 298 passed. Site build passes. - On the X-T5 (tethered, Arch Linux): dials and menus locked with the old live view, and working with the fix, in the app's live view and after a test shot. The live view kept its frame rate and followed the dials. ## Not tested - Cameras other than the X-T5 (a camera without `prioritymode` gets one harmless error per live-view start). Not tested during a full scan. ## Changes in behaviour - Moving a dial during a scan now changes the exposure of the following shots.
fix(camera): give the dials and menus back to the camera while the live view runs
All checks were successful
website / build (pull_request) Successful in 41s
e5d9587939
Every gphoto2 session sets the Fuji's priority mode to USB, which locks its
dials and menus until the session ends; the live view's shell lasts until the
next shot. It now sets prioritymode=Camera as soon as it starts. Checked on the
X-T5: frames keep coming, shots still work, and the live view follows the dials.

Closes #36
eliott merged commit b3c715e7d6 into main 2026-11-20 17:27:55 +01:00
eliott deleted branch fix/36-camera-locked-in-tether 2026-11-20 17:27:55 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
RollNote/rollscan!37
No description provided.