Subscribe to How-To Geek

Recommended: Click Here to Run a Free Scan for Common PC Errors   [Sponsored Link]

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.

image

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.

image

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:

image

I hope this information is useful to other people… it's been indispensable for me.

The Geek is the founder of How-To Geek and a geek enthusiast. When he's not coming up with great how-to articles, he's probably writing at his personal blog. This article was written on 10/30/07 and tagged with: Windows Vista, Vista Tips & Tweaks

Comments (20)

  1. Beta3

    Nice tip! thanks a lot..

  2. rothgar

    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.

  3. WildSignals

    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.

  4. The Geek

    All of these issues make me want to crack open the source code… I very well might, in fact.

  5. quasar

    Thank you! I have been having a hard time with this and there isn't much documentation about synergy.

  6. Allen

    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.

  7. homer

    thank you. it works on my vista pc!

  8. jd2066

    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.

  9. Blaumeiser

    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

  10. mrbean

    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

  11. dealmaster

    thanks very much for this!

  12. Dave Miller

    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.

  13. Aland

    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

  14. OgeGOon

    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.

  15. Dave

    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

  16. 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

  17. jd2066

    @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.

  18. Dave

    Yes, that was it. Thanks for the quick response to my question.

  19. Rainypm

    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?

  20. jd2066

    That usually means the download failed. You need to redownload it.


Leave a Comment




Leave your friendly comment here. If you have a computer help question, leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Copyright © 2006-2008 HowToGeek.com. All Rights Reserved.