Skip to content

Add Samsung Galaxy Book3 Ultra webcam support on linux-omarchy - #482

Open
vitorpacheco wants to merge 1 commit into
omacom:masterfrom
vitorpacheco:linux-omarchy-galaxy-book3-ultra-ov02c10
Open

vitorpacheco wants to merge 1 commit into
omacom:masterfrom
vitorpacheco:linux-omarchy-galaxy-book3-ultra-ov02c10

Conversation

@vitorpacheco

@vitorpacheco vitorpacheco commented Sep 16, 2026 •

Copy link
Copy Markdown

On a stock install the Samsung Galaxy Book3 Ultra (NP960XFH, Raptor Lake, IPU6) has no usable internal camera. Its OV02C10 is clocked at 26 MHz, which the in-tree driver rejects (external clock 26000000 is not supported), and the module is mounted flipped vertically while the SSDB reports no rotation. With this PR the sensor probes, runs at 30 fps with correct timings, and libcamera delivers an upright, non-mirrored image.

Kernel

Three patches added to pkgbuilds/linux-omarchy as 0553-0555, after 0552, left unsigned like #480. Each applies at fuzz 0 on 7.2.15 (ov02c10.c is identical in 7.2.5 and 7.2.15, and no other patch in the package touches it), carries a full header with Signed-off-by, and passes checkpatch.pl with no errors or warnings.

Patch Subject Upstream status
0553 media: ov02c10: support a 26 MHz external clock local; not in mainline as of 7.3-rc3. OmniVision's 26 MHz PLL values are not public, so instead of guessing registers the patch keeps the 19.2 MHz tables and scales the reported link frequency, pixel rate and default frame length by 26/19.2. Out-of-tree packages that only widen the clock check run the sensor at 40.6 fps and report a 400 MHz link that is really 541.7 MHz.
0554 media: ov02c10: add Samsung Galaxy Book3 Ultra mounting quirk local; DMI quirk (960XFH) reporting rotation 180 with an inverted HFLIP control. Upstream keeps rotation-only quirks in ipu-bridge, but this module is flipped, not rotated, so a rotation there alone gives a mirrored image.
0555 media: ov02c10: implement get_selection() local; lets libcamera read the pixel array geometry instead of defaulting it ("the sensor kernel driver needs to be fixed").

pkgrel is 2.1 for the local build so it sorts between the published 2 and the next 3; set it to whatever the next release is.

Userspace

Nothing here. The camera needs libcamera and pipewire-libcamera with WirePlumber's V4L2 monitor out of the way, which #11033 in omacom/omarchy already covers for IPU6.

Verification

Samsung Galaxy Book3 Ultra NP960XFH-XA1BR, linux-omarchy 7.2.5-3, libcamera 0.7.2, PipeWire 1.6.8, WirePlumber 0.5.17. The module built from exactly this series (kbuild against the 7.2.5-3 headers) was loaded on the machine. After rebasing onto 7.2.15-2 the patches are unchanged; they apply at fuzz 0 and the module builds without warnings against the 7.2.15-1 headers. That build of this head was then loaded on the laptop in place of the DKMS module: VTS 3153, cam at 30.07 fps, PipeWire 5/5 opens at ~28-29 fps, and Chromium and Zen at 1920x1080 ~30 fps. Logs are in #482 (comment).

  • camera_sensor_rotation 180, vertical_blanking 2061 (VTS 3153), pixel_rate 216666666, link_frequency 541666667
  • cam captures at 30.07 fps without the pixel array warnings; image upright and not mirrored
  • PipeWire clients receive ~28-30 fps; camera works in Firefox/Zen, Chrome (with WebRtcPipeWireCamera) and OBS
  • 19.2 MHz boards take the unchanged code path (scale factor 1)

The same changes plus tuning options have run as a DKMS module on this laptop, together with the userspace setup, at https://github.com/vitorpacheco/galaxy-book3-ultra-linux. Those options are not part of this PR: frame_rate (set to 20 on the laptop, so the DKMS module logs VTS 4729 = 3153 × 30/20), gain_boost, analog_gain_max, true_link_freq and rotation/mirror overrides. With frame_rate at its default of 30 the frame timing matches this series (VTS 3153); the DKMS default gain_boost=4 also widens the gain range, which this series does not.

Not tested on other 26 MHz boards (Galaxy Book3 Pro 940XFG, Book4 Pro 940XGK and Book4 Ultra 960XGL are reported to use this clock), nor with the BORE kernel.

Reviewed with sol-loop: 1 round with gpt-6.2-sol. Sol verdict: approved

@vitorpacheco
vitorpacheco force-pushed the linux-omarchy-galaxy-book3-ultra-ov02c10 branch from 9e4b87a to 97d8f75 Compare November 18, 2026 23:42
@greptile-apps

greptile-apps Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge based on the inspected code.

Summary

This PR adds kernel support for the Samsung Galaxy Book3 Ultra webcam through three sensor patches.

  • The OV02C10 camera now supports sensors with a 26 MHz clock.
  • The Galaxy Book3 Ultra camera now produces an upright, non-mirrored image.
  • Camera software can now read the OV02C10's full pixel-array geometry.

No actionable issues were established. Both checksum lists match the three added patch files.

