You are not logged in.

#1 2020-09-27 05:44:03

hzhangxyz
Member
Registered: 2018-03-26
Posts: 6

[SOLVED] Desktop not fit Monitor Layout after logout in KDE

Every time I logout and login or just directly reboot, My desktop layout become this

However, before I leave desktop, it is this, which is what layout should be when I login again.

I want to save my desktop layout to fit monitor layout.

Note: My Monitor layout is wrong in sddm interface, maybe they have the same reasons, my sddm interface have the biggest monitor at the left, and those two small monitor in at middle and right currently(I don't know where to set sddm monitor layout), so the wrong desktop layout is same to the monitor layout of sddm, not my monitor layout after login

---

Solution:

Thanks for ArcticStag's solution, KDE desktop use the monitor layout used in sddm, so I must correct the monitor layout in sddm, let it be the same to layout after login. Since there is no gui interface to configure sddm desktop layout, so we should edit X11 monitor layout directly by editing a file in /etc/X11/xorg.conf.d, mine is

```
Section "Monitor"
    Identifier    "DP-1"
    Option        "Primary" "true"
    Option        "PreferredMode" "1440x900"
    Option        "Position" "0 170"
EndSection

Section "Monitor"
    Identifier    "HDMI-1"
    Option        "PreferredMode" "1920x1080"
    Option        "Position" "1440 0"
EndSection

Section "Monitor"
    Identifier    "HDMI-2"
    Option        "PreferredMode" "1440x900"
    Option        "Position" "3360 190"
EndSection
```

Last edited by hzhangxyz (2020-09-27 09:38:18)


啊啊啊啊啊啊啊啊啊啊

Offline

#2 2020-09-27 06:57:34

ArcticStag
Member
Registered: 2020-09-14
Posts: 46

Re: [SOLVED] Desktop not fit Monitor Layout after logout in KDE

If you are using X11 you can set this in a config file in you /etc/X11/xorg.conf.d
I called mine 10-monitors.conf and in the file I have

Section "Monitor"
### Monitor Identity - Typically HDMI-0 or DisplayPort-0
    Identifier    "DP-2"

### Setting Resolution and Modes
## Modeline is usually not required, but you can force resolution with it
    Modeline      "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
    Option        "PreferredMode" "1920x1080"
    Option        "TargetRefresh" "60"

### Positioning the Monitor
## Basic
    Option "LeftOf " "DP-4"
## Advanced
    Option        "Position" "0 0"

## Disable a Monitor
#    Option        "Disable" "true"
EndSection

Section "Monitor"
### Monitor Identity - Typically HDMI-0 or DisplayPort-0
    Identifier    "DP-4"

### Setting Resolution and Modes
## Modeline is usually not required, but you can force resolution with it
#   Modeline      "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
    Option        "PreferredMode" "1920x1080"
    Option        "TargetRefresh" "60"

### Positioning the Monitor
## Basic
    Option "LeftOf " "DP-2"
## Advanced
    Option        "Position" "1920 0"

## Disable a Monitor
#    Option        "Disable" "true"
EndSection

You would need to adjust the Position and the Basic Option for positioning however this should work well

Hope this helps

Last edited by ArcticStag (2020-09-27 06:58:32)

Offline

#3 2020-09-27 07:05:53

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: [SOLVED] Desktop not fit Monitor Layout after logout in KDE

Please replace the oversized (board max is 200x200!) picture w/ a link and/or thumbnail.

You can setup the output layout using xrandr in /usr/share/sddm/scripts/Xsetup or the positional parameters in an xorg configlet, https://wiki.archlinux.org/index.php/Mu … _xorg.conf

Edit: see, if there wasn't the big image, I'd have F5'ed before posting :-P

Last edited by seth (2020-09-27 07:06:46)

Offline

#4 2020-09-27 09:28:31

hzhangxyz
Member
Registered: 2018-03-26
Posts: 6

Re: [SOLVED] Desktop not fit Monitor Layout after logout in KDE

@ArcticStag, Thank you very much, I am using X11, and your solution works for me, after setting the correct sddm layout, the desktop layout after login become correct too


啊啊啊啊啊啊啊啊啊啊

Offline

#5 2020-09-27 10:57:12

ArcticStag
Member
Registered: 2020-09-14
Posts: 46

Re: [SOLVED] Desktop not fit Monitor Layout after logout in KDE

hzhangxyz wrote:

@ArcticStag, Thank you very much, I am using X11, and your solution works for me, after setting the correct sddm layout, the desktop layout after login become correct too

No worries, Glad this worked out for you!

Offline

Board footer

Powered by FluxBB