Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting monitor geometry and physical size for KWin wayland
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 290

PostPosted: Fri Oct 04, 2024 11:49 am    Post subject: Setting monitor geometry and physical size for KWin wayland Reply with quote

How do I set the monitor layout, geometry and their physical size for a KWin/Plasma 6 Wayland session?

Especially, the physical size of each monitor is important to such that the DPI values are calculated correctly such that 100% scaling (e.g. a DIN-A4 page in LibreOffice or Inkscape) appears at the same size as a DIN-A4 page in the real world. With KWin/Plasma 5 on X.Org I had the following settings in my X.Org configuration.
Code:
Section "Device"
    Identifier "AMD RX 6600 (Navi23 Dimgrey Cavefish Family)"
    Driver "amdgpu"
    Option "AccelMethod" "glamor"
    Option "DRI" "3"
    Option "Monitor-DisplayPort-0" "EIZO-0"
    Option "Monitor-DisplayPort-1" "EIZO-1"
    Option "Monitor-DisplayPort-2" "EIZO-2"
EndSection

Section "Monitor"
        Identifier "EIZO-0"
        DisplaySize 520 325
        Option "PreferredMode" "1920x1200"
        Option "Position" "3120 720"
        Option "DPI" "94"
EndSection

Section "Monitor"
        Identifier "EIZO-1"
        DisplaySize 520 325
        Option "Primary" "yes"
        Option "PreferredMode" "1920x1200"
        Option "Position" "1200 720"
        Option "DPI" "94"
EndSection

Section "Monitor"
        Identifier "EIZO-2"
        DisplaySize 520 325
        Option "PreferredMode" "1920x1200"
        Option "Rotate" "left"
        Option "Position" "0 0"
        Option "DPI" "94"
EndSection

Obviously, KWin 6 with Wayland doesn't use X.Org. Where do I put those settings instead? Preferably, there is a global setting (somewhere in /etc) as a default which applies to all new user which have never logged in before and those who have not personalized the setup.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9320

PostPosted: Sat Oct 05, 2024 11:31 am    Post subject: Reply with quote

You may want to look into what kscreen-doctor can do for you, it is part of libkscreen.

Does your display size actually need changing? You can install wayland-utils and use wayland-info to query physical_width (as presumably reported by EDID).
Back to top
View user's profile Send private message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 290

PostPosted: Sun Oct 06, 2024 11:58 am    Post subject: Reply with quote

I did. Unfortunately it did not solve the issue. I wrote a rather long post at https://discuss.kde.org/t/return-dpi-resolution-adjustments-in-font-settings-support/11860/29 and reported a bug at https://bugs.kde.org/show_bug.cgi?id=494206.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum