Archive for the ‘Linux’ Category

Fixing Double-Click Interval for Java Applications Under Linux

Sunday, December 4th, 2011

If you are using any Java applications (such as IntelliJ IDEA or RubyMine) under Linux / KDE you may have wondered why their response to double-clicks is somewhat sluggish or unreliable. As it turns out, Java (Swing) ignores KDE’s setting for the double-click interval, so Java uses a pretty short default (AFAIK ~200 ms).

To fix this, create a file named .Xresources in your home directory and add the following line:

*.multiClickTime: 500

Set its value to whatever interval you prefer (the example is using 500 ms).

Edit: JetBrains support just mailed me that the root cause is a bug in the JDK, reported in 2004 and fixed in Java 7 (doh!): http://bugs.sun.com/view_bug.do?bug_id=5076635

Printing to a Kyocera FS-1370DN via IPP/SSL under Linux

Tuesday, November 15th, 2011

So I recently got a shiny new Kyocera FS-1370DN printer, which features a built-in NIC (and even supports IPv6). As I have multiple client PCs I wanted to actually use the printer’s network interface instead of wiring it up through USB. While not being strictly necessary in a SOHO network environment, I wanted to go for a protocol that supports encryption. Fortunately, the FS-1370DN supports IPP over SSL. The documentation on how to correctly address the printer through that protocol was scarce, though, and Google was not much of a help.

As I eventually figured out the right URL to use in CUPS:

ipp://<hostname>:443/printers/lp1?encryption=required

Apart from that you need to make sure that IPP over SSL is turned on (which you can’t using the printer’s built-in menu, but only through its web-based management UI [Basic -> Device Security -> Network Security -> IPP over SSL -> Unblock] and [Advanced -> Secure Protocols -> SSL -> On]).

Reducing T420s Power Consumption under KDE/Linux

Thursday, October 6th, 2011

If you own a Lenovo ThinkPad T420s (or any recent-generation notebook with a Sandy Bridge CPU) with Intel HD 3000 Graphics, this information may help you to reduce the power consumption under KDE/Linux:

  • Intel HD 3000 Power-Saving: Enable the following Kernel command-line options: i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1
  • Force ASPM: Enable the pcie_aspm=force Kernel command-line option
  • In KDE, go to “System Settings” | “Desktop Effects” | “Advanced” and set the “Scale method” to “Crisp”.

Overall, this brings my T420s’s power consumption down below 9 W. For best results, use a recent Linux 3.1-rc pre-release.