-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to integrate with KDE Connect and gsconnect? #70
Comments
gsconnect was directly manipulating the cursor position via qt5, without any device. |
Sorry, not directly from KDE Connect but still from gsconnect (w/o cursor updates in gsconnect). |
Okay I think I understand your issue now. |
Yes, that works, good idea. Would you be interested in a projecteur plugin to KDE Connect? |
Generally speaking: yes.
Do you have a prototype for a KDE plugin already or do you want to write one? I think I would schedule this feature to v0.9, but I can a feature branch for where experimenting can be done freely. |
I have a working Android remote spotlight, works as follows:
Install KDE Connect on Android phone, pair with a patched gnome-shell-extension-gsconnect.
./projecteur -D 2:a (or any other device that is a mouse and works)
./vmouse-receiver /dev/input/event4 (or whatever event the mouse device is attached to)
Go into presenter mode in KDE connect, hold "Pointer" to move spotlight on screen.
Now, this still requires some real mouse device, which is inconvenient.
So I tried to move the uinput mouse with a running presenteur (new dev version w/ uinput), and it works:
./vmouse-receiver /dev/input/event21 (or whatever event /dev/uinput is attached to)
I can now move my mouse pointer on screen since presenteur has created such a device.
But the spotlight is not active. A patch to spotlight.cc removing the emitEvent() calls to the virtual device (since that would create a loop)) and inserting a sleep(1) delay after opening the virtual device allows the udev rule to add user rw access and then I can connect to it:
./projecteur -D feed:c0de
When I now move the phone, a get a spotlight on screen for just a moment, but it the X/Y position updates emitted by vmouse-receiver do not update the mouse pointer position on screen anymore.
Of course, /dev/input/event21 is now being written to by vmouse-receiver and read by projecteur, but that was also the case before with a physical mouse device (my 2:a example above).
Do you have any idea how to approach this problem? I'm at a loss.
Even without uinput, people might be interested in this. One question is: Should a new plugin for KDE Connect (Android side) be created, derived from their presenter? That could also have hot keys to change zoom, spotlight shapes etc.
And another way to go about this would be for projecteur to directly accept the socket connection from gsconnect that I created and then update the spotlight (maybe even without mouse movement).
Finally, a patch for KDE Connect (PC side) is needed, similar to my gsconnect patch.
If you want to try it out, here are the patches and vmouse-receiver:
https://arcb.csc.ncsu.edu/~mueller/projecteur/
The text was updated successfully, but these errors were encountered: