Bug 448604

Summary: Remote input on Wayland doesn't work.
Product: [Applications] kdeconnect Reporter: espencer2699
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal CC: CoelacanthusHex, cristobal.veas, marci, mundolibre, plata.hill, putr4.s, zocker.network
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Modal window asking for permissions

Description espencer2699 2022-01-16 16:00:52 UTC
SUMMARY
Remote input on Wayland doesn't work.


STEPS TO REPRODUCE:
1. Open KDE connect app and connect to Wayland based environment
2. Select Remote Input
3. Touch phone screen and observe that nothing happens

OBSERVED RESULT:
Nothing happens

EXPECTED RESULT:
Touch input should control the mouse pointer on the remote machine.

SOFTWARE/OS VERSIONS:
Fedora Linux 35 with Swaywm 1.6.1
KDE Connect
kdeconnect-cli version 21.04.3
Kernel Version: 5.15.14-250.vanilla.1.fc35.x86_64
Graphics Platform: Wayland
Processor: AMD Ryzen 7 3700X
Memory: 15.9 GiB of RAM
Graphics Processor: Mesa AMD Radeon R9 Fury

Nokia 6.1 with Android 10 with KDE connect 1.17.0

Oneplus 6 running PostmarketOS with KDE connect.

ADDITIONAL INFORMATION
Neither Nokia nor Oneplus can send remote input to the Fedora machine that's running Sway.
Comment 1 David Marzal 2022-07-20 23:08:34 UTC
Android 11 FP3 F-droid KDE Connect 1.19.1
The mouse functionality works OK.
Compose send doesn't sent anything, neither the Remote presentation next or previous slide buttons(laser works)

Operating System: Arch Linux
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.12-hardened1-1-hardened (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-8400 CPU @ 2.80GHz
Graphics Processor: AMD Radeon RX 580 Series

PD: BUG https://bugs.kde.org/show_bug.cgi?id=444583 is a candidate for closing or a duplicate of this one.
Comment 2 Prajna Sariputra 2023-02-16 08:23:39 UTC
On Plasma remote input should work properly (both keyboard and mouse) with Plasma 5.27 and KDE Connect 23.04 once both are released, which is bug 429173.

Sway (and wlroots based stuff in general) however currently lacks support for the XDG remote desktop portal (see https://github.com/emersion/xdg-desktop-portal-wlr/issues/2), which is what KDE Connect 23.04 will use for remote input functionality, so I think that would now be an upstream issue rather than a KDE Connect issue.
Comment 3 Plata 2024-05-15 17:28:40 UTC
Is this specific issue fixed now?

There are still some other bugs about remote input not working in general:
- https://bugs.kde.org/show_bug.cgi?id=470839
- https://bugs.kde.org/show_bug.cgi?id=471258
- https://bugs.kde.org/show_bug.cgi?id=471959
Comment 4 Prajna Sariputra 2024-05-15 20:03:32 UTC
As I said back in comment 2 this should have been fixed since Plasma 5.27 and KDE Connect 23.04, and it's certainly been working for me since then, except for the permissions dialog needing to be manually accepted once on every boot: https://bugs.kde.org/show_bug.cgi?id=480235

The problem with Sway and the other wlroots compositors remain since they still don't appear to have implemented the remote desktop portal.
Comment 5 Plata 2024-05-16 16:55:17 UTC
Do you have a screenshot of how this permission dialog should look like? I'm pretty sure that it didn't show up at all for me.
Comment 6 David Marzal 2024-05-17 15:33:27 UTC
Created attachment 169569 [details]
Modal window asking for permissions

This is the windows asking for permission to control KDE Plasma input from a KDE connect device (in spanish)
Comment 7 Plata 2024-05-17 17:12:40 UTC
I got it now.

Could it be that it just doesn't work the first time after setup? I've rebooted both the Android device and the PC and then it showed this window.