Bug 433322 - [systemd boot] virtual keyboard loops trying to get enabled if open systemsettings from keyboard shortcut
Summary: [systemd boot] virtual keyboard loops trying to get enabled if open systemset...
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.21.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-20 12:21 UTC by Thiago Sueto
Modified: 2021-03-23 04:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Virtual keyboard trying to initialize. (2.09 MB, video/x-matroska)
2021-02-20 12:40 UTC, Thiago Sueto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Sueto 2021-02-20 12:21:33 UTC
SUMMARY
I use Ctrl+Alt+S to open System Settings more often than by clicking the launcher.
In recent updates however whenever I open System Settings by using my keyboard shortcut, the virtual keyboard (looks like Qt's) keeps glitching as if attempting to open itself continuously.
I have not configured anything to load the qtvirtualkeyboard.
This only happens with systemdboot enabled and with keyboard shortcuts.
It doesn't happen without systemdboot and it doesn't happen by clicking the launcher.

STEPS TO REPRODUCE
1. enable systemdboot
2. create keyboard shortcut to open systemsettings
3. open systemsettings via keyboard shortcut

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210218 (Krypton)
KDE Plasma Version: 5.21.80
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 1 Thiago Sueto 2021-02-20 12:40:16 UTC
Created attachment 135965 [details]
Virtual keyboard trying to initialize.

I forgot to mention: seems to be happening only on Wayland, and it does not happen on every boot.
Comment 2 David Edmundson 2021-02-20 14:51:34 UTC
Well that's weird.

Can I have the result of both:

qdbus org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager.Environment


cat /proc/`pidof plasmashell`/environ | tr '\0' '\n'
Comment 3 Thiago Sueto 2021-02-20 19:22:50 UTC
qdbus output:

GTK_USE_PORTAL=1
HOME=/home/blumen
LANG=pt_BR.UTF-8
LOGNAME=blumen
PATH=/home/blumen/bin:/usr/local/bin:/usr/bin:/bin:/home/blumen/.dotnet/tools
PLASMA_PRELOAD_POLICY=aggressive
QT_IM_MODULE=
SHELL=/bin/bash
USER=blumen
XDG_DATA_DIRS=/home/blumen/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_RUNTIME_DIR=/run/user/1000
AUDIODRIVER=pulseaudio
COLORTERM=1
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
CPU=x86_64
CSHEDIT=emacs
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=/usr/share/wayland-sessions/plasmafullwayland
DISPLAY=:1
FROM_HEADER=
GDK_BACKEND=wayland
GPG_TTY=/dev/tty2
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/blumen/.gtkrc-2.0:/home/blumen/.config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:/home/blumen/.gtkrc:/home/blumen/.config/gtkrc
G_BROKEN_FILENAMES=1
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
HISTSIZE=1000
HOST=localhost.localdomain
HOSTNAME=localhost.localdomain
HOSTTYPE=x86_64
JAVA_BINDIR=/usr/lib64/jvm/jre-openjdk/bin
JAVA_HOME=/usr/lib64/jvm/jre-openjdk
JAVA_ROOT=/usr/lib64/jvm/jre-openjdk
JRE_HOME=/usr/lib64/jvm/java-11-openjdk-11
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LESS=-M -I -R
LESSCLOSE=lessclose.sh %s %s
LESSKEY=/usr/etc/lesskey.bin
LESSOPEN=lessopen.sh %s
LESS_ADVANCED_PREPROCESSOR=no
LIBVA_DRIVER_NAME=iHD
LIBVIRT_DEFAULT_URI=qemu:///system
MACHTYPE=x86_64-suse-linux
MAIL=/var/spool/mail/blumen
MANPATH=/usr/local/man:/usr/share/man
MINICOM=-c on
MORE=-sl
OSTYPE=linux
PAGER=less
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PLASMA_USE_QT_SCALING=1
PROFILEREAD=true
PWD=/home/blumen
PYTHONSTARTUP=/etc/pythonstart
QEMU_AUDIO_DRV=pa
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_QPA_PLATFORM=wayland
SDL_AUDIODRIVER=pulse
SESSION_MANAGER=local/localhost.localdomain:@/tmp/.ICE-unix/26939,unix/localhost.localdomain:/tmp/.ICE-unix/26939
SHLVL=0
WAYLAND_DISPLAY=wayland-0
WINDOWMANAGER=/usr/bin/startplasma-x11
XAUTHLOCALHOSTNAME=localhost.localdomain
XAUTHORITY=/run/user/1000/xauth_YEujri
XCURSOR_SIZE=24
XCURSOR_THEME=breeze_cursors
XDG_CONFIG_DIRS=/etc/xdg:/usr/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=wayland
XDG_VTNR=2
XKB_DEFAULT_LAYOUT=br
XKB_DEFAULT_MODEL=abnt2
XKB_DEFAULT_OPTIONS=terminate:ctrl_alt_bksp
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
XNLSPATH=/usr/X11R6/lib/X11/nls

proc output:

GTK_USE_PORTAL=1
HOME=/home/blumen
LANG=pt_BR.UTF-8
LOGNAME=blumen
PATH=/home/blumen/bin:/usr/local/bin:/usr/bin:/bin:/home/blumen/.dotnet/tools
PLASMA_PRELOAD_POLICY=aggressive
QT_IM_MODULE=
SHELL=/bin/bash
USER=blumen
XDG_DATA_DIRS=/home/blumen/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_RUNTIME_DIR=/run/user/1000
AUDIODRIVER=pulseaudio
COLORTERM=1
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
CPU=x86_64
CSHEDIT=emacs
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=/usr/share/wayland-sessions/plasmafullwayland
DISPLAY=:1
FROM_HEADER=
GDK_BACKEND=wayland
GPG_TTY=/dev/tty2
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/blumen/.gtkrc-2.0:/home/blumen/.config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:/home/blumen/.gtkrc:/home/blumen/.config/gtkrc
G_BROKEN_FILENAMES=1
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-1,CP1252
HISTSIZE=1000
HOST=localhost.localdomain
HOSTNAME=localhost.localdomain
HOSTTYPE=x86_64
JAVA_BINDIR=/usr/lib64/jvm/jre-openjdk/bin
JAVA_HOME=/usr/lib64/jvm/jre-openjdk
JAVA_ROOT=/usr/lib64/jvm/jre-openjdk
JRE_HOME=/usr/lib64/jvm/java-11-openjdk-11
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LESS=-M -I -R
LESSCLOSE=lessclose.sh %s %s
LESSKEY=/usr/etc/lesskey.bin
LESSOPEN=lessopen.sh %s
LESS_ADVANCED_PREPROCESSOR=no
LIBVA_DRIVER_NAME=iHD
LIBVIRT_DEFAULT_URI=qemu:///system
MACHTYPE=x86_64-suse-linux
MAIL=/var/spool/mail/blumen
MANPATH=/usr/local/man:/usr/share/man
MINICOM=-c on
MORE=-sl
OSTYPE=linux
PAGER=less
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PLASMA_USE_QT_SCALING=1
PROFILEREAD=true
PWD=/home/blumen
PYTHONSTARTUP=/etc/pythonstart
QEMU_AUDIO_DRV=pa
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_QPA_PLATFORM=wayland
SDL_AUDIODRIVER=pulse
SESSION_MANAGER=local/localhost.localdomain:@/tmp/.ICE-unix/26939,unix/localhost.localdomain:/tmp/.ICE-unix/26939
SHLVL=0
WAYLAND_DISPLAY=wayland-0
WINDOWMANAGER=/usr/bin/startplasma-x11
XAUTHLOCALHOSTNAME=localhost.localdomain
XAUTHORITY=/run/user/1000/xauth_YEujri
XCURSOR_SIZE=24
XCURSOR_THEME=breeze_cursors
XDG_CONFIG_DIRS=/etc/xdg:/usr/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=wayland
XDG_VTNR=2
XKB_DEFAULT_LAYOUT=br
XKB_DEFAULT_MODEL=abnt2
XKB_DEFAULT_OPTIONS=terminate:ctrl_alt_bksp
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
XNLSPATH=/usr/X11R6/lib/X11/nls
MANAGERPID=26825
INVOCATION_ID=62595791a3584d42af9f86cf19014928
JOURNAL_STREAM=8:640421

I have manually set the following in my /etc/environment in the past:

QT_IM_MODULE=
GTK_USE_PORTAL=1
PLASMA_PRELOAD_POLICY=aggressive

And the only thing in my .bashrc:

export LIBVIRT_DEFAULT_URI="qemu:///system"
Comment 4 Aleix Pol 2021-02-20 23:48:29 UTC
Does refraining from defining QT_IM_MODULE address the issue?

This seems Qt trying to be overly smart and showing it, but all code using Qt's virtual keyboard was removed in 5.20 already. :S
Comment 5 Thiago Sueto 2021-02-21 00:33:48 UTC
(In reply to Aleix Pol from comment #4)
> Does refraining from defining QT_IM_MODULE address the issue?
> 
> This seems Qt trying to be overly smart and showing it, but all code using
> Qt's virtual keyboard was removed in 5.20 already. :S

Nope. And now I'm even more confused about this since it was removed in 5.20. :D

But I just did another round of tests and I figured the means to reproduce: bug 433293. It only happens whenever that one happens.

I also noticed that the virtual keyboard appears for a second whenever I click Dolphin's embedded terminal. If I have both System Settings' glitchy keyboard and Dolphin open and click the embedded terminal, it makes the glitch in System Settings disappear somehow as though it's summoning it for itself lol.

It doesn't happen with Konsole or Kate's embedded terminal.
Comment 6 Bug Janitor Service 2021-03-08 04:33:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2021-03-23 04:33:50 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!