JeremyF
Posts: 515
Joined: Wed Jan 25, 2012 9:06 pm
Contact: Website

Re: Synergy

Wed Mar 21, 2012 8:27 pm

So, there's this program called synergy which is basically a program that allows you to share a host computer's keyboard and mouse over the network. To me, this would work great with the Raspberry Pi. Save the USB ports for important peripherals and just connect keyboard and mouse over the network. While it's true I could move the mouse and type on the keyboard using a VNC client...I would find this solution much more efficient. Synergy works on x86 Linux and has successfully been ported to Debian Lenny running on ARM architecture. http://packages.debian.org/sea.....ds=synergy I was just wondering it would be possible to compile the source code (http://synergy-foss.org/download/) to run on the newest version of Debian for ARM or the Pi Remix of Fedora. Anyway, that was a really long post, but hopefully you followed it.

http://synergy-foss.org/

^Synergy homepage

Thanks for listening!
{sig} Setup: Original version Raspberry Pi (B, rev1, 256MB), Dell 2001FP monitor (1600x1200), 8GB Class 4 SD Card with Raspbian and XBMC, DD-WRT wireless bridge

User avatar
mpthompson
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
Contact: Website

Re: Synergy

Thu Mar 22, 2012 4:05 am

It certainly should be doable.  I love using synergy between my Mac and PC.  Throwing a Raspberry Pin in the mix should be great.

When compiling the source code you also have to keep in mind that the source code may depend on other libraries that may not be present on the Pi.  Those will have to be brought down as well, and their dependencies.  Well you get the drift.  Hopefully there will be a Yum install of Synergy for Fedora to make it much easier.

User avatar
meltwater
Posts: 1015
Joined: Tue Oct 18, 2011 11:38 am

Re: Synergy

Thu Mar 22, 2012 9:24 am

Yeah I use synergy all the time so I hope that we can use it with the RPi too.

For those who don"t quite get the idea…it is genius!

Synergy simulates switching your keyboard and mouse to a different computer by detecting when you go off the edge of the screen.   Synergy then uses the network to send keyboard and mouse commands to the other computer (you define in the software where each edge goes to), as if you were physically connected to it.

—————–           —————–         —————-

|                 |         |                 |       |                   |

|       PC1    |         |       PC2    |       |     PC3       |

|                 |         |                 |       |                   |

—————–           —————–         —————-

|        |

[||||||]    []

Combine that with perhaps VNC or other remote connect software on a tablet to use as screen and you get an interesting setup!

–ok ascii formatting is a lost cause here.
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book: goo.gl/dmVtsc

Meltwater's Pi Hardware - pihardware.com

Like the MagPi? @TheMagP1 @TheMagPiTeam

User avatar
RaTTuS
Posts: 10616
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Synergy

Thu Mar 22, 2012 9:26 am

I've used

Synergy

Synergy+

inputdirector

over the years and they are a major life saver ...

I keyboard to rule them ...
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Chris.Rowland
Posts: 239
Joined: Thu Jan 12, 2012 5:45 pm

Re: Synergy

Thu Mar 22, 2012 10:06 am

I did a product at work a few years ago that detected the edge of the screen and sent a message to a KVM switching box to switch the KB and mouse. This was before Synergy.

Synergy is much better.

Incidentally, with Synergy QEMU doesn't recognise the mouse on the other PC although the KB is fine.

User avatar
ArborealSeer
Posts: 300
Joined: Tue Jan 24, 2012 9:48 am
Location: South West, UK

Re: Synergy

Thu Mar 22, 2012 12:56 pm

i use synergy all the time. awesome software.

my personal laptop  | work pc main screen | work pc second screen (normally a vm)
Pi Status > Farnell, Arrived 24/5- RS, Arrived 1/6

BrightonPi
Posts: 7
Joined: Thu Mar 22, 2012 1:49 pm
Contact: Website

Re: Synergy

Thu Mar 22, 2012 1:55 pm

Im quite interested in seeing if i can get the synergy + c++ code to run on a device such as ipad.  It would be an interesting setup to have synergy server as an app sending out keyboard and mouse data.

User avatar
ArborealSeer
Posts: 300
Joined: Tue Jan 24, 2012 9:48 am
Location: South West, UK

