Bug 400832

Summary: kdeconnect, remote input plugin does not seem to be working at all (no input on Desktop)
Product: [Applications] kdeconnect Reporter: Gabriel Marcano <gabemarcano>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED NOT A BUG    
Severity: normal CC: gabemarcano, i.newton, nicolas.fella
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Gabriel Marcano 2018-11-08 05:34:40 UTC
SUMMARY
Remote input plugin does not appear to work. After pairing device with Desktop, navigating to the remote input plugin on the phone leads to nothing being detected on the Desktop. xev does not return any input. Other plugins seem to be working (I can see files, I can ping and ring the phone, I can share notifications between the Desktop and the phone, etc.).

STEPS TO REPRODUCE
1. Pair kdeconnect on phone and desktop
2. Go to remote input on phone
3. try to move mouse through remote input screen, or click

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
Mouse moves in desktop, or some clicking occurs

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
My Desktop runs Plasma 5 on Gentoo, and my phone is running Android 9 on a OnePlus 6 (OxygenOS, stock for OnePlus 6). My desktop doesn't have a firewall active (internal network, no IPv6). Let me know if you need more information, or what diagnostic tools I can run to check for remote input. I tried using xev, but it didn't pick anything up.
Comment 1 Ian Newton 2019-02-19 13:42:24 UTC
Same result of no connection or no response for remote input at KDE desktop.

Operating System: Gentoo Linux 
KDE Plasma Version: 5.15.0
KDE Frameworks Version: 5.55.0
Qt Version: 5.11.3
Kernel Version: 4.19.0-sabayon

Pre-compiled kdeconnect or compiled using emerge gives the same result. v1.3.3

Co-incidently using OnePlus 3T with Android 8.0.0. 

No error or message shown in system journal for connecting or using remote input. Is there anything to look at in QtDbusViewer?

Checking other plugins Multimedia Control is working well but Persentation remote does not seem to control a Libre Office presentation.
Comment 2 Gabriel Marcano 2019-02-20 05:27:07 UTC
There is a recent change to the application behavior. I recompiled kdeconnect on Gentoo with support for libmouse or something like that, and I can now control the mouse. I am unable to type with the keyboard, but I suspect it's a bug on the Android side and 9.0 (I saw a commit on the Android app changing some behavior to fix 9.0 Android devices). I'll try to recompile the Android app and see if that fixes it.
Comment 3 Ian Newton 2019-02-20 10:49:20 UTC
Thanks Gabriel! You were on the right track. Looking at plugins/mousepad/CMakeLists.txt indicates we need libFakeKey installed for it to work or KF5Wayland for Wayland. Since I'm using X11, compiling with libFakeKey fixes both the mousepad and remote keyboard. 

Checking the Sabayon compiled version it does not work so is not compiled with libFakeKey present I guess? Going the emerge route may work now. There may well be a warning if libFakeKey is not found? This could be fixed in the ebuild to ensure it is present for an X11 desktop.

KF5Wayland is present on my system so maybe all is well for Wayland and I should try KDE Wayland again. There were some weird rendering problems last time I tried.
Comment 4 Ian Newton 2019-02-20 10:52:11 UTC
Presentation remote also works now!