Skip to content

Cannot disable gamma corection for LEDs (RPi5 ws2812-pio-rp1 module) #7108

@awawa-dev

Description

@awawa-dev

Describe the bug

Hi
Kernel module for Raspberry Pi 5 PIO ws2812-pio-rp1 module that allows control over ws2812 sk6812 LED strips:

p[0] = ws2812_apply_gamma(state->brightness, w);

Gamma correction is hard-coded. We cannot disable it with any settings. So instead of rendering 256 colors per channel we are able to render max 100-120 due to the gamma compression.

Steps to reproduce the behaviour

awawa-dev/HyperHDR#1317

Device (s)

Raspberry Pi 5

System

System Information

Raspberry Pi 5 Model B Rev 1.0
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"

Linux rpi5 6.12.47+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1 (2025-09-16) aarch64 GNU/Linux

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions