Skip to content

4L2 color space / swapped colors bug on Raspberry Pi 3B (Kernel 6.6+) with USB Grabbers (MS2130) #7410

@thomas126

Description

@thomas126

Describe the bug

Describe the bug

There is a persistent bug in the V4L2 subsystem on older Raspberry Pi models (specifically Raspberry Pi 3B and Zero 2W) since the transition to Kernel 6.6. When capturing video via a standard USB HDMI grabber (like the MacroSilicon MS2130), the colors are processed incorrectly or completely swapped (inverted look), while the identical setup works flawlessly on Raspberry Pi 4/5 or with older Kernel 6.1.

This issue has been deeply analyzed in the HyperHDR community (Reference: awawa-dev/HyperHDR#848).

Using the command:
v4l2-ctl -d /dev/video0 --set-ctrl=brightness=50

sometimes temporarily resets the colors, but it is not persistent and breaks during modern color-space shifting (like HDR-to-SDR tone mapping).

Hardware

  • Raspberry Pi 3 Model B
  • USB HDMI Capture Card (MacroSilicon MS2130 / MS2109)

Steps to reproduce the behaviour

Steps to reproduce

  1. Connect an MS2130 HDMI grabber to a Raspberry Pi 3B running Bookworm (Kernel 6.6).
  2. Capture a video stream using HyperHDR or any standard V4L2 grabber software.
  3. Observe the inverted/swapped color output on the video pipeline processed for external hardware LEDs.

Device (s)

Raspberry Pi 3 Mod. B, Raspberry Pi 3 Mod. B+

System

OS / Kernel version

  • Raspberry Pi OS (Bookworm)
  • Kernel version: 6.6.x (or newer)

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions