Summary: | Touch mode on convertible laptop gets activated even when there is an USB keyboard & mouse attached | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | phrxmd <philipp.reichmuth> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | leinir, nate, wincak, xaver.hugl |
Priority: | NOR | ||
Version First Reported In: | 5.25.5 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=459143 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
phrxmd
2022-10-04 14:37:11 UTC
Yeah this is a legitimate use case and we should probably handle it better. If there are explicitly connected external input devices, it's a good sign that the user is using it like that, rather than as a handheld tablet. I have the same problem on Dell 7210 2-in-1 tablet. Disconnecting the tablet's main keyboard switches the device to Touch mode even if an external keyboard and mouse are connected. Also there does not seem to be an easy way to turn the Touch mode on and off manually except for directly in the system settings. I'm using a keyboard and a mouse that share a wireless USB adapter. Operating System: Kubuntu 23.10 KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.110.0 Qt Version: 5.15.10 Kernel Version: 6.5.0-25-generic (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i7-10610U CPU @ 1.80GHz Memory: 15,3 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics Manufacturer: Dell Inc. Product Name: Latitude 7210 2-in-1 Sorry, we can't really do anything about this. Detecting if an input device is external should be doable, but detecting if it's a real keyboard is pretty much completely impossible. Too many things that aren't keyboards or mice claim to be either one or both :( A related problem has been recently discussed in another bug: https://bugs.kde.org/show_bug.cgi?id=500025 It seems that the current algorithm KWin uses for automatic switching could be improved. To block switching to touch mode when an external keyboard/mouse is connected is possible. Just make a list of input devices to ignore. If any other input device presenting itself as keyboard/mouse is detected, do not switch to touch mode. I wrote a proof of concept program: https://gitlab.com/wincak/tablet-switch Everyone specifying a list of devices to exclude is technically possible, but not really practical. If you find some way to automatically detect at least the majority of devices somehow, feel free to reopen this and/or make a MR for KWin though. |