← Back to Pull requests

display: add Wayland capplet backed by the wlrandr plugin #815

Merged
Sunderland93 merged 6 files (2349 lines) on Aug 19, 2026 20:14 UTC
View on GitHub
Sunderland93 Sunderland93 commented on Aug 06, 2026 17:27 UTC
Author

<img width="1280" height="720" alt="Снимок экрана_20260806_212319" src="https://github.com/user-attachments/assets/ed027741-b4fd-4a9e-aa0d-2bc29a703fb3" />

Depends on https://github.com/mate-desktop/mate-settings-daemon/pull/439

Diff: 2349 lines (+2345 / -4) across 6 files Reviewer: lukefromdc Review duration: 18887m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.50) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 2349 lines diff across 6 files
0.50
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.95 · 5 substantive comment(s)
0.95
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
91%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.400
Real PR Conversation Timeline
20 items
lukefromdc lukefromdc commented on Aug 06, 2026 19:52 UTC
Contributor

In testing this was unable to detect my monitor, though the UI came up most of it was greyed out. Got this error:
<img width="639" height="528" alt="error" src="https://github.com/user-attachments/assets/8491252b-708a-4591-bbe9-c09dd0f8a9fc" />

Also could not show a tray icon, but that will have to be ported to SNI to render under wayland

Sunderland93 Sunderland93 commented on Aug 06, 2026 19:58 UTC
Author

icon is already wayland compatible and can be enabled via gsettings set org.mate.SettingsDaemon.pugins.wlrandr show-notification-icon true if there is problem with UI. Seems like wlrandr schema is incorrectly install

lukefromdc lukefromdc commented on Aug 06, 2026 22:38 UTC
Contributor

I just found /usr/share/glib-2.0/schemas/org.mate.SettingsDaemon.plugins.wlrandr.gschema.xml in its intended place, and did recompile the schemas

The error message has the capplet looking for /org/mate/SettingsDaemon/WLRANDR

while dconf-editor shows /org/mate/settings-daemon/plugins/wlrandr existing, same as the other plugins

lukefromdc lukefromdc commented on Aug 06, 2026 22:43 UTC
Contributor

Running gsettings set org.mate.SettingsDaemon.plugins.wlrandr show-notification-icon true completes without an error message, and dconf-editor shows a reload for the page shown below but the SNI icon does not appear
<img width="878" height="505" alt="dconf-editor" src="https://github.com/user-attachments/assets/6cd28fb2-4a67-4c7c-9a91-d38052c0ff57" />

Sunderland93 Sunderland93 commented on Aug 08, 2026 09:18 UTC
Author

I see no errors on my side. Will check on fresh setup. Also please ensure that wlrandr plugin is running and registred:

gdbus introspect --session --dest org.mate.SettingsDaemon --object-path /org/mate/SettingsDaemon/WLRANDR

Also make sure you're running mate-settings-daemon as Wayland native, without GDK_BACKEND=x11

lukefromdc lukefromdc commented on Aug 08, 2026 20:59 UTC
Contributor

looks like mate-wayland-session needs a change to remove GDK_BACKEND=x11 from
restart_while_running env GDK_BACKEND=x11 mate-settings-daemon &
That commit will have to depend on this PR to work

lukefromdc lukefromdc commented on Aug 08, 2026 21:07 UTC
Contributor

That was IT! The capplet and the icon now work fine. Since the wayland session auto-restarts mate-settings-daemon I was unable to get the restart to run under native wayland until I removed that line. Good to go

lukefromdc lukefromdc commented on Aug 08, 2026 21:11 UTC
Contributor

Only remaining issue I am finding with this PR is the image of the screen not centered and the right edge cut off with a 4K monitor

<img width="569" height="455" alt="Display_Capplet" src="https://github.com/user-attachments/assets/6980865d-6a94-4d66-8ee3-0629ceee0c7c" />

lukefromdc lukefromdc commented on Aug 08, 2026 21:30 UTC
Contributor

We have the two issues I just noted with the clipboard and xsettings plugins over at
https://github.com/mate-desktop/mate-settings-daemon/pull/439
Once those are fixed and that is merged, this is probably OK to merge as-is and deal later with the drawing of the screen rectangle (not critical to use of this capplet) or that can be fixed here and now if that fix is easily found. That has to merge first as the capplet depends on it to function

Sunderland93 Sunderland93 commented on Aug 10, 2026 08:30 UTC
Author

Latest commit should resolve display image issue

lukefromdc lukefromdc commented on Aug 10, 2026 20:45 UTC
Contributor

This is what I just got after the latest commit, looks like the image is just getting cut off on the right side edge

<img width="576" height="458" alt="wlrandr" src="https://github.com/user-attachments/assets/d3cb544c-736c-42be-aed6-f687daf69d1e" />

Sunderland93 Sunderland93 commented on Aug 14, 2026 18:11 UTC
Author

Hm, I can't reproduce it on Labwc

<img width="1920" height="1006" alt="Снимок экрана_20260814_221056" src="https://github.com/user-attachments/assets/fea6479b-2021-4f26-b52e-7a42fafb4705" />

Sunderland93 Sunderland93 commented on Aug 14, 2026 18:45 UTC
Author

Hm. I think it works on Labwc because it ignore window constraints. Will check on Wayfire

<img width="1920" height="1006" alt="Снимок экрана_20260814_224402" src="https://github.com/user-attachments/assets/ee74408c-0ffa-4393-8c06-39ae64057fde" />

lukefromdc lukefromdc commented on Aug 14, 2026 19:29 UTC
Contributor

The display properties window can be resized larger but not smaller, and internal contents do not resize on
my setup

Sunderland93 Sunderland93 commented on Aug 14, 2026 21:19 UTC
Author

Okay, I confirm that this problem occurs on Wayfire

Sunderland93 Sunderland93 commented on Aug 14, 2026 22:04 UTC
Author

Latest commit fixes issue in my Wayfire setup

lukefromdc lukefromdc approved these changes on Aug 15, 2026 19:55 UTC
Approved Reviewer

This now works perfectly, though it depends on https://github.com/mate-desktop/mate-settings-daemon/pull/439 so that has to be merged first.

lukefromdc lukefromdc commented on Aug 19, 2026 20:54 UTC
Contributor

Translation PR passed checks. will release 1.29.1 with this and updated translations

Reviewers
Assignees
Sunderland93 Sunderland93
Labels
risk: low confidence: 91.3% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 50.3% (MEDIUM) · Higher = larger blast radius
50.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 91.3% · Lower = rushed or shallow review
91.3%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 4.4% · Safe to merge
4.4%