Keyboard and Mouse over network (TCP/IP) support in XBMC via Synergy?
#31
I've tried setting this up at home.

My problem is that while i can move my mousepointer over to the dedicated xbmc/boxee computer it's not possible to move it back again to the laptop. It seems that xbmc and boxee locks the mouse to that screen and won't let me move the pointer "out" of it.

Are you experiencing this, or do you have any possible solution?
Using Kodi for live TV with Tvheadend.
Reply
#32
drefas Wrote:I've tried setting this up at home.

My problem is that while i can move my mousepointer over to the dedicated xbmc/boxee computer it's not possible to move it back again to the laptop. It seems that xbmc and boxee locks the mouse to that screen and won't let me move the pointer "out" of it.

Are you experiencing this, or do you have any possible solution?
You need to setup both screens in your server, not just the laptop.
Reply
#33
Thanks!

Now it works like a charm Smile
Using Kodi for live TV with Tvheadend.
Reply
#34
I MADE IT

Asteron Wrote:ok i did a little more digging and i was able to get the keyboard to work halfway.
for a keyboard you need the normal
http://xboxip/xbmccmds/xbmchttp?command=...rameter=xx

where xx is the decimal number 61440 (xf000 in decimal) + vk code in decimal
where you can find the vk code at http://delphi.about.com/od/objectpascalide/l/blvkc.htm
remember it is decimal!
xx can also be 61696 (xf100) + ascii value of character

the problem lies in that no httpapi commands work through the webserver at all with a python keyboard up! for some reason they work with the builtin keyboard but not if it was run from python! grrr... i might work up a java or python or javascript app to do this depending on how my investigations go.

edit2: the cursor does seem to work (again not with python keyboard) however it is very difficult to use since it is invisible :/ when you move it with a real mouse it becomes visible for a while. also i'm not sure yet about the mouse wheel stuff.... the documentation is kinda light but i can step through the c++.

ok so after trolling all of google trying to find some kind of solution to add a virtual keyboard to the xbox i came up with completely nothing
ok so thanks to Asteron on telling us that we cound send keys to the xbox via http
and also the link http://delphi.about.com/od/objectpascalide/l/blvkc.htm
i made a java virtual keyboard that captures your keystrokes encodes them in hex and sends them to the xbox with a inputstreamreader

its works pretty well but keep in mind that what i made is still like pre alpa beta and i still have to work out a bunch of the bugs and key mapping but for the over all pourpose it works

to run it ull need java and a command prompt
basically in ur cmd, bash shell, or w/e just type
java xboxvk

more to come when i finish all the keymapping and other functions

key map so far
a-z = a-z
A-Z = A-Z
0-9 = 0-9
Pg up = vol up
Pg dn = vol down
home = switch between display (tab)
enter = select
esc = esc/menu
backspace = backspace
up = up
down = down
left = left
right = right

still trying to get working as if u had a physical keyboard connected via usb

enjoy

http://depositfiles.com/files/zmi3wp2nc

oh yea extract it and change directory to in in ur terminal then run "java xboxvk"
to stop running it go back to the terminal and hit "crtl c"
Reply
#35
oh yea one more thing make sure u have the webserver enabled on your xbox so it can send it commands through its httpapi, at least i think u need to have the webserver enabled to use the httpapi
also this should work on all xbmc's
Reply
#36
[quote=Empire666]
still trying to get working as if u had a physical keyboard connected via usb
/QUOTE]

Nice work!

I made a smallish SDL based virtual keyboard a while back which uses the eventserver.

So I'd suggest you to look into the EventServer because it's alot less overhead than the httpapi and should feel near instant on a normal lan, not as httpapi which actually takes a while on a lan.

Cheers,
Tobias.
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
#37
one already exists, see http://code.google.com/p/atv-xbmc-launch...bmc_remote
Reply
#38
Sad 
Machine #1: Ubuntu 9, XBMC, and Synergy Client
Machine #2: SynergyKM Server for Mac

Ok...so I have all my setup working save one annoying thing.
When running XBMC in full screen and I move the mouse off and over to Machine#2 the XBMC on Machine#1 jumps out of Fullscreen and into a windowed view in Ubuntu?

Is there any way I can move the mouse back and forth between the two without it jumping out of FS mode?

