Bug 491441 - On-screen keyboard sometimes opens up at wrong size with no obvious way to correct it
Summary: On-screen keyboard sometimes opens up at wrong size with no obvious way to co...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: virtual-keyboard (show other bugs)
Version: 6.1.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-08 16:55 UTC by Ellie
Modified: 2024-08-16 14:11 UTC (History)
2 users (show)

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


Attachments
Screenshot showing on screen keyboard at wrong size (135.89 KB, image/png)
2024-08-08 16:55 UTC, Ellie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ellie 2024-08-08 16:55:24 UTC
Created attachment 172403 [details]
Screenshot showing on screen keyboard at wrong size

SUMMARY

The on-screen keyboard sometimes opens up at wrong size. When that happens, I haven't found an obvious way to correct it, which may mean I can't get past the lock screen and it renders the tablet somewhat unusable.

STEPS TO REPRODUCE

1. Enable default on-screen keyboard maliit
2. Unsure
3. Sometimes the size is just very wrong after coming back to the machine after letting it sit locked for a while, maybe tied to resume from suspend or I'm not sure 

OBSERVED RESULT

On-screen keyboard may be at wrong size with many keys unreachable. Even when I find ways to get it to close and open again, the size isn't corrected.

EXPECTED RESULT

On-screen keyboard is always at correct size.

SOFTWARE/OS VERSIONS

Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: postmarketOS Edge on x64 tablet-like device
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-08-09 20:04:26 UTC
This is on a Steam Deck with like 150% of 175% scaling, right?

This could be a bug in the Maliit keyboard itself (maybe its minimum size is too high) or in how KWin scales it. Moving to KWin for now.
Comment 2 Ellie 2024-08-09 21:21:35 UTC
Yes it's a Steam Deck 1280x800 screen at 175% UI scale.
Comment 3 Ellie 2024-08-09 23:17:37 UTC
I realized this may not have been clear from my description and comment above:

Most of the time, the keyboard is scaled correctly at a usable size. This only happens like, 1 out of 50 times or something when the keyboard shows up, but then persists until reboot or until the process of the keyboard is terminated. So it seems to be some sort of race condition or corner case rather than a fundamentally wrong size computation.
Comment 4 Nate Graham 2024-08-13 22:00:17 UTC
Yeah, I expect so. Anything you could to to try to figure out under which conditions it happens will be helpful. Fixing bugs that manifest as rare race conditions is unfortunately a pretty low-chance-of-success endeavor otherwise.
Comment 5 David Edmundson 2024-08-16 10:24:58 UTC
I tried to reproduce and could not. There is little else we can do at this stage. 

Did any screen hotplugging or scale changes on the times this occurred?
Comment 6 Ellie 2024-08-16 10:55:29 UTC
I think the problem is related to multiple screens. It seems to like to bug out sometimes when I do the following:

1. Have larger external screen attached and KDE display settings such that internal touch screen of this laptop-like is disabled

2. Initiate suspend through the KDE lock screen (it may help if during this phase you also already make the maliit keyboard show up so the process is running, I'm not sure)

3. Once the device is suspended, remove the screen by physically unplugging the cable

4. Wake up device by pressing a keyboard key

5. Tap the password input on the internal touch screen

6. Maliit keyboard may now be in wrong size