Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
It looks like you’re trying to adjust the color characteristics of your display using Weston on TorizonCore. From your weston.ini
configuration, it seems like you’ve already attempted to use the color_characteristics
section and the color-management
option, but encountered issues.
Here are a few suggestions and best practices to help you adjust colors in Weston:
-
Ensure GL Renderer is Enabled:
The error message indicates that the GL renderer might not be in use. Ensure that the GL renderer is enabled in yourweston.ini
file. Uncomment and set the following lines in the[core]
section:[core] backend=drm-backend.so gl-renderer=true color-management=true
-
Check for Required Modules:
Ensure that the necessary modules for color management are loaded. Uncomment thecms-colord.so
module in the[core]
section:modules=cms-colord.so,screen-share.so
-
Verify Output Name:
Make sure the output name specified in the[output]
section matches the actual name of your LVDS display. You can find the correct name by runningweston-info
inside the Weston container. -
Adjust Color Characteristics:
Ensure that thecolor_characteristics
section is correctly referenced in the[output]
section. Your configuration seems correct, but double-check the values and ensure they are within the expected range for your display. -
Debugging:
If Weston still crashes, you can enable debugging to get more detailed logs. Run the Weston container with theWAYLAND_DEBUG
environment variable set to1
to get more information:docker run -e WAYLAND_DEBUG=1 -v /path/to/your/weston.ini:/etc/xdg/weston/weston.ini torizon/weston-vivante:3.3.0
-
Consult Documentation:
Refer to the Weston documentation and theweston.ini
man page for more details on thecolor_characteristics
andcolor-management
options.
Here is an example of how your weston.ini
file should look after making the suggested changes:
[core]
backend=drm-backend.so
gl-renderer=true
color-management=true
renderer=gl
idle-time=0
require-input=false
xwayland=true
modules=cms-colord.so,screen-share.so
# uncomment line below to use kiosk shell
#shell=kiosk-shell.so
[shell]
background-image=/etc/xdg/weston/company.png
background-type=centered
#background-type=scale
background-color=0x00000000
panel-position=none
locking=false
allow-zap=false
num-workspaces=1
[keyboard]
vt-switching=false
[color_characteristics myDisplay]
red_x = 0.648
red_y = 0.400
green_x = 0.363
green_y = 0.561
blue_x = 0.143
blue_y = 0.141
white_x = 0.367
white_y = 0.404
#max_luminance = 380
#min_luminance = 300
[output]
name=LVDS-1
color_characteristics=myDisplay
#brightness=1.2
#contrast=1.2
#gamma=1.5,1.0,0.9
#colorimetry-mode=
#mode=1680x1050@60
#same-as=HDMI-A-2
If you continue to experience issues, it might be helpful to reach out to the Toradex community or support for further assistance, as they might have more specific insights into your hardware and software configuration.
Please, also check if these links can help you solve your problem: