Fixing Problems with Synergy on Windows Vista
If you use the excellent Synergy application to share your keyboard and mouse between computers, you’ve probably noticed some weird behaviors in Windows Vista… especially when running any application that requires administrator permissions.
The problem is that Synergy is getting “locked out” while your admin mode application has the foreground focus. The workaround is to just run Synergy in administrator mode as well.
What is Synergy Again?
Synergy is an open source utility that allows you to share a single keyboard and mouse across multiple computers running different operating systems. This differs from remote desktop or VNC in that you continue to use separate monitors for each computer.
For instance, in my setup I have a keyboard and mouse attached to a computer running Windows Vista. On the left is a Mac Mini, and on the right is a computer running Kubuntu. I can move the mouse from one screen to the other as if it was a giant desktop with three monitors. (I’ll post a picture one of these days)
For more information on Synergy you can check out the homepage.
Run Synergy in Admin Mode
The biggest problem I’ve had with Synergy is that I can’t move the mouse between computers while an administrator mode application is open. This is easily remedied by simply running Synergy as administrator.
Right-click on the shortcut you usually use to launch Synergy, and then choose the Advanced button on the Shortcut tab.
Here you can choose to “Run as administrator”, which will force the application to always run in admin mode. If you have UAC enabled, you’ll be forced to accept each time.
Automatic Starting
You cannot use Synergy in “Start as Service” mode in Windows Vista because the new security model prevents system services from interacting with the desktop. You will have to launch the application as a regular startup item.
In order to make the services start up automatically, you’ll have to follow these steps:
- Setup automatic Logon (Only necessary for Synergy clients)
- Disable UAC Prompting for administrators
- Make Synergy automatically start when you login.
I hope this information is useful to other people… it’s been indispensable for me.
Daily Email Updates
You can get our how-to articles in your inbox each day for free. Just enter your name and email below:
| Similar Articles | Featured Wiki Articles |
|
|
| Latest Software Reviews | Quick Linux Tips |
| Geek Arcade | Popular Forum Threads |


