Author Topic: HOWTO: Make Plasma 5 remember dual-monitor randr settings + Window Positions!  (Read 4104 times)

0 Members and 1 Guest are viewing this topic.

Offline wolfyrion

  • Sr. Mitglied
  • ****
  • Posts: 375
  • Branch: UNSTABLE
  • Desktop: PLASMA/KDE
  • GPU Card: ZOTAC AMP EXTREME EDITION 980
  • GPU driver: NON-FREE
  • Kernel: LATEST
  • Skill: Intermediate
A lot of my friends were loosing there monitor setups using Plasma 5 when they were rebooting so they have asked me to write a tutorial of how to save dual-monitor randr settings.

I will make it as easy as it gets

1. Install arandr

sudo pacman -S arandr

2. Launch arandr and arrange  your monitors and resolutions accordingly


3. When you finish go layout save as and give it a name


4. go to Plasma 5 Autostart and add it as a program with executable rights or as a script (i prefer as a program)


We are done with the first part , now Plasma 5 will remember dual-monitor randr settings :D

Second part saving window position

Now for people that have some applications that auto run and want there window to stay permanently in a certain position
For example I wand these application windows Turpial and Clementine to stay in these positions after rebooting my pc on my second monitor not to have to drag and drop every time I boot my pc


1. You have to use Plasma 5 Window Rules - KDE Control Module

First move all the application window to your desired positions

Click [NEW]


On Description write your application name easy to remember
Click Detect Window Properties
Select your desired window and click on it and kwin rules will inherit the position and size of that window application

Now if you go to the next tab [Size and Position] you can Enable Position and size and use Force.


Maybe you will have to experiment a bit but you will get it at the end :)

So with this tutorial you will never loose your display configuration settings or your window positions

Cheers

Wolf  ;D









« Last Edit: 22. August 2015, 20:29:27 by wolfyrion »

Offline Orbmiser

  • Sr. Mitglied
  • ****
  • Posts: 415
  • Photographer / Techy Ole' Fart
  • Branch: Stable
  • Desktop: Netrunner Plasma 5
  • GPU Card: Ati 4350 Dual Displays
  • GPU driver: Free Open Driver
  • Kernel: 4.1.16-1
  • Skill: Novice
Cool tutorial but wonder the need for this? Is it because of proprietary video drivers?

As upgrade a couple of weeks ago added back the right click>more actions>special windows or applications settings to titlebar of application. Where you can position and size the app then right click titlebar and special applications settings and on the 2nd tab click on Remember Size and Position. Also using default open drivers my dual monitors remember their position.

Before the fix in upgrades before they added it back for special actions. I had to do the part you explained procedure.
Quote
"Click Detect Window Properties
Select your desired window and click on it and kwin rules will inherit the position and size of that window application"

But not since they added back special actions to Plasma 5.
And my Dual 22" monitors are remembering their positions without issues.
Maybe I'm just missing something?


« Last Edit: 22. August 2015, 21:47:41 by Orbmiser »

Offline wolfyrion

  • Sr. Mitglied
  • ****
  • Posts: 375
  • Branch: UNSTABLE
  • Desktop: PLASMA/KDE
  • GPU Card: ZOTAC AMP EXTREME EDITION 980
  • GPU driver: NON-FREE
  • Kernel: LATEST
  • Skill: Intermediate
Personally I am using proprietary drivers and most of the times I was loosing the display settings in Plasma 5 on my 28" and 24" Monitors.
As far as I remember was after a kernel update, or some Manjaro Updates , or at reboot sometimes without a reason.

The only way to fix it was with that tutorial I posted.

Is just a tutorial no big deal , hopefully it will help some users :)



Offline Orbmiser

  • Sr. Mitglied
  • ****
  • Posts: 415
  • Photographer / Techy Ole' Fart
  • Branch: Stable
  • Desktop: Netrunner Plasma 5
  • GPU Card: Ati 4350 Dual Displays
  • GPU driver: Free Open Driver
  • Kernel: 4.1.16-1
  • Skill: Novice
Yep not a big deal and glad you shared it. Was just clarifying who it was for is all.
As always Great for individuals to share their solutions for issues.

Offline melquizedeq

  • Neuling
  • *
  • Posts: 5
  • I'm new. Be nice!
  • Skill: Novice
Thanks! works for screens but not for panel.. i have two, one for display with sistem tray and task manager etc.. every time bootup, the two panels starts overlaped.. any ideas?

Offline wolfyrion

  • Sr. Mitglied
  • ****
  • Posts: 375
  • Branch: UNSTABLE
  • Desktop: PLASMA/KDE
  • GPU Card: ZOTAC AMP EXTREME EDITION 980
  • GPU driver: NON-FREE
  • Kernel: LATEST
  • Skill: Intermediate
I have tried to cause this error on my dual monitor but is not happening ><
Every panel I create is keeping the settings.

some things to check

go to --> /home/<yourusername>/.config/plasma-org.kde.plasma.desktop-appletsrc

Open this file with a text editor and search for panel

[Containments][1]
activityId=
formfactor=2
immutability=1
lastScreen=0
location=4
plugin=org.kde.panel
wallpaperplugin=org.kde.image

As you can see lastscreen=0 should be your primary and lastscreen=1 should be your second, be sure that you have marked your monitor as primary using ArandR!
check panels that are going to correct monitors.

2.  delete sessions , sometimes they are causing problems so delete everything from there

/home/<yourusername>/.config/session/


3. delete your cache

/home/<yourusername>/.cache

Good Luck!