<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Racker Hacker &#187; synergy</title> <atom:link href="http://rackerhacker.com/tag/synergy/feed/" rel="self" type="application/rss+xml" /><link>http://rackerhacker.com</link> <description>Words of wisdom from a server administrator</description> <lastBuildDate>Wed, 25 Aug 2010 13:03:52 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Sticky shift key with synergy in Fedora 12</title><link>http://rackerhacker.com/2010/03/03/sticky-shift-key-with-synergy-in-fedora-12/</link> <comments>http://rackerhacker.com/2010/03/03/sticky-shift-key-with-synergy-in-fedora-12/#comments</comments> <pubDate>Thu, 04 Mar 2010 02:44:12 +0000</pubDate> <dc:creator>Major Hayden</dc:creator> <category><![CDATA[Posts]]></category> <category><![CDATA[fedora]]></category> <category><![CDATA[gdm]]></category> <category><![CDATA[keyboard]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[synergy]]></category><guid isPermaLink="false">http://rackerhacker.com/?p=1274</guid> <description><![CDATA[My synergy setup at work is relatively simple. I have a MacBook Pro running Snow Leopard that acts as a synergy server and a desktop running Fedora 12 as a synergy client. On the Mac, I use SynergyKM to manage the synergy server. The Fedora box uses my gdm strategy for starting synergy at the [...]]]></description> <content:encoded><![CDATA[<p>My synergy setup at work is relatively simple.  I have a MacBook Pro running Snow Leopard that acts as a synergy server and a desktop running Fedora 12 as a synergy client.  On the Mac, I use SynergyKM to manage the synergy server.  The Fedora box uses <a href="http://rackerhacker.com/2008/07/30/automatically-starting-synergy-in-gdm-in-ubuntufedora/">my gdm strategy</a> for starting synergy at the login screen and in GNOME.</p><p>I kept having an issue where the shift key would become stuck regardless of the settings I set for the client or server.  The <code> halfDuplexCapsLock</code> <a href="http://synergy2.sourceforge.net/configuration.html">configuration option</a> had no effect.  After installing <code>xkeycaps</code>, I found that both shift keys were getting stuck if I brought the mouse back and forth between Mac and Fedora twice.</p><p>I decided to run a test.  I started the client with the debug argument and moved the mouse to my Fedora box.  At that point, I pressed the letter 'a' and saw:</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">DEBUG1: CXWindowsKeyState.cpp,195:   032 (00000000) up
DEBUG1: CXWindowsKeyState.cpp,195:   03e (00000000) up
DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) down
DEBUG1: CXWindowsKeyState.cpp,195:   032 (00000000) down
DEBUG1: CXWindowsKeyState.cpp,195:   03e (00000000) down
DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) up</pre></div></div><p>I brought the mouse back to the Mac and then back to Fedora.  I pressed 'a' again and saw:</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) down
DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) up
DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) down
DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) up</pre></div></div><p>After dumping the keyboard layout with <code>xmodmap</code> I found the keys that corresponded with the key numbers:</p><ul><li>032 - Left shift</li><li>03e - Right shift</li><li>026 - a</li></ul><p>If I tapped the left shift, I could clear the key press, but I couldn't clear the right shift key (it was stuck down according to Fedora's X server).  When I hooked up a physical keyboard and mouse, I was able to use them normally without any keybinding problems.</p><p><span style="font-weight: bold; color: #008000;">The root cause:</span> When synergy started in <code>/etc/gdm/PreSession/Default</code> after the gdm login, the keyboard layout wasn't set up properly.  The X server was setting up the keyboard layout later in the startup process and this confusion caused the shift keys to get stuck.  Fedora 12 uses evdev to probe for keyboards during X's startup and eventually settles on a default layout if none are explicitly defined.</p><p><span style="font-weight: bold; color: #008000;">The fix:</span> I added the synergy startup to the GNOME startup items and it works flawlessly.</p><p>&copy;2010 <a href="http://rackerhacker.com">Racker Hacker</a>. All Rights Reserved.</p>.]]></content:encoded> <wfw:commentRss>http://rackerhacker.com/2010/03/03/sticky-shift-key-with-synergy-in-fedora-12/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Automatically starting synergy in GDM in Ubuntu/Fedora</title><link>http://rackerhacker.com/2008/07/30/automatically-starting-synergy-in-gdm-in-ubuntufedora/</link> <comments>http://rackerhacker.com/2008/07/30/automatically-starting-synergy-in-gdm-in-ubuntufedora/#comments</comments> <pubDate>Wed, 30 Jul 2008 17:00:09 +0000</pubDate> <dc:creator>Major Hayden</dc:creator> <category><![CDATA[Posts]]></category> <category><![CDATA[desktop]]></category> <category><![CDATA[synergy]]></category><guid isPermaLink="false">http://rackerhacker.com/?p=313</guid> <description><![CDATA[Before you follow this guide, be sure to read about the issue I had in Fedora 12 with this strategy. At work, I have a Mac Mini as my main workstation with one monitor. There's another monitor to the right which is connected to my Linux box. I run a synergy server on the Mac, [...]]]></description> <content:encoded><![CDATA[<p><strong>Before you follow this guide,</strong> be sure to <a href="http://rackerhacker.com/2010/03/03/sticky-shift-key-with-synergy-in-fedora-12/">read about the issue</a> I had in Fedora 12 with this strategy.</p><p>At work, I have a Mac Mini as my main workstation with one monitor.  There's another monitor to the right which is connected to my Linux box.  I run a synergy server on the Mac, and I run a synergy client in Linux.  However, I was getting pretty frustrated when I'd have to manually start the synergy client on the Linux box with another keyboard.</p><p>After a bit of Google searching, I found a solution that will enable synergy at the GDM login as well as after the login (when the window manager starts).  Here's the process:</p><p>Open <strong>/etc/gdm/Init/Default</strong> in your editor of choice and go to the bottom of the file.  Just before <code>exit 0</code>, add the following:</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">/usr/bin/killall synergyc
sleep 1
/usr/bin/synergyc 111.222.333.444</pre></div></div><p>Next, you can create the <strong>/etc/gdm/PostLogin/Default</strong> file as an empty file, or you can copy over the template file from <strong>/etc/gdm/PostLogin/Default.sample</strong> to <strong>/etc/gdm/PostLogin/Default</strong>.  Either way, add the following to that file:</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">/usr/bin/killall synergyc
sleep 1</pre></div></div><p>Finally, edit the <strong>/etc/gdm/Presession/Default</strong> file and add in the following before <code>exit 0</code>:</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">/usr/bin/killall synergyc
sleep 1
/usr/bin/synergyc 111.222.333.444</pre></div></div><p>Once that's done, you can log out and log back in to see the changes.  You can also reboot your Linux desktop or switch to runlevel 3 and back to 5 (if your OS supports runlevel changes).</p><p>&copy;2010 <a href="http://rackerhacker.com">Racker Hacker</a>. All Rights Reserved.</p>.]]></content:encoded> <wfw:commentRss>http://rackerhacker.com/2008/07/30/automatically-starting-synergy-in-gdm-in-ubuntufedora/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached (user agent is rejected)
Database Caching using memcached
Object Caching 288/312 objects using memcached
Content Delivery Network via cdn.rackerhacker.com

Served from: rackerhacker.com @ 2010-09-10 08:40:12 -->