Keyboard and Mouse over network (TCP/IP) support in XBMC via Synergy?
#16
http://synergy2.sourceforge.net/ perhaps?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#17
If it's ok to have a window attached to it I could create a really fast one in SDL?

Otherwise I reckon it should be doable via some linux internal, read the /dev/ I guess.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#18
Thumbs Up 
jmarshall Wrote:http://synergy2.sourceforge.net/ perhaps?
Sounds great, ... and has also been suggested before http://forum.xbmc.org/showthread.php?tid=5545
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#19
I saw the Synergy ref and the python one, I'll have to give these a try. I've sure other devs would be interested in a simple low impact way to do this. Don't really need mouse, just keyboard. Come to think of it, there was a command-line app I just a year or so that could send keyboard events to MythTV. I also need to dig this up and see if I can re-purpose it for XBMC usage.
Reply
#20
Put in XBMCSVN/tools/EventClients/Clients/Foo/bar.cpp

http://pastebin.com/m22112676

compile with g++ -lSDL bar.cpp

Should start a window and send any keyboard command from that one to XBMC, not a super pretty solution but a quick one for you now Smile

(run with ./a.out IP PORT by default these are localhost and 9777)
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#21
Topfs2 Wrote:Put in XBMCSVN/tools/EventClients/Clients/Foo/bar.cpp

http://pastebin.com/m22112676

compile with g++ -lSDL bar.cpp

Should start a window and send any keyboard command from that one to XBMC, not a super pretty solution but a quick one for you now Smile

(run with ./a.out IP PORT by default these are localhost and 9777)

Nice, you the man Wink First thing I try when I get home from work.
Reply
#22
davilla Wrote:Nice, you the man Wink First thing I try when I get home from work.

Thanks Topfs2, this works like a champ. I had to futz a bit to get it to build on OSX but not a problem.
Reply
#23
Nice work topfs2 :-) quite a useful utility IMHO.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#24
Feature request for Synergy submitted on trac: http://trac.xbmc.org/ticket/4843

Big Grin
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#25
If im not compiling from SVN is there anyway of getting synergy working with XBMC - I have the most recent build and have synergy on my kubuntu laptop??

This looks really promising
S
Reply
#26
Hello,

I'm using synergy2 (http://synergy2.sourceforge.net/)to control my htpc through my main computer. Everything works just fine besides when i fullscreen XBMC the mouse becomes a issue. It's hardly controllable but if you really move the mouse slowly you can barly control it. It's like its gliding on ice or something, and the sensitivity is insane! The keyboard works fine.

If i use windowed mode there is no issues with mouse.

I didn't find much information regarding this, all i found is this:

http://trac.xbmc.org/ticket/4843

Thanks for the support!
Reply
#27
Before i spend another couple of hours on this - those of you that have this working is it working on the XBOX platform or XBMC for linux.. I love the idea of this but having spent a bit of time trying to get it to work want to make sure im not flogging a dead horse..

Thanks
Shane
Reply
#28
I am trying to use synergy to connect my laptop to my dedicated XBMC machine which I am using in my living room, this way I can just drag my mouse off my laptop screen while sitting on the couch and over to the XBMC menu and control it without a secondary keyboard / mouse.

I have synergy setup just like I do at work (as it is very easy to configure), and I see my xbmc machine listening for connections and my laptop connecting, but my mouse won't ever move over to the XBMC box to my laptop. Am I doing something wrong?

I thought it could be related to what is going on in this post, but I am not sure as this post sounds like it is using a dedicated dual monitor setup on one physical host.

http://forum.xbmc.org/showthread.php?tid=36305

It sounds like this is working for others here. Also I tried to see if it was not just an XBMC issue, and stopped the app, and ran fluxbox instead, but I still could not connect. I see my client connecting in the logs, any guesses?

Logfile on client:

Code:
~/Desktop/synergy-1.3.1$ ./synergyc -f xbmc
INFO: Synergy client 1.3.1 on Darwin 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386
NOTE: started client
NOTE: connected to server

Logfile on xbmc server:
Code:
DEBUG: synergys.cpp,1051: opening configuration "/home/xbmc/.synergy.conf"
DEBUG: synergys.cpp,1062: configuration read successfully
DEBUG: CXWindowsScreen.cpp,847: XOpenDisplay(":0.0")
DEBUG: CXWindowsScreenSaver.cpp,339: xscreensaver window: 0x00000000
DEBUG: CXWindowsScreen.cpp,117: screen shape: 0,0 1920x1080
DEBUG: CXWindowsScreen.cpp,118: window is 0x01600004
DEBUG: CScreen.cpp,38: opened display
DEBUG: CXWindowsScreen.cpp,679: registered hotkey ScrollLock (id=ef14 mask=0000) as id=1
NOTE: synergys.cpp,500: started server
INFO: CServer.cpp,1141: screen "xbmc" shape changed
NOTE: CClientListener.cpp,127: accepted client connection
DEBUG: CClientProxy1_0.cpp,404: received client "macbook" info shape=0,0 1280x800
NOTE: CServer.cpp,278: client "macbook" has connected
DEBUG: CClientProxy1_0.cpp,466: received client "macbook" grabbed clipboard 0 seqnum=0
INFO: CServer.cpp,1186: screen "macbook" grabbed clipboard 0 from "xbmc"
DEBUG: CXWindowsClipboard.cpp,313: open clipboard 0
DEBUG: CXWindowsClipboard.cpp,266: empty clipboard 0
DEBUG: CXWindowsClipboard.cpp,289: grabbed clipboard 0
DEBUG: CXWindowsClipboard.cpp,348: close clipboard 0
DEBUG: CClientProxy1_0.cpp,436: received client "macbook" clipboard 0 seqnum=0, size=253
DEBUG: CClientProxy1_0.cpp,466: received client "macbook" grabbed clipboard 1 seqnum=0
DEBUG: CClientProxy1_0.cpp,436: received client "macbook" clipboard 1 seqnum=0, size=253
INFO: CServer.cpp,1440: screen "macbook" updated clipboard 0
DEBUG: CXWindowsClipboard.cpp,313: open clipboard 0
DEBUG: CXWindowsClipboard.cpp,266: empty clipboard 0
DEBUG: CXWindowsClipboard.cpp,289: grabbed clipboard 0
DEBUG: CXWindowsClipboard.cpp,300: add 241 bytes to clipboard 0 format: 0
DEBUG: CXWindowsClipboard.cpp,348: close clipboard 0
INFO: CServer.cpp,1186: screen "macbook" grabbed clipboard 1 from "xbmc"
Reply
#29
The server needs to be on the computer with the keyboard and mouse (your laptop). Sounds like you have it setup in reverse.
Reply
#30
hah...holy crap that is what it was. i am an idiot. i just never even thought to check that since at work my linux box is always on (and is the server) and my windows laptop i take home with me is the client, ever crossed my mind to do this. thanks, cant believe i didnt think of this... Big Grin
Reply

Logout Mark Read Team Forum Stats Members Help
Keyboard and Mouse over network (TCP/IP) support in XBMC via Synergy?1