Re: Synergy

Thu Mar 22, 2012 2:21 pm

there are things that do it the other way around for sure.. i tried one out for controlling a htpc not long ago
Pi Status > Farnell, Arrived 24/5- RS, Arrived 1/6

Darkness
Posts: 20
Joined: Wed May 23, 2012 12:13 am

Re: Synergy

Wed May 23, 2012 12:16 am

just tested both synergy and quicksynergy (just install it using apt-get for the debian image). Works great 8-)

User avatar
teh_orph
Posts: 346
Joined: Mon Jan 30, 2012 2:09 pm
Location: London
Contact: Website

Re: Synergy

Wed May 23, 2012 9:30 am

I've used synergy Windows-->Windows before. What's it like to Linux? Can I do ctrl-alt-backspace to kill the X server?

gladoscc
Posts: 58
Joined: Sat Dec 10, 2011 3:32 am

Re: Synergy

Wed May 23, 2012 11:51 pm

So does Synergy work with the Pi or not??

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Synergy

Thu May 24, 2012 12:17 am

gladoscc wrote:So does Synergy work with the Pi or not??
http://www.raspberrypi.org/phpBB3/viewt ... 429#p82429 :roll:
;)

MegaGumbo
Posts: 94
Joined: Mon Feb 13, 2012 4:45 pm

Re: Synergy

Sun Jun 10, 2012 8:02 am

Just installed Synergy on the Rpi (Debian Linux image) and added the client to my .profile file. Works like a charm between my Ubuntu Box and the Rpi, but if you are not using the default UK/US keyboard layout, be sure to add

Code: Select all

xsetkbmap <country code>
before the client call in your .profile (e.g.:

Code: Select all

xsetkbmap de
for a german keyboard layout). Otherwise the synergy client will fall back to the default US keyboard layout while the local keybord (usb keyboard attached to the Rpi) still has the proper mapping. Hope this is useful anyhow.

MegaGumbo
Posts: 94
Joined: Mon Feb 13, 2012 4:45 pm

Re: Synergy

Sun Jun 10, 2012 10:27 am

MegaGumbo wrote:Just installed Synergy on the Rpi (Debian Linux image) and added the client to my .profile file. Works like a charm between my Ubuntu Box and the Rpi, but if you are not using the default UK/US keyboard layout, be sure to add

Code: Select all

xsetkbmap <country code>
before the client call in your .profile (e.g.:

Code: Select all

xsetkbmap de
for a german keyboard layout). Otherwise the synergy client will fall back to the default US keyboard layout while the local keybord (usb keyboard attached to the Rpi) still has the proper mapping. Hope this is useful anyhow.
Ehm ... little typo: it's

Code: Select all

setxkbmap  <country code>
then ... sorry for the mistake.

Jardeath
Posts: 2
Joined: Wed Sep 05, 2012 11:13 am

Re: Synergy

Wed Sep 05, 2012 11:15 am

gladoscc wrote:So does Synergy work with the Pi or not??
It certainly does, I went through the process of setting it up recently, instructions on compiling it from source on the RPi can be found here.

http://www.rootusers.com/compiling-syne ... pberry-pi/

Aydan
Posts: 738
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: Synergy

Fri Sep 21, 2012 10:12 pm

I just tried synergy on my Pi but it crashes with a segfault.

Here's the log:

Code: Select all

root@raspberrypi:~# synergyc -f callisto
2012-09-22T00:07:41 INFO: Synergy 1.3.8 Client on Linux 3.2.27+ #148 PREEMPT Thu Sep 13 21:36:23 BST 2012 armv6l
        /build/synergy-f526E3/synergy-1.3.8/src/cmd/synergyc/synergyc.cpp,765
2012-09-22T00:07:41 DEBUG: XOpenDisplay("localhost:10.0")
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsScreen.cpp,901
2012-09-22T00:07:42 DEBUG: xscreensaver window: 0x00000000
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsScreenSaver.cpp,342
2012-09-22T00:07:42 DEBUG: screen shape: 0,0 3200x1234
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsScreen.cpp,136
2012-09-22T00:07:42 DEBUG: window is 0x00800004
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsScreen.cpp,137
2012-09-22T00:07:42 DEBUG: opened display
        /build/synergy-f526E3/synergy-1.3.8/src/lib/synergy/CScreen.cpp,41
