https://bugs.kde.org/show_bug.cgi?id=360058

--- Comment #15 from Sergio <sergio.calleg...@gmail.com> ---
What I see does in fact seem consistent with your last comment.

As soon as I am in a place where I have external screens to swap, I'll collect
the logs and send them to you.

My feeling is that what is going on is something following these lines:

* The kscreen db has 3 "configurations" stored:
  - Laptop screen only: connector eDP1 edid "foo"
  - Laptop screen with Samsung full HD monitor: eDP1 + "foo" and HDMI2 + "bar"
  - Laptop screen with DELL monitor (lower res): eDP1 + "foo" and HDMI2 + "baz"

Suppose that I am working with the setup with the external Samsung monitor.

If I:

- detach the monitor, kscreen correctly moves to the configuration with the
laptop screen only.
- then suspend and restore the laptop, the laptop resumes with the laptop
screen configuration.
- now attach the dell monitor, kscreen correctly sees the new monitor and reads
its edid, understands it needs to move to the config for the dell monitor.

So far so good.

Conversely if I:

suspend the laptop, detach the external samsung monitor, attach the dell
monitor, resume, then kscreen sees that I still have an external monitor
attached, but keeps seeing the edid from the Samsung monitor and so does not
see a new coniguration hash and does not understand that it needs to switch to
the "dell" config. This seems confirmed by the fact that the kde setup screen
dialog shows the Samsung model number for the external monitor. 

At this point, even if I detach and reattach the external monitor, kscreen
seems to not re-querying the edid. The only way to have it understand that I
have the dell monitor is killing kscreen_backend_launcher, that gets
immediately respawn. Unfortunately, if I do so, at this point kscreen updates
its database, writing in it that the default resolution to use with the dell
monitor is the current one, that unfortunately is still the resolution of the
Samsung monitor (too high).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to