display: add Wayland capplet backed by the wlrandr plugin #815
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
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
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
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" />
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
looks like mate-wayland-session needs a change to remove GDK_BACKEND=x11 fromrestart_while_running env GDK_BACKEND=x11 mate-settings-daemon &
That commit will have to depend on this PR to work
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
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" />
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
Latest commit should resolve display image issue
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" />
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" />
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 alt="wlrandr" width="576" height="458" src="https://private-user-images.githubusercontent.com/14036792/633945585-d3cb544c-736c-42be-aed6-f687daf69d1e.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODY3MTcxNDUsIm5iZiI6MTc4NjcxNjg0NSwicGF0aCI6Ii8xNDAzNjc5Mi82MzM5NDU1ODUtZDNjYjU0NGMtNzM2Yy00MmJlLWFlZDYtZjY4N2RhZjY5ZDFlLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA4MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwODE0VDE0MTQwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwYmVhMGExZjU1NTk0N2U4OTM0YmIxYWU0ODA5MTVmOTg5YzdiODljOWYzZGEyZTc0MGU0MGIwZTViNDA0OGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmpwZWcifQ.mTiJU0JBeJatZN638wKTT2Zzgo_6cY850l2I2AhpNOU">
I just noticed that in your screenshot, the display settings window only has a close button. Does this window not resize on your system? This could explain why the display preview widget doesn't fit into the existing layout.
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" />
The display properties window can be resized larger but not smaller, and internal contents do not resize on
my setup
Okay, I confirm that this problem occurs on Wayfire
Latest commit fixes issue in my Wayfire setup
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.
Translation PR passed checks. will release 1.29.1 with this and updated translations
lukefromdc
Sunderland93
<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