You are not logged in.

#1 2021-08-15 20:40:31

srgrusso
Member
Registered: 2017-11-16
Posts: 10

KDE window position on second monitor after wakeup [solved]

The problem I am having is when I wake the monitor up from sleep.  All the windows on the second monitor are all lined up to the edge of the second monitor and not where I had them.  I installed Manjaro to see if the issue exists there and it doesn't. 
Does anybody have any ideas to solve this issue or how I can figure out what is different in Manjaro?

Thanks

Last edited by srgrusso (2021-08-23 00:35:48)

Offline

#2 2021-08-22 22:53:23

srgrusso
Member
Registered: 2017-11-16
Posts: 10

Re: KDE window position on second monitor after wakeup [solved]

So I figured out this is caused by dpms and disabling dpms isn't an option.

Is there a way to solve this?

Offline

#3 2021-08-23 00:38:26

srgrusso
Member
Registered: 2017-11-16
Posts: 10

Re: KDE window position on second monitor after wakeup [solved]

This was solved by add amdgpu.dc=0 to the kernel command line.

Edit:
One drawback with this solution is I lost hdmi/dp sound.

Last edited by srgrusso (2021-08-23 04:01:31)

Offline

#4 2021-08-23 06:31:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,491

Re: KDE window position on second monitor after wakeup [solved]

"kcmshell5 kded", see whether there's a kscreen service and whether disabling it helps.
The output will likely unregister on DPMS, kscreen udpates the configuration (because you just "removed" an output) and the window manager sanitizes the window positions.

Alternatively, test and delay the dpms "off" value ad infinitum

xset dpms force standby # windows moved?
xset dpms force suspend # windows moved?
xset dpms force off # windows moved!?!
xset dpms 360 420 0 # should™ avoid the "off" mode

Offline

#5 2021-08-24 01:13:24

srgrusso
Member
Registered: 2017-11-16
Posts: 10

Re: KDE window position on second monitor after wakeup [solved]

"The output will likely unregister on DPMS, kscreen udpates the configuration (because you just "removed" an output) and the window manager sanitizes the window positions." This reflects what I believe is happening.

I tried uninstalling kscreen and I thought it fixed the problem but it started happening with out it.
I also tried xset -dpms and that solve the issue until dpms turned back on.  I don't have a clear understanding how this works yet.

xset dpms force standby # windows moved? = yes
xset dpms force suspend # windows moved? = no but the monitor doessn't turn off
xset dpms force off # windows moved!?! =no  but the monitor doessn't turn off

I have a PowerColor Red Devil AMD Radeon RX 6700 XT  on order and will see if I still have this problem.

Thanks for you help.

Last edited by srgrusso (2021-08-24 01:13:54)

Offline

#6 2021-08-24 05:36:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,491

Re: KDE window position on second monitor after wakeup [solved]

will see if I still have this problem

Probably - it's most likely the Monitor (Model? You could also check whether this behavior is configurable)

It also *only* responds to DPMS/standby so efforts in being selective here won't work (kde/powerdevil/screenlocker will have their own settings fro DPMS, "xset dpms whatever" is transient, but you can configure DPMS in some xorg.conf.d configlet)

Section "ServerFlags"
       Option "BlankTime"  "0"
       Option "StandbyTime"  "0"
       Option "SuspendTime"  "0"
       Option "OffTime"  "0"
EndSection

See https://man.archlinux.org/man/extra/xor … .conf.5.en & https://man.archlinux.org/man/extra/xor … onf.d.5.en

Offline

Board footer

Powered by FluxBB