KDE uses wrong resolution after restart

After a restart, everything on becomes big and its pretty hard to use, I guess its an resolution problem, but I’m not sure yet because the following things.

The results of

xrandr

is


Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 214mm
   1920x1080    144.01*+
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)

And the KDE resolution settings are 1920 x 1080 too. But using screen.height and screen.width in chromium shows 797 and 1417 relatively.

I don’t know what have gone wrong and what extra info should I get, and how can I solve this problem. Can someone help me?

Check DPI settings in KDE. It may be that you need to adjust down manually for example.

These may be of interest to you…
https://en.opensuse.org/High_DPI
https://wiki.archlinux.org/index.php/HiDPI#KDE_Plasma

If this is sudden change how are you connecting?
Check for lose plugs

So, it can be DPI that go wrong instead of the resolution? I didn’t get it, can you explain it in detail?

Read the wiki pages I linked to as they explain various KDE settings that can be changed to help optimise the display to a user’s liking.

I’m sorry, but it didn’t work for me. In tumbleweed there’s no sddm.conf and I don’t think it is safe to create another, and I don’t think its a DPI error, for the resolution just changed after an restart and the resolution did change according to the nodejs and chromium javascript variables. Its really strange, is there a way to reset everything in KDE? removing ~/.kde5 didn’t work for me for some reason. Maybe because its tumbleweed?

Read here regarding tumbleweed and sddm.conf
https://en.opensuse.org/Sddm

Side note:To check which display-manager is in use…

sudo systemctl status display-manager

Changing it if necessary
https://en.opensuse.org/SDB:Change_Display_Manager

When you say this happened after a restart, had updates/upgrades been applied? Could it be possible some upgrade to the X11 has changed your default driver?

I think I’ve seen similar behaviour when my proprietary Nvidia driver has been sidelined by an upgrade.

Perhaps there are clues in /var/log/Xorg.0.log or /home/<your_username>/.local/share/sddm/xorg-session.log