Reviews (1) · Last reviewed commit: "Add Samsung Galaxy Book3 Ultra webcam su..." · Reviewed by Greptile

@vitorpacheco

Copy link
Copy Markdown
Author

Note

🤖 Claude Opus 5.5 responding on behalf of @vitorpacheco

The current head (97d8f755) works on the Galaxy Book3 Ultra on 7.2.15: the sensor probes with the expected timings, cam runs at 30.07 fps, and PipeWire, Chromium and Zen all receive 1920x1080 at ~30 fps.

What was loaded. drivers/media/i2c/ov02c10.c from stable v7.2.15 (sha256 dad178ad…, identical to v7.2.5) with 0553, 0554 and 0555 from this branch applied by patch -Np1 --fuzz=0, built as an out-of-tree module against the 7.2.15-1-omarchy headers with no warnings. The usual DKMS variant was unloaded first (rmmod intel_ipu6_isys ov02c10, insmod this build, modprobe intel_ipu6_isys). The loaded module's srcversion matched the build, and it exposed no module parameters, so none of the DKMS tuning options were active.

patched ov02c10.c sha256  d4deb5a56e3ae720e9a24740a7081d3e2cf169ffc86fa609245a879bc67eebea
/sys/module/ov02c10/srcversion  551A3398F3A59E4D100920D  (build: 551A3398F3A59E4D100920D)
/sys/module/ov02c10/parameters  absent

Userspace: linux-omarchy 7.2.15-1, libcamera 0.7.2-4, PipeWire 1.6.9, WirePlumber 0.5.18, Chromium 155.0.8059.84, Zen 1.24.3b.

Sensor controls (v4l2-ctl -d /dev/v4l-subdev4)
camera_sensor_rotation 0x009a0923 (int)    : min=180 max=180 step=1 default=180 value=180 flags=read-only, has-min-max
     vertical_blanking 0x009e0901 (int)    : min=72 max=64443 step=1 default=2061 value=2061 flags=has-min-max
   horizontal_blanking 0x009e0902 (int)    : min=352 max=352 step=1 default=352 value=352 flags=read-only, has-min-max
         analogue_gain 0x009e0903 (int)    : min=16 max=248 step=1 default=16 value=16 flags=has-min-max
        link_frequency 0x009f0901 (intmenu): min=0 max=0 default=0 value=0 (541666667 0x20492d6b) flags=read-only, has-min-max
            pixel_rate 0x009f0902 (int64)  : min=0 max=216666666 step=1 default=216666666 value=216666666 flags=read-only, has-min-max

Selection: crop_bounds, Left 0, Top 0, Width 1928, Height 1092, Flags: 
Selection: native_size, Left 0, Top 0, Width 1928, Height 1092, Flags: 

VTS 3153 (vblank 2061), pixel rate, link frequency and rotation match the PR description. get_selection() answers for the pixel array.

cam capture, 1920x1080 BGR888, 150 frames
$ cam -c 2 -s role=viewfinder,width=1920,height=1080,pixelformat=BGR888 --capture=150
WARN CameraSensorProperties camera_sensor_properties.cpp:548 No static properties available for 'ov02c10'
WARN CameraSensorProperties camera_sensor_properties.cpp:550 Please consider updating the camera sensor properties database
WARN CameraSensor camera_sensor_legacy.cpp:502 'ov02c10 1-0036': No sensor delays found in static properties. Assuming unverified defaults.
WARN IPASoft soft_simple.cpp:104 IPASoft: Failed to create camera sensor helper for ov02c10
...
11999.452522 (30.07 fps) cam0-stream0 seq: 000149 bytesused: 8294400
11999.485778 (30.07 fps) cam0-stream0 seq: 000150 bytesused: 8294400

Average over frames 10-150: 30.07 fps. The pixel array warnings are gone. The remaining warnings are libcamera's sensor database having no ov02c10 entry, which this PR does not touch. The image was upright. Mirroring was not checked because the scene had no reference.

PipeWire, five consecutive opens of the libcamera node
run 1: 144 frames in 5 s
run 2: 142 frames in 5 s
run 3: 141 frames in 5 s
run 4: 141 frames in 5 s
run 5: 141 frames in 5 s

A minimal pw_stream consumer was connected to the default camera ("Built-in Front Camera"). There were no stream timeouts in the pipewire or wireplumber journal.

Browsers, getUserMedia for 1920x1080 and frames counted for 5 s (deviceId/groupId omitted)
Chromium --headless=new --enable-features=WebRtcPipeWireCamera
  label=Built-in Front Camera {"aspectRatio":1.7777777777777777,"frameRate":30,"height":1080,"resizeMode":"none","width":1920}
  frames5s=152 size=1920x1080

Zen --headless (media.webrtc.camera.allow-pipewire=true)
  label=Built-in Front Camera {"frameRate":0,"height":1080,"resizeMode":"crop-and-scale","width":1920}
  frames5s=151 size=1920x1080

Not covered: a full makepkg of linux-omarchy (the module was built out of tree from the same three patches), other 26 MHz boards, and the BORE/MuQSS kernels. cam outside PipeWire needs __EGL_VENDOR_LIBRARY_FILENAMES pointed at Mesa on this hybrid NVIDIA laptop for the GPU debayer. That is a userspace setting and is unrelated to these patches.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant