Repository navigation
fix(camera): open the main back camera and reach all three on the Jolla - #106
Open
patrickjquinn wants to merge 2 commits into
Open
patrickjquinn wants to merge 2 commits into
patrickjquinn wants to merge 2 commits into
Conversation
… one On the Jolla Phone (2026) the Camera app opened on the front IMX616, mirrored, from a stored deviceId; its lens switch never appeared, so the IMX214 ultrawide could not be reached; and libcamera lists the three sensors in a different order from boot to boot. - Read Location, Rotation and PixelArrayArea from libcamera's camera properties instead of the sensor's device tree node in sysfs, which works on any pipeline and needs no /sys/firmware. - List the back cameras first, largest sensor first, so the default is the main camera and the lens labels have a stable order. - Open the main back camera on every start; the flip button still returns to the last back lens used. - Name the dconf key the labels really live at (/apps/camera). Tested on the Jolla: a cold start opens the IMX766 (4096x3072), the lens switch shows 1x and 0.6 and moves to the IMX214, the flip button reaches the mirrored IMX616 and returns to the IMX214, and a relaunch opens the IMX766 again.
The Camera app shows its lens switch only with a label for each back camera (dconf /apps/camera/backCameraLabels); libcamera has no focal length to derive them from. Ship the board's dconf defaults, the 50 MP main camera at 1 and the 13 MP ultrawide at 0.6, in a compiled system database under the user's own settings. Tested on the Jolla with the same profile and keyfile compiled by dconf: dconf read gives ['1', '0.6'] and the app shows both lenses.
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jolla e2e 2026-11-28, P1 "Camera opens on the front sensor and calls it the rear".
Root cause.
Several back cameras but no labels), so the IMX214 could not be reached.Fix.
apps/camera: Location/Rotation/PixelArrayArea from libcamera's camera properties; back cameras first, largest sensor first; every start opens the main back camera (the flip still returns to the last back lens); the warning names the real dconf key.device-jolla-jp2601-marathonr26: a compiled dconf system database (/etc/dconf/profile/user= user-db + system-db:jp2601) with/apps/camera/backCameraLabels=['1', '0.6'](50 MP main, 13 MP ultrawide).On the phone (app built in mshell-dev from this branch, dconf db compiled on the phone): cold start opens IMX766 (
SoftwareIsp Input 4096x3072), the switch shows1x | 0.6; tapping 0.6 moves to IMX214 (1920x1080 mode); the flip shows the mirrored IMX616 (3280x2464) with the lens switch hidden and returns to IMX214; a relaunch opens IMX766 again. No "no labels" warning.The shell side needs nothing.
🤖 Generated with Claude Code
https://claude.ai/code/session_01BrjN1gf1Fu2w5MqXBmEowh