Nice tip! thanks a lot..
Thanks for the tips. After disabling UAC I haven’t had any problems with synergy (starting automatically or cutting out). I would like to get my screensavers to sync but that still doesn’t seem to work for me. I run my server on my XP machine and client on vista.
I tried running it as admin in Vista, and it works. But doing so (bizarro alert) crippled the mouse buttons on Virtual PC machines. I’m a geek and run two VPC’s on my system. The mouse movement was fine, but the buttons would not click until I shut off Synergy. Also I noticed that running Synergy in user mode, if you minimize any window that is running in admin mode, you can move between screens. This whole process has me intrigued with IP KVM technology now. It’s pretty fun really to see what’s causing what.
All of these issues make me want to crack open the source code… I very well might, in fact.
Thank you! I have been having a hard time with this and there isn’t much documentation about synergy.
My problem is that when I move back from the client (an Ubuntu computer) to the server (Vista), sometimes the keyboard acts weird. It will take one keystroke, and then make the top window lose focus. You have to keep returning focus to the window for each keystroke you type. On Emacs for Windows, it does other bizarre things. Finally, when on Vista, sometimes when I Alt-Tab, the Alt-Tab task switching window does not go away after I release Alt-Tab.
I like it enough that I put up with the inconvenience of restarting the server every time this happens… which is about 20 times a day.
thank you. it works on my vista pc!
One other good tip is how to have Synergy start with Administrator privileges on login without disabling UAC.
I figured out that you can use the Task Scheduler to launch programs elevated on login and it won’t show a UAC prompt.
So for Synergy all you need to do is copy the cmdline it adds to the HKCR startup key, delete that key and add a task in Task Scheduler for it. Though for Synergy, it does appear to have the side effect of tray icon not appearing.
If anyone is interested I post more about how to do it.
Hi,
nice tips, but synergy often crashes on vista 64bit and mouse/keyboard-control has gone away. You cann still ctrl+alt+delete and use you input devices bit this does not help because going back to your login-session will hang the io-devices again. logout is necessary to resolv this issue.
jb
wow, been banging my head on my desk trying to get it to work with vista, the xp machine would say it was connected but vista machine showed nothing. disable the auto start and works perfectly
thanks very much for this!
Thank you!!! It took me a while to work out why the client said it was connected, and test mode worked fine, but it wouldn’t switch screens.
Auto-start at login works okay for me but I have similar problems with auto-start as service (”when computer starts”) as described above “XP machines says it’s connected but vista shows nothing”. I can auto-start synergy service at user login but not at computer start on Vista. XP runs as service at computer start which lets me login to XP using the keyboard connect to my Vista “server” seat but only after I first login to my Vista station.
Config: Vista as server, XP and Ubuntu as clients
Thanks a lot for sharing these tips !
When an application running with admin-rigths had the focus, my mouse was indeed locked on the screen… If I gave the focus to the desktop (for example), then the mouse could travel to another screen.
Now, since Synergy is also running with admin-rights, no problem anymore !
O.
I’m hoping someone can help me out here… I have an XP machine and a Vista machine side by side for testing and such. I can’t get Synergy to do anything at all if the XP machine is the server, and when the Vista machine is the server, I can move over to the XP machine, but not BACK to the Vista machine. So I end up killing Synergy to release the mouse and kbd for my Vista machine.
Any help would be great.
-dave
Addendum to the above.
Configuration as follows:
XP machine is a docked HP laptop with a second monitor as the primary display
Vista machine is an HP desktop with single monitor attached
@Dave: The solution to that is simple. I made the same mistake at first too. You need to configure the server to list both computer screens in it’s configuration.
So in synergy put:
MachineA is to the left.
MachineB is to the right.
Yes, that was it. Thanks for the quick response to my question.
I’m having trouble getting Synergy to install on my Vista laptop. It says: Installer corrupted or incomplete. This coule be the result of a failed download or corruption from a virus. If desperate, try the /NCRC command line switch.
I added the /NCRC command line switch and tried again with exactly the same results. Does anyone have any suggestions?
That usually means the download failed. You need to redownload it.
@Allen
I have exactly the same problem, and that is why I reached this page. I constantly have to restart Synergy because it causes some windows to lose focus. If only I knew how to debug it…
Thanks for posting that… my systems are finally syngergized again!
I’m using Synergy that way for quite a while now with Vista as server and XP as client. I’m facing the same problem as Allen. Sometimes (well several times a day) especially Office applications loose focus after the first key stroke. The only help is to restart the server.
Additionally on XP the Windows key seems to “hang”. Unlocking my computer (my password has a “u” in it) often start the “narrator” (Win+u). I can work aroung that by pressing an unused Win+whatever combination.
Thanks a crap load.
Now I can run my server on Vista and client on my laptop running linux. I thought it was something like this but didn’t realize that services can’t interact with the desktop in Vista.
Thanks again
Thanks a whole bunch! Now to figure out why Synergy seems to activate the Alt and Ctrl buttons randomly on my Vista server. I wish someone would crack open the code and update it..
@morphine
Happens to me too… drives me crazy. One of these days I’ll get fed up enough to open the source code myself.
Man – thanks…
I was tearing my hair out and you saved me from baldness…
Running OSX leopard server and vista client… nice.
Keep up the juice.
@morphine & @the geek
I’m having the exact same problem and it has made synergy unusable for me. I just upgraded to Vistax64 from XP32. On the XP it all worked a treat – even my custom mouse buttons worked on the 3 client machines I run.
I would gladly pay to have this amazing piece of software polished up. (last official update was in 06 it seems). I’ll report back if I work out how to fix this annoying bug.
Interesting on the ctrl key problem – I just started experiencing it as well. Question for those of you who are seeing it – do you have Google Desktop installed by any chance? I’m trying to determine whether there is some interaction between those two and the ctrl-ctrl command combo.
@Everyone using 2 Windows machines
I would highly suggest using inputdirector instead of synergy. I switched to input director and never wanted to use synergy again between two windows computers.
http://www.inputdirector.com
Inputdirector not an option as it is windows only.
It’s possible to run Synergy as a service under Vista.
https://sourceforge.net/forum/message.php?msg_id=5691469
@Kalmi
Actually the registry hack in that forum post details how to add it as a startup application, not as a service. The difference is that with that registry hack it will run only after you login, not before like if you run it as a real service under XP… so you can’t login manually or lock the screen.
There’s no way that I know of to run it as a service under Vista.
I’m a little late to the Vista game but have been using Synergy for a number of years now. Thanks for the quick walk through.
I have a dual-boot Vista64/Ununtu machine as my main server.
The synergy server works fine under ubuntu.
It just won’t connect under Vista64.
I changed it to run as admin, no help.
I opened port 24800, no help
I ran with firewall off, no help.
Anybody know of any Vista oddity I might be bumbing into which is keeping
the synergy server from running under Vista64?
Synergy works fine without disabling UAC nor running as admin on Windows Vista Ultimate SP1 with current updates from Microsoft. It automatically starts on log on and I’m logged in as Standard User and NOT as an Administrator. Auto Start on Log In is the only option, Auto Start When Computer Starts is grayed out.
Hm. It seems that Microsoft’s own remote desktop service is able to do allow remote interaction with the Desktop (i.e. to login), yes?
Also, RealVNC claims to be able to present the display remotely to log in.
Does that imply that there might be some magic way to achieve synergy to run as a service?
It is true that synergy looks an awful lot like the basis of a keystroke logger…
I have used this for 2 years on various XP and Vista machines, plus a few Linux distros I tried. pcOS 2007 (Linux) and Windows 7 Ultimate Beta are the only OS’s I’ve yet to have work. I just installed Windows 7 and can’t get a connection. If anyone has got it to work, email me!
One of the best free software I have ever used. Occasional problem with cut/copy & paste but reboots usually take care of it. Probably wouldn’t have that problem if I rebooted more than monthly!
Good post Geek…keep up the good work.
It works for me!
But when I move my mouse to the client computer, it won’t come back to the server until I close Synergy on the client
I can confirm that RealVNC server can allow keyboard and mouse to be fed to the login session.
So in principle that means that Synergy could be written to be able to.
I suspect that they are installing their own driver which may be what it takes.
How to run Synergy on Windows 7 in 10 easy steps!
First, make sure that:
- you autologon to the system
- Hide extensions for known file types is off (Windows 7: Folder and Search Options)
- Synergy is installed
- Your keyboard/mouse server is all setup
All set? Ok here we go:
1. Double click Computer on the desktop, then go to the folder C:\Program Files\Synergy
2. Right click on synergyc.exe, click Properties, switch to the Compatibility tab and check the ‘Run this program as an administrator’ box.
3. Click ok to close this window. You can also close the Computer window.
4. Back on the desktop, right click on the desktop, point to New, click ‘Text Document’, name it something like SynergyStart.txt.
):
5. Press Return/Enter twice to open the document.
6. Paste in the following 4 lines of text (which you can find in the registry after you failed to install the service/autorun
@echo off
C:
cd “\Program Files\Synergy”
start synergyc.exe –no-daemon –debug WARNING –name PC2 PC1:24800
7. On the last line, change the name PC1 into the name of your keyboard and mouse server, and the name PC2 to the name of your client PC.
8. Rename the file to SynergyStart.bat
9. Drag the file it to the bottom left of your screen, all the way into the Startup folder of your Windows ‘All Programs’ menu.
10. Sorry, no step 10, we are done!
Enjoy!
Arjan Salomons,
Thanks for the reply and the information needed. However I must have done something wrong OR -autologon means that i cannot have a user pass to logon to my compuer?)
Thanks and I hope to hear back from you,
Update!!
I have deleted the synergy program and then reinstalled it and it works like a charm! Wooo hooo!
My very recent problem with Synergy not working was caused by the Microsoft .NET 3.5 SP1 install that came out on 11/18/08 but I had not gotten it until today.
This was very helpful, Thanks!!
OMG, thank you!
Thought I’m too stupid for that..but now it works fine
Losing focus on login / lock screen using XP and a Mac.
I was having this problem – each time I pressed a key when typing in my password to unlock the machine the window would lose focus. I resolved it by going into services (I have synergy set to autostart as a service), and in the Synergy service properties under logon tab I changed it from -local system account- to -this account- which I changed to my administrator account. I restarted the service, and Synergy failed to connect to the other machine (the Mac). So I changed it back to -local system account- restarted the service, and now when unlocking the machine I don’t lose focus.
Don’t ask me why, but this fixed it for me :]
Thanks jd2066 for explaining that it needs to be two ways. I can’t stop myself from moving the mouse around all the screens now!
Something I have been having problems with is that when I’m running Synergy, of course with the same settings as this guide informs about, is that my Alt+Tab function in Vista stops working properly. I have to hit Alt+Tab repeatedly to make it browse through my running applications.
Anyone who has the same problem?
Anyone have a solution?
http://quicksynergy.sourceforge.net/ could help those with mac & linux clients / servers and is more up to date than synergy is! I hope they produce a version for Win32.
Hi, I have a Laptop running Vista and a PC runing XP, I can use the XP as the server for synergy and it works… But i’d prefer to use Vista as the server but it won’t work! any tips?
Here is my issue:
When I run Synergy on my Vista machine as Server, none of my laptops connect.
When I run Synergy on my either of my Laptops as Server, my Vista can connect as client.
I want my Vista machine to be the Server. Any help will be greatly appreciated.
Hi Dom, Ubertod,
I think you are both suffering from the same issue. What you could do is 2 things:
First, try connecting to your server by the IP address of the server. If that still does not work, check if a firewall (Windows or 3rd party) is blocking the connection
If a connection by IP is possible, maybe the XP and Vista PC are not in the same workgroup?
Second, if you still can not connect. the server process might not have proper rights on the Vista PC to act as a server, try starting synergys.exe with admin rights (right mouse button, run as Administrator), or try to install the service if you haven’t done so yet.
I know Synergy is kind of buggy on these systems, but you can make it work, just test a little.
Sadly I can not test Synergy server on Vista/Windows 7 myself, since I only run the server on XP. I have had clients running on XP, Vista, Windows 7, Ubuntu Linux and even OSX!
THANKS MAN!
This have been bugging me for days, did a google search, and tadaaa. You helped at lot!
I have this running on vista(server) and windows 7(client) and it’s working great if I disable the autostart.
you can also open a elevated cmd prompt and type ‘net user Administrator /active’ and use the administrator account without any annoy uac…