Monitor order resets after screen power off

I have a laptop with two external monitor attached, which i configure this way:

xrandr --output "DP-1" --auto --primary # external on Display-port primary
xrandr --output "HDMI-1" --right-of "DP-1" --auto # external on HDMI is secondary
xrandr --output "eDP-1" --off # bultin-in monitor off

Everything worked just fine until i’ve upgraded lubuntu to Ubuntu 22.04.1 LTS jammy, now every time the monitors go off for inactivity, they re-order and get back to default order, like doing a xrandr --auto (built-in goes back to primary and the other two gets re-ordered)

I’ve tried to fiddle with xsreensaver and screen management, to no avail.

Any idea why it started to act this way, and to stop it?

3 Likes

Could you trigger the problem and then share the tail end of your /var/log/syslog file (maybe the last 50 to 100 lines or so)? Maybe the problem’s source will show up there.

1 Like

Yeah, there is something. There are a lot of lines, about 300. Plus as many as i fix things back.

I’ll just post the first lines, 300 are way too much

Oct 28 16:44:22 gerry-unimi gerry: MARK before poweroff
Oct 28 16:44:32 gerry-unimi kscreen_backend_launcher[11331]: kscreen.xrandr: XRandR::setConfig
Oct 28 16:44:32 gerry-unimi kscreen_backend_launcher[11331]: kscreen.xrandr: Requested screen size is QSize(5760, 1080)
Oct 28 16:44:32 gerry-unimi kscreen_backend_launcher[11331]: kscreen.xrandr: Needed CRTCs:  3
Oct 28 16:44:32 gerry-unimi kscreen_backend_launcher[11331]: kscreen.xrandr: Actions to perform:
Oct 28 16:44:32 gerry-unimi kscreen_backend_launcher[11331]:  #011Primary Output: true
Oct 28 16:44:32 gerry-unimi kscreen_backend_launcher[11331]: kscreen.xrandr: #011#011Old: 66
Oct 28 16:44:32 gerry-unimi kscreen_backend_launcher[11331]:  #011#011New: 65
Oct 28 16:44:32 gerry-unimi kscreen_backend_launcher[11331]: kscreen.xrandr: #011Change Screen Size: true

Seems XRandR::setConfig gets triggered when it powers off, but why?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.