You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot disable gamma corection for LEDs (RPi5 ws2812-pio-rp1 module) #7108
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.
changed the title [-]Cannot disable gamma corection for LED (RPi5 ws2812-pio-rp1 module)[/-][+]Cannot disable gamma corection for LEDs (RPi5 ws2812-pio-rp1 module)[/+]on Oct 25, 2025
By the time you read this you should be able to install a trial kernel using sudo rpi-update pulls/7110. Be careful to back up any important data first, and be extra cautious if you rely on auto_initramfs=1 in order to boot (try booting with it set to 0 before installing the new kernel).
Hi Phil,
Thank you so much for the quick response. It works great now, I'm using a magic byte to set the brightness to 0 to disable gamma. Updated measurements made using a logic analyzer: awawa-dev/HyperHDR#1317
Activity
[-]Cannot disable gamma corection for LED (RPi5 ws2812-pio-rp1 module)[/-][+]Cannot disable gamma corection for LEDs (RPi5 ws2812-pio-rp1 module)[/+]pelwell commentedon Oct 26, 2025
That's a fair point. It would be easy to use a magic brightness value - 0, say - to disable the gamma curve. Would that work for you?
misc: ws2812-pio-rp1: Allow gamma to be disabled
pelwell commentedon Oct 26, 2025
#7110 is an untested implementation of my idea above. To bypass the gamma curve, add the parameter
brightness=0to the dtoverlay line, e.g.:By the time you read this you should be able to install a trial kernel using
sudo rpi-update pulls/7110. Be careful to back up any important data first, and be extra cautious if you rely onauto_initramfs=1in order to boot (try booting with it set to 0 before installing the new kernel).awawa-dev commentedon Oct 26, 2025
Hi Phil,
Thank you so much for the quick response. It works great now, I'm using a magic byte to set the brightness to 0 to disable gamma. Updated measurements made using a logic analyzer: awawa-dev/HyperHDR#1317
misc: ws2812-pio-rp1: Add pass-through mode
misc: ws2812-pio-rp1: Add pass-through mode
misc: ws2812-pio-rp1: Add pass-through mode
misc: ws2812-pio-rp1: Add pass-through mode
misc: ws2812-pio-rp1: Add pass-through mode
misc: ws2812-pio-rp1: Add pass-through mode
misc: ws2812-pio-rp1: Add pass-through mode
pelwell commentedon Oct 31, 2025
This issue has now been resolved.
misc: ws2812-pio-rp1: Add pass-through mode
125 remaining items
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver
misc: Add ws2812-pio-rp1 driver