You are not logged in.

#1 2024-03-16 12:01:27

gen2arch
Member
Registered: 2013-05-16
Posts: 182

[SOLVED] SDDM Greeter with absurdly huge fonts with Plasma 6 / Wayland

Hi

after updating to Plasma 6 and using a wayland session I get an ugly sddm greeter with extremly big fonts.

Never happended before.

Ho can I revert that to normal?

Thanks

gen2arch

Last edited by gen2arch (2024-03-17 14:46:33)

Offline

#2 2024-03-16 15:07:43

seth
Member
Registered: 2012-09-03
Posts: 51,682

Re: [SOLVED] SDDM Greeter with absurdly huge fonts with Plasma 6 / Wayland

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Most likely a https://wiki.archlinux.org/title/HiDPI issue?

(If you configured the fonts yourself, 8-12 is "normal"; if you configured 20+pt fonts to deal w/ your HiDPI output, that is the problem. If you don't have a HiDPI output you might want to override some of hte autodetects)

Do you run SDDM on wayland, too?

Offline

#3 2024-03-16 18:56:56

gen2arch
Member
Registered: 2013-05-16
Posts: 182

Re: [SOLVED] SDDM Greeter with absurdly huge fonts with Plasma 6 / Wayland

Sorry for the lack of information! Here is some more:

Kernel: 6.7.9-arch1-1 
KDE Plasma Version: 6.02
Frameworks: 6.0.0
Graphics Platform: Wayland
WM: kwin 
Resolution: 2880x1800 
Scaling: 150%
No particular font size setup

journalctl -b --grep sddm:

Mar 16 19:36:16 linux sddm-helper[1166]: pam_unix(sddm-greeter:session): session opened for user sddm(uid=962) by (uid=0)
Mar 16 19:36:16 linux systemd-logind[1089]: New session c1 of user sddm.
Mar 16 19:36:16 linux (systemd)[1174]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[] user=[sddm] ruser=[<unknown>] rhost=[<unknown>]
Mar 16 19:36:16 linux (systemd)[1174]: pam_unix(systemd-user:session): session opened for user sddm(uid=962) by sddm(uid=0)
Mar 16 19:36:16 linux systemd[1174]: Cleanup lingering KCrash metadata was skipped because of an unmet condition check (ConditionPathExistsGlob=/var/lib/sddm/.cache/kcrash-metadata/*.ini).
Mar 16 19:36:16 linux systemd[1174]: Submitting pending crash events was skipped because of an unmet condition check (ConditionPathExistsGlob=/var/lib/sddm/.cache/drkonqi/sentry-envelopes/*).
Mar 16 19:36:16 linux systemd[1174]: Cleanup lingering KCrash metadata was skipped because of an unmet condition check (ConditionPathExistsGlob=/var/lib/sddm/.cache/kcrash-metadata/*.ini).
Mar 16 19:36:16 linux systemd[1]: Started Session c1 of User sddm.
Mar 16 19:36:16 linux sddm-helper-start-wayland[1194]: Starting Wayland process "kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1" "sddm"
Mar 16 19:36:18 linux sddm-greeter-qt6[1198]: file:///usr/lib/qt6/qml/SddmComponents/LayoutBox.qml:35:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onF>
Mar 16 19:36:18 linux sddm-greeter-qt6[1198]: file:///usr/lib/qt6/qml/SddmComponents/ComboBox.qml:105:9: QML Image: Cannot open: file:///usr/lib/qt6/qml/SddmComponents/angle-down.png
Mar 16 19:36:18 linux sddm-greeter-qt6[1198]: file:///usr/lib/qt6/qml/SddmComponents/ComboBox.qml:105:9: QML Image: Cannot open: file:///usr/lib/qt6/qml/SddmComponents/angle-down.png
Mar 16 19:36:34 linux sddm-greeter-qt6[1198]: file:///usr/lib/qt6/qml/SddmComponents/PictureBox.qml:106:13 Parameter "event" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions>
Mar 16 19:36:37 linux sddm-helper[1295]: pam_kwallet5(sddm:auth): pam_kwallet5: pam_sm_authenticate
Mar 16 19:36:37 linux sddm-helper[1295]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Mar 16 19:36:37 linux sddm-helper[1295]: pam_unix(sddm:session): session opened for user me(uid=1000) by me(uid=0)
Mar 16 19:36:37 linux sddm-helper[1166]: pam_unix(sddm-greeter:session): session closed for user sddm
Mar 16 19:36:37 linux sddm[1161]: Auth: sddm-helper exited successfully
Mar 16 19:36:37 linux sddm[1161]: Greeter stopped. SDDM::Auth::HELPER_SUCCESS
Mar 16 19:36:37 linux sddm-helper[1295]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Mar 16 19:36:37 linux sddm-helper[1295]: Starting Wayland user session: "/usr/share/sddm/scripts/wayland-session" "/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland"
Mar 16 19:36:47 linux (sd-pam)[1176]: pam_unix(systemd-user:session): session closed for user sddm



/etc/sddm.conf.d/10-wayland.conf:
[General]
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell,XKB_DEFAULT_LAYOUT=en
[Wayland]
CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1


/etc/sddm.conf.d/hidpi.conf:
[Wayland]
EnableHiDPI=true
[X11]
EnableHiDPI=true

All fonts look great throughout the wayland session; only sddm before logging in is affected.

Is there a way to explicitely set the font size on the sddm greeter?

Thanks

gen2arch

Last edited by gen2arch (2024-03-16 19:00:20)

Offline

#4 2024-03-16 21:13:25

seth
Member
Registered: 2012-09-03
Posts: 51,682

Re: [SOLVED] SDDM Greeter with absurdly huge fonts with Plasma 6 / Wayland

What happens if you simply disable the hidpi setting?
Fonts toobig™, toosmall™ or goldilocks?

Offline

#5 2024-03-17 11:05:43

gen2arch
Member
Registered: 2013-05-16
Posts: 182

Re: [SOLVED] SDDM Greeter with absurdly huge fonts with Plasma 6 / Wayland

seth wrote:

What happens if you simply disable the hidpi setting?
Fonts toobig™, toosmall™ or goldilocks?

I deleted /etc/sddm.conf.d/hidpi.conf: no change, visual elements on greeter too big, like in very low resolution.

I then edited /etc/sddm.conf.d/10-wayland.conf to:

[General]
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell,XKB_DEFAULT_LAYOUT=de

that is, I deleted in the "[wayland]" section in it:

[Wayland]
CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1

Problem disappeared!

But I dug further: upon boot with the offending line in /etc/sddm.conf.d/10-wayland.conf deleted I get in journalctl:

Mar 17 10:45:54 linux systemd[1]: Started Session c1 of User sddm.
Mar 17 10:45:54 linux sddm-helper-start-wayland[1199]: Starting Wayland process "weston --shell=kiosk" "sddm"
Mar 17 10:45:54 linux sddm-helper-start-wayland[1199]: SDDM was unable to start "weston --shell=kiosk"
Mar 17 10:45:54 linux sddm-helper[1169]: pam_unix(sddm-greeter:session): session closed for user sddm
Mar 17 10:45:54 linux sddm[1163]: Auth: sddm-helper exited with 4
Mar 17 10:45:54 linux sddm[1163]: Greeter stopped. SDDM::Auth::HELPER_DISPLAYSERVER_ERROR
Mar 17 10:45:54 linux sddm[1163]: Removing display SDDM::Display(0x5c7ead2d1ad0) ...
Mar 17 10:45:54 linux sddm-helper[1202]: pam_unix(sddm-greeter:session): session opened for user sddm(uid=962) by (uid=0)
Mar 17 10:45:54 linux systemd-logind[1084]: New session c2 of user sddm.
Mar 17 10:45:54 linux systemd[1]: Started Session c2 of User sddm.
Mar 17 10:45:54 linux sddm-helper[1202]: Starting X11 session: "/usr/bin/X -nolisten tcp -background none -seat seat0 -noreset -keeptty -novtswitch -verbose 3" "/usr/bin/sddm-greeter-qt6 --socket /tmp/sddm--x>
Mar 17 10:45:54 linux sddm-helper-start-x11user[1203]: Running display setup script: /usr/share/sddm/scripts/Xsetup
Mar 17 10:45:54 linux sddm-helper-start-x11user[1203]: "(--) Log file renamed from \"/var/lib/sddm/.local/share/xorg/Xorg.pid-1204.log\" to \"/var/lib/sddm/.local/share/xorg/Xorg.0.log\"\n\nX.Org X Server 1.2>

If  I understand this correctly:
1. if the "[wayland]" section in /etc/sddm.conf.d/10-wayland.conf is missing: the wayland session for SDDM fails and
2. SDDM runs under X
3. Running under X resolution and size of the visual elements are correct!

So far so good, but here is the really weird thing that really solved the problem:

upon reading this I went to System Settings > Colors & Themes > Login Screen (SDDM):

none was activated! (Breeze, Elarun etc), although I set "Breeze" in "global Theme".

As soon as I set "Breeze" manually also in Login Screen (SDDM) of "Settings", asking for my passwd to do the change, upon reboot I was presented with the "Breeze" Greeter in perfectly correct res and look!

And journalctl -b --grep sddm looks like this:

Mar 17 11:27:26 linux sddm[1185: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
Mar 17 11:27:26 linux sddm-helper[1190]: pam_unix(sddm-greeter:session): session opened for user sddm(uid=962) by (uid=0)
Mar 17 11:27:26 linux systemd-logind[1120]: New session c1 of user sddm.
Mar 17 11:27:26 linux (systemd)[1200]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[] user=[sddm] ruser=[<unknown>] rhost=[<>
Mar 17 11:27:26 linux (systemd)[1200]: pam_unix(systemd-user:session): session opened for user sddm(uid=962) by sddm(uid=0)
Mar 17 11:27:26 linux systemd[1200]: Cleanup lingering KCrash metadata was skipped because of an unmet condition check (ConditionPathExistsGlob=/var/lib/sddm/.cache/kcrash-metadata/*.>
Mar 17 11:27:26 linux systemd[1200]: Submitting pending crash events was skipped because of an unmet condition check (ConditionPathExistsGlob=/var/lib/sddm/.cache/drkonqi/sentry-envel>
Mar 17 11:27:26 linux systemd[1200]: Cleanup lingering KCrash metadata was skipped because of an unmet condition check (ConditionPathExistsGlob=/var/lib/sddm/.cache/kcrash-metadata/*.>
Mar 17 11:27:26 linux systemd[1]: Started Session c1 of User sddm.
Mar 17 11:27:26 linux sddm-helper-start-wayland[1210]: Starting Wayland process "kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1" "sddm"
Mar 17 11:27:28 linux sddm-greeter-qt6[1214]: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
Mar 17 11:27:28 linux sddm-greeter-qt6[1214]: Loading file:///usr/share/sddm/themes/breeze/Main.qml...
Mar 17 11:27:29 linux sddm-greeter-qt6[1214]: file:///usr/share/sddm/themes/breeze/KeyboardButton.qml:19: TypeError: Cannot read property 'longName' of undefined
Mar 17 11:27:43 linux sddm-greeter-qt6[1214]: file:///usr/share/sddm/themes/breeze/Main.qml:241:17 Parameter "username" is not declared. Injection of parameters into signal handlers i>
Mar 17 11:27:43 linux sddm-helper[1346]: pam_kwallet5(sddm:auth): pam_kwallet5: pam_sm_authenticate
Mar 17 11:27:43 linux sddm-helper[1346]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Mar 17 11:27:43 linux sddm-helper[1346]: pam_unix(sddm:session): session opened for user me(uid=1000) by me(uid=0)
Mar 17 11:27:43 linux sddm-helper[1190]: pam_unix(sddm-greeter:session): session closed for user sddm
Mar 17 11:27:43 linux sddm[1185]: Auth: sddm-helper exited successfully
Mar 17 11:27:43 linux sddm[1185]: Greeter stopped. SDDM::Auth::HELPER_SUCCESS
Mar 17 11:27:43 linux sddm-helper[1346]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Mar 17 11:27:43 linux sddm-helper[1346]: Starting Wayland user session: "/usr/share/sddm/scripts/wayland-session" "/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayl>

And: it was the "Breeze" Greeter in fact and not the (old?) one I got before.

Before I didn't get the "purple pill" like, psychedelic tree image but a completely different abstract blue greeter.

So to sum up: after upgrading to Plasma 6 the old blue greeter lingered on, was shown in wrong resolution; manually setting "Breeze" in SDDM Settings solved the problem.

gen2arch

Offline

#6 2024-03-17 16:02:52

seth
Member
Registered: 2012-09-03
Posts: 51,682

Re: [SOLVED] SDDM Greeter with absurdly huge fonts with Plasma 6 / Wayland

If  I understand this correctly:

Yes, it tries weston first, but you don't have that installed.

Mar 17 11:27:26 linux sddm-helper-start-wayland[1210]: Starting Wayland process "kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1" "sddm"

returned automatically?
There's somehow no greeter theme in the journal segment in #3 what's consistent w/ your findings.

Did you try to return the HiDPI settings, too?

Offline

#7 2024-03-19 09:34:13

gen2arch
Member
Registered: 2013-05-16
Posts: 182

Re: [SOLVED] SDDM Greeter with absurdly huge fonts with Plasma 6 / Wayland

seth wrote:

Did you try to return the HiDPI settings, too?

Yes! I reverted everything back to prior conf: in /etc/sddm.conf.d I now have three files:

1. 10-wayland.conf

[General]
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell,XKB_DEFAULT_LAYOUT=en
[Wayland]
CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1

2. hidpi.conf

[Wayland]
EnableHiDPI=true

[X11]
EnableHiDPI=true

3. an automatically created kde_settings.conf that reflected my manual choice of the Breeze Greeter

[Autologin]
Relogin=false
Session=
User=

[General]
HaltCommand=/usr/bin/systemctl poweroff
RebootCommand=/usr/bin/systemctl reboot

[Theme]
Current=breeze

[Users]
MaximumUid=60513
MinimumUid=1000

Also, an up to now empty file /etc/sddm.conf has been created.

All this being said: I still find everything on the Breeze Greeter to big! :-) although it looks normal now and I guess lots of people like it like that.
Is there a way to configure the look of the Greeter?

Thanks again

gen2arch

Offline

#8 2024-03-19 17:26:15

seth
Member
Registered: 2012-09-03
Posts: 51,682

Re: [SOLVED] SDDM Greeter with absurdly huge fonts with Plasma 6 / Wayland

https://wiki.archlinux.org/title/SDDM#Theme_settings ?
(idk how many of them/which have been ported to KDE6, though)

Offline

Board footer

Powered by FluxBB