Ex. When running any other FS prog. like VLC Media Player it works just fine...and continues to play in fullscreen mode even though the mouse is no longer on that screen.
=========================
XBMC Frodo v12.2
Win7 x64
Core i5 3.3GHz
GeForce GTX 580
8 GB RAM
=========================
Reply
#39
Same here, even when using shortcuts to switch between screens :?
Reply
#40
Found a fix/hack:

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

This works perfectly Smile
Reply
#41
ok heres the updated version of my java virtual keyboard
im also including the source code so if anyone wanted to make their own changes
also because i dont know how often ill be updating this thing or improving on it
key mapping

a-z = a-z
A-Z = A-Z
0-9 = 0-9
Pg up = vol up
Pg dn = vol down
home = switch between display (tab)
insert = title
delete = info
super/windows key = play pause menu
context menu = context menu
enter = select
esc = back
shift + esc = esc/menu
backspace = backspace
up = up
down = down
left = left
right = right

http://depositfiles.com/files/0zhmitsoe
Reply
#42
Hey folks

i have after a broken babylon system the new 9.11 xbmc on usbstick.

Now i try to run synergyc on xbmc but the mouse moves to a corner of screen and cannot move it again.

i find something about that

here

http://forum.xbmc.org/showthread.php?tid=76852
and here
http://trac.xbmc.org/ticket/4843
and here
https://bugs.launchpad.net/ubuntu/+sourc...bug/321444

but, it looks like i have already the newest versions and every bug are older Sad

if someone new another hint please tell me.
Reply
#43
Just wanted to share my results playing with http://synergy2.sourceforge.net/ and xbmclive. Synergy allows you to control your xbmc live session from another computer just like it is another desktop screen. The keyboard works just fine but the mouse does not seem to display properly. However XBMC works perfectly fine with keyboard commands.

to install on xbmclive ssh to your xbmclive install or use another console
sudo apt-get install synergy
once installed

edit /usr/bin/runXBMC

sudo vim nano /usr/bin/runXBMC

and after line echo "ulimit -c 0" >> /home/$xbmcUser/.xsession type the line below to start synergy replace IPADDRESS with the IP Address of the Synergy server. (The pc you want to use the keyboard and mouse on)

echo "/usr/bin/synergyc -n XBMCLive --display 0:0 --daemon --restart IPADDRESS" >> /home/$xbmcUser/.xsession

Now your XBMCLive client is setup. You need to install Synergy on your server this is the pc you want to control xbmc from as another desktop.

Follow the instructions on http://synergy2.sourceforge.net/configuration.html however i will give you a heads up below.

First install Synergy on your server download it from http://synergy2.sourceforge.net for whatever OS you have installed usually windows but could be linux if you want as it supports multiple OS's including Mac.

Setting up the screens is not very intuitive. But essentially on the server you click share this computers keyboard and mouse.

Add 2 entrys to screen. 1 being the hostname of the pc you are using and the other being XBMCLive as this is the name we used in the xbmc client command connecting above. Use the + below screen to add the screens.

Then you set up the links below. This is a bit weird as well. You will need 2 entries.

The first entry will be
0 to 100 % of the RIGHT XBMCLive goes to 0 to 100 % HOSTNAMEOFPC

after you enter the first entry you need to click the + below to add it.
The second line will be
0 to 100 % of the RIGHT HOSTNAMEOFPC goes to 0 to 100 % XBMCLive
THEN Click +


What this does its make XBMCLive a virtual desktop of the right of your desktop. When you move the mouse to the right you will be on the XBMCLive screen the mouse doesnt display but once you are in the right desktop you should be able to control XBMC using the keyboard. Once finished in XBMCLive move the mouse across to the far right again and it will appear back in your normal desktop.

Well check it out I have it setup and it works pretty well.

This could obviously work without the XBMCLive install but that's what i use so I made the tutorial for XBMCLive.

Well check it out and tell me if you get it going.

Take it easy.

Cheers

bobb09
Reply
#44
I use synergy (a mouse and keyboard sharing tool for use across platforms) and if it is running, I cannot start xbmc without wiggling my mouse. If I don't wiggle the mouse, I have a black screen. Once I wiggle the mouse, the xbmc splash screen logo comes up and starts normally.

If I "sudo killall synergy", then xbmc starts without any problem.

The synergy server is on my Windows Vista machine and the client is running on my Mythbuntu 10.* machine.

http://synergy-foss.org/

It's almost like I need xbmc to shake the mouse as it starts.
Reply
#45
This is probably because SDL is spinning a loop calling XGrabPointer() until it succeeds, not much we can do about that at the moment.
Reply

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