Announcement

Collapse
No announcement yet.

A strange behavior while rearranging multiple monitors

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    A strange behavior while rearranging multiple monitors

    Hello,

    I'm experiencing a weird problem with the monitor configuration and window sizes. So,
    • [0-0] Default monitor arrangement as the system it detects (in RL the order is different, Dell - right, Samsung - left)
    Click image for larger version

Name:	0-0.png
Views:	159
Size:	558.5 KB
ID:	667454
    • [0-1, 0-2]. All kde application, e.g. terminal, dolphin, etc. keeps their correct sizes and positions
    Click image for larger version

Name:	0-2.png
Views:	163
Size:	401.6 KB
ID:	667455 ​​​​​​​
    • open, close, open, close - it keeps correct sizes & positions
    • [1-0] !BUG! After a rearranging the monitors to a correct order
    Click image for larger version

Name:	1-0.png
Views:	167
Size:	562.6 KB
ID:	667451 ​​​​​​​
    • [1-1, 1-2] size & position won't keep as expected
    Click image for larger version

Name:	1-1.png
Views:	164
Size:	709.0 KB
ID:	667453 ​​​​​​​ Click image for larger version

Name:	1-2.png
Views:	164
Size:	588.0 KB
ID:	667452

    The system configuration is [2-0]
    • Operating System: Kubuntu 22.04
    • KDE Plasma Version: 5.24.7
    • KDE Frameworks Version: 5.92.0
    • Qt Version: 5.15.3
    • Kernel Version: 5.15.0-56-generic (64-bit)
    • Graphics Platform: X11
    • Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
    • Memory: 31.3 GiB of RAM
    • Graphics Processor: AMD Radeon RX 580 Series​
    Do you have any idea what should be the problem here?



    Attached Files
    Last edited by PeterGriffin; Dec 28, 2022, 04:27 PM.

    #2
    I don't have a multi-monitor setup so cannot really comment on your specific issue, but I did note from Nate Graham's blog in mid December that KDE developers have refactored multi-monitor support for the upcoming Plasma 5.27 release (due mid February 2023) - see https://pointieststick.com/2022/12/1...-multi-screen/ - so this might resolve your problem, either in Kubuntu 23.04 or via backports, if you can wait until then, although he does mention that this is only the first (big) step in addressing such issues.

    Comment


      #3
      As noted above, the problem is a known issue. Usually the misbehavior is coming from the "kscreen2" package. Until the update occurs you can manually handle this with a little effort.

      Set your monitors to your liking and run "xrandr" and take note of the arrangement there. You'll need to know the output name, the resolution, and the position. It will look something like:
      Code:
      HDMI-0 connected primary 1920x1080+0+0
      HDMI-1 connected 1680x1050+1920+0
      In the above example, the outputs are HDMI-0 and HDMI-1, the resolutions are 1920x1080​ and 1680x1050, and the positions are 0+0 and 1920+0. The position "+1920+0" means the second monitor is "Right Of" (+1920) and the upper row of pixels is level or even with (+0) the upper row of the first monitor. You can adjust these to raise or lower the logical position of the second monitor to your liking. The mouse will enter and exit the second screen based on the logical locations of the monitors.

      You can ignore everything right of the position info.

      ​Then you'll need to make a script that contains the xrandr commands to replicate the above info. From the example:

      Code:
      xrandr --output HDMI-0 --mode 1920x1080 ​--primary
      xrandr --output HDMI-1 --mode 1680x1050 --right-of HDMI-0
      Using "right-of" gives the default "top edge level and immediately to the right of HDMI-0" position. You can use --pos XxY instead if you want to "raise" or "lower" the second monitor, or even to create a gap between them.

      Once you have the commands to your liking, put them in an executable bash script:

      Code:
      #!/bin/bash
      xrandr --output HDMI-0 --mode 1920x1080 ​--primary
      xrandr --output HDMI-1 --mode 1680x1050 --right-of HDMI-0
      Save it to a location in your home and execute it at the end of your ~/.profile or using the log-in setting. Last I tried, putting a script in System Settings > Startup and Shutdown > Autostart wasn't working, but maybe they fixed it by now.

      You'll likely need to remove the kscreen2 package as well.

      Try it and report how it goes...

      Please Read Me

      Comment

      Working...
      X