How to Enable Toggling a KVM with Linux Mint

I just got this KVM from Monoprice (for only $27!), and had difficulty setting it up with Linux Mint 11. Specifically, when running under X, hitting the Scroll Lock key twice resulted in no response. However, when running in a VT (that is, switching from X via ctrl-alt-F1), it worked, so my guess is that there is some issue with Gnome misdirecting or misinterpreting the key event.

I eliminated the KVM itself as the problem by running a very long command (“find /”), and hitting Scroll Lock did not stop the output from scrolling, when running in a Gnome terminal. As with the KVM, Scroll Lock did stop the command output when I was running in a VT.

Online there were examples of using xmodmap to enable the Scroll Lock key, but these didn’t work for me. I tried to:

xmodmap -pm
xmodmap -e 'add mod3 = Scroll_Lock'

But neither the KVM nor the command-output tests worked. Then I found this snippet:

xset led 3 && sleep 0.2 && xset -led 3 

I ran it, and lo and behold, it worked. So I wrote it to a script:

echo "xset led 3 && sleep 0.2 && xset -led 3" > ~/bin/toggle_kvm
chmod +x ~/bin/toggle_kvm

Then went to Keyboard Preferences, added that command, and gave it a shortcut of “Scroll Lock”.

So the only difference now is that in Windows, the Scroll Lock key has to be hit twice, but only once in Linux.

… and Back to Gnome from KDE

I recently switched from Gnome to KDE, after a couple of Gnome quirks proved to be quite irritating. However, KDE became even more bothersome. Specifically the performance was dreadful. This is a new(ish) machine, just a few months old, with a six-core processor, 8 GB of memory, and an SSD, so I expect good if not extraordinary performance. However, under KDE the response within windows was very sluggish, on the order of a second or two to scroll down in applications.

Fonts were also a problem, where the fonts under KDE, for both KDE and Gnome applications, lacking smoothness. Despite much fiddling of font preferences, I could not get them to look as good as they do under Gnome.

Switching back to Gnome hasn’t resolved its irritations, although it’s put them in context. The main problem is that to get the title and task bars working properly (showing the currently focused application) I have to restart the window manager after login, and after launching Gnome Terminal I have to switch in and out of each tab so that the focus of the cursor is correct.

Migrating from Gnome to KDE

Since installing Linux Mint 11 on my new(est) machine, I’ve been frustrated with the UI. Even with (or because of?) the latest updates to Gnome, title bars and status tabs in the task panel would not update, such as when changing directories in a shell, or switching files in Emacs. Even switching from Compiz to Metacity did not help.

Mint 11 ships with Gnome as the window manager, and from feedback from another long-time Linux devotee, I decided to try KDE. I’d only used Gnome before, although I have set up KDE systems (namely Kubuntu) and liked what I saw.

Since Mint does not include KDE, via Synaptic I added kde-full, logged out and logged into KDE (selecting it on login), and … well, it’s great. Much cleaner interface, title bars and the task bar work as they should, and the effects are good, yet not excessive.

The only nit was the font for Gtk apps, such as Firefox and Synaptic, which were some ugly font, making me feel like I was running Netscape circa 1998. Online I found some references to gtkqt-engine, but that package is not in the Mint/Ubuntu/Debian repositories. More poking around revealed it now as kde-config-gtk, which, when installed, make Gtk applications use the KDE fonts, and all is well now.