I have recently installed KDE 5 (kde-plasma-desktop
) on Ubuntu 20.04, and as part of the installation, it asked me to switch the login screen manager to sddm.
When sddm starts (either on boot, or after logging out) it blocks the screen with a large on-screen keyboard (the rest of the screen is black), and I cannot get rid of the keyboard without clicking the "hide keyboard" 'key' with the mouse, after which the sddm login screen appears. Although I can understand that there might be accessibility reasons for this, I can see no way to switch this off (I am the only user of this computer), so it is rather annoying.
Is there a way to prevent this on-screen keyboard from appearing unrequested, or, alternatively, would KDE actually work quite happily with gdm3 as the login screen manager (or another manager, such as lightdm) instead?
I have had a similar problem and just discovered a solution.
First up, don't try another display manager with Plasma. I was using another one until recently and my sytem (Ubuntu 20.04 server) was stalling on boot. I had to put it to sleep and then wake it to get a login screen. I switched to
sddm
and solved that problem immediately (also clearing an error with notifications in the Plasma GUI), only to be confronted with the annoying on screen keyboard.Everything online said there should be a configuration file,
sddm.conf
, in/etc/
. They said you should find the line that starts withInputMethod=
and make sure there is nothing after the equals sign. On my system, there was no such file.I saw somewhere that it might work if I added the file. At the command line, I typed:
and it opened a new file. I simply typed
InputMethod=
on the first line (nothing else) and saved the file.Problem solved, no more on screen keyboard at login. From what I've read, I think I know what's happening but I'm really not sure (I'm an ignorant noob). I just know it worked for me.
The full correct solution is as follows:
In this directory you will find several files:
Output:
Open up the kde_settings.conf in your editor of choice (as superuser, because it is owned by root):
You should see something like the following:
Now, right under whatever is the last entry in your
General
group, add the settingInputMethod=
. You can optionally add the comments shown in the example below above this line for future reference. I included a link to this answer, explaining the line's necessity, for additional info. I did this in case you encounter this file and its change at some time in the distant future, probably while upgrading your Linux distro or some package which wants to reset this file, by which point you will have likely forgotten all of this and the reason why you made this change - it happens to all of us:Log out and test by trying to reenter your username and password, hopefully without that annoying gratuitous on-screen keyboard popping up and obscuring the entire Login screen, including the field you are trying to populate - an excellent example of horrible UI design.
Shout, "Finally!", and get on with whatever task you were trying to do before encountering this frustration and winding up here in askubuntu (e.g., updating your SDDM Login theme and getting hijacked by this keyboard gremlin).
Bonus
For those still here and desiring to understand the "why of it all," enter the following command:
Output:
The above default for the
InputMethod
, which is probably this way for phone/tablet support, is the reason you are here.After KDE UI installation over gnome Ubuntu 20.04. I did not have any /etc/sddm.conf file. I just created a blank file and added InputMethod= at the top. Restarted the computer and it worked.