Bug 474021 - Scale factor is reset to 100% after switching back from TTY
Summary: Scale factor is reset to 100% after switching back from TTY
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: master
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6, regression, wayland
Depends on:
Blocks:
 
Reported: 2023-09-01 12:28 UTC by Fushan Wen
Modified: 2024-01-02 16:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
qydwhotmail: Wayland+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fushan Wen 2023-09-01 12:28:26 UTC
SUMMARY



STEPS TO REPRODUCE
1. Set 200% scale factor
2. Ctrl+Alt+F1 to switch to tty1
3. Ctrl+Alt+F3 to switch to Plasma

OBSERVED RESULT
Scale factor is reset to 100%

EXPECTED RESULT
Scale factor is 200%

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: kwin at b78258e46411103a5a3c9e953ba6dd5c78340e5d
KDE Frameworks Version: 
Qt Version: 6.5.2

ADDITIONAL INFORMATION
Wayland
Comment 1 Fushan Wen 2023-09-01 15:24:03 UTC
I have two screens, one's scale factor is 200%, the other's is 100%. Not sure if it's related.
Comment 2 Nate Graham 2023-09-07 16:54:27 UTC
Hmm, cannot reproduce with one screen at 200%, or two screens with one at 200% and one at 100%. Wayland P6 of course.
Comment 3 Zamundaaa 2023-10-05 19:42:14 UTC
Git commit ae84480fbfdc684b8ee4b0207d3ce679f6fb4cd7 by Xaver Hugl.
Committed on 05/10/2023 at 20:29.
Pushed by zamundaaa into branch 'master'.

outputconfigurationstore: add new config system

Instead of an external service (like KScreen) storing and restoring output configurations,
with this commit KWin takes over that responsibility. This allows it to, among other things,
generate appropriate configs for new sets of outputs immediately, and take KWin-internal information
about outputs into account when generating them.
Related: bug 466208, bug 455082, bug 457430, bug 469653, bug 466342, bug 470863, bug 466556

M  +1    -0    CMakeLists.txt
M  +1    -0    autotests/integration/kwin_wayland_test.cpp
M  +1    -0    src/CMakeLists.txt
M  +5    -0    src/backends/drm/drm_output.cpp
M  +9    -0    src/core/output.cpp
M  +11   -0    src/core/output.h
M  +1    -0    src/core/outputconfiguration.h
M  +7    -0    src/main.cpp
M  +1    -0    src/main.h
M  +0    -4    src/main_wayland.cpp
M  +709  -20   src/outputconfigurationstore.cpp
M  +68   -4    src/outputconfigurationstore.h
M  +1    -0    src/utils/CMakeLists.txt
M  +8    -0    src/utils/edid.cpp
M  +8    -0    src/utils/edid.h
A  +54   -0    src/utils/orientationsensor.cpp     [License: GPL(v2.0+)]
A  +38   -0    src/utils/orientationsensor.h     [License: GPL(v2.0+)]
M  +34   -1    src/wayland/outputdevice_v2.cpp
M  +1    -0    src/wayland/outputdevice_v2.h
M  +12   -1    src/wayland/outputmanagement_v2.cpp
M  +49   -6    src/workspace.cpp
M  +2    -0    src/workspace.h

https://invent.kde.org/plasma/kwin/-/commit/ae84480fbfdc684b8ee4b0207d3ce679f6fb4cd7
Comment 4 Fushan Wen 2024-01-02 16:36:59 UTC
Cannot reproduce recently