2012-09-22T00:07:42 NOTE: started client
        /build/synergy-f526E3/synergy-1.3.8/src/cmd/synergyc/synergyc.cpp,339
2012-09-22T00:07:42 NOTE: connecting to 'callisto': 192.168.177.21:24800
        /build/synergy-f526E3/synergy-1.3.8/src/lib/client/CClient.cpp,115
2012-09-22T00:07:42 DEBUG: open clipboard 0
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,316
2012-09-22T00:07:42 DEBUG: empty clipboard 0
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,269
2012-09-22T00:07:42 DEBUG: grabbed clipboard 0
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,292
2012-09-22T00:07:42 DEBUG: close clipboard 0
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,351
2012-09-22T00:07:42 DEBUG: open clipboard 1
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,316
2012-09-22T00:07:42 DEBUG: empty clipboard 1
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,269
2012-09-22T00:07:42 DEBUG: grabbed clipboard 1
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,292
2012-09-22T00:07:42 DEBUG: close clipboard 1
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,351
2012-09-22T00:07:42 NOTE: connected to server
        /build/synergy-f526E3/synergy-1.3.8/src/cmd/synergyc/synergyc.cpp,256
2012-09-22T00:07:47 INFO: entering screen
        /build/synergy-f526E3/synergy-1.3.8/src/lib/synergy/CScreen.cpp,101
2012-09-22T00:07:47 DEBUG: recv clipboard 0 size=12
        /build/synergy-f526E3/synergy-1.3.8/src/lib/client/CServerProxy.cpp,526
2012-09-22T00:07:47 DEBUG: open clipboard 0
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,316
2012-09-22T00:07:47 DEBUG: empty clipboard 0
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,269
2012-09-22T00:07:47 DEBUG: grabbed clipboard 0
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,292
2012-09-22T00:07:47 DEBUG: add 0 bytes to clipboard 0 format: 0
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,303
2012-09-22T00:07:47 DEBUG: close clipboard 0
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,351
2012-09-22T00:07:47 DEBUG: recv clipboard 1 size=12
        /build/synergy-f526E3/synergy-1.3.8/src/lib/client/CServerProxy.cpp,526
2012-09-22T00:07:47 DEBUG: open clipboard 1
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,316
2012-09-22T00:07:47 DEBUG: empty clipboard 1
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,269
2012-09-22T00:07:47 DEBUG: grabbed clipboard 1
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,292
2012-09-22T00:07:47 DEBUG: add 0 bytes to clipboard 1 format: 0
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,303
2012-09-22T00:07:47 DEBUG: close clipboard 1
        /build/synergy-f526E3/synergy-1.3.8/src/lib/platform/CXWindowsClipboard.cpp,351
2012-09-22T00:07:47 INFO: leaving screen
        /build/synergy-f526E3/synergy-1.3.8/src/lib/synergy/CScreen.cpp,119
Speicherzugriffsfehler
root@raspberrypi:~#
X is running and I see the desktop on my pi.
I can move the mouse off the screen boarder on my PC but it doesn't do anything on the Pi.
Do I have to have mouse and keyboard connected to the pi? Right now it's only connected to LAN & HDMI

Regards
Aydan

Edit: Some more detail.
I just connected my KVM to the pi for keyboard and mouse, and they work but synergy still crashes.
I can move the mouse off the PC screen and it "moves" outside the PC screen, meaning i have to move it back an equal amout for it to reappear on the PC screen, but it doesn't move the Pi's mouse. when I move it a second time off the PC screen, synergy crashes on the Pi.

hackaroto
Posts: 11
Joined: Tue May 14, 2013 6:23 am

Re: Synergy

Wed Jun 12, 2013 11:54 pm

I managed to make it work!

My setup is:
Windows 7: Main Computer (Server - has mouse and keyboard)
RPi: Raspberry Pi (Client/autostart)

tutorial here:
http://www.raspberrypi.org/phpBB3/viewt ... 72#p368872

Return to “General discussion”