Entries tagged “linux”

Disabling the alarm on APC UPSes

UPS Alarm
From the wonderful Fly, You Fools! webcomic by Saad Akhtar. Read the full strip.

You know what I mean. What were they thinking? Here’s a helpful explanation by an APC employee:

I understand your concern with not wanting to be woken up at 2am to be alerted that power has gone out in your residence. I use the software at home to disable the audible tone as well, however, I think taking a look at it from a different approach may be ideal. Is the UPS your source of power for your alarm clock in the morning? What would occur if you were to have to wake up at a specific time during the week, and your alarm clock, which is not powered by your UPS, powers off due to a blackout, even if it is momentary? I think it would be ideal in this scenario that the UPS wakes you to notify you of a power failure. That would allow you to possibly find an alternate source of power for the alarm clock, or, if power is to be restored within a reasonable period of time, to reset your clock so that you wake up on time.

Right. That’s why. That horrible shriek is meant to wake you up. If, like all real people, you have an alarm clock that runs on batteries and prefer a full night’s sleep, it turns out that you can disable it. This works on most common APC UPS models with the USB cable. Windows users should install APC’s PowerChute software. It apparently has an option somewhere to turn it off. On Linux, the apcupsd package will do it for you (make sure to plugin the USB cable first):

Read on...

Improving font rendering under Ubuntu

Ubuntu ships FreeType with the bytecode interpreter enabled. This works very well for common typefaces such as Vera, DejaVu, Verdana and Georgia at small sizes but somehow doesn’t for other typefaces and sizes.

After some tinkering, I came up with a configuration that works for me:

  1. Open the Terminal and type sudo dpkg-reconfigure fontconfig-config
  2. Choose Autohinter, Automatic for subpixel rendering, and No for bitmapped fonts.
  3. Under System ? Preferences ? Appearance ? Fonts ? Details, choose Subpixel and Slight.
  4. Restart OpenOffice (including the Quickstarter) and Firefox. These two don’t reflect changes automatically.

We’re making two choices here:

  1. Native bytecode interpreter vs the autohinter. I’m not completely sold on one over the other.
  2. Full vs slight subpixel rendering. Full looks fantastic at small sizes (8-9pt) but terrible when large. Slight is less well defined at small sizes, but acceptably well shaped for larger sizes.

Further reading: Comprehensive Ubuntu Font Configuration Guide (written for Gutsy but also applicable to Intrepid).

Update: Disregard the above. The blurriness at small size gets unbearable after a while. Go back to native interpreter, full subpixel hinting, and setup custom workarounds in your ~/.fonts.conf file. Here’s mine:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="font">
        <test qual="any" name="family" compare="eq">
            <!-- Twitter uses Lucida Grande. The site looks terrible without
                 hintslight enabled. -->
            <string>Lucida Grande</string>
        </test>
        <edit name="autohint" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="hintstyle" mode="assign">
            <const>hintslight</const>
        </edit>
    </match>
</fontconfig>

The Eee PC rocks!

It’s been two months now with my Eee PC and I’m pleased as punch. This is easily among the most useful gadgets I’ve acquired.

The Eee PC is incredibly small and light. It fits everywhere, even in my camera bag with the camera also in it. Despite the miserly 800x480 resolution, or perhaps because of it, I keep all windows maximised and work distraction free. The screen’s just wide enough for a column of text, which makes it a great ebook reader. OpenOffice with read-only documents defaults into viewer mode, which is great. I no longer have to convert stuff into PDF to make a comfortable reading experience, like I needed to do on the Mac. Vim, with my customised vimrc, works splendidly for editing in reStructuredText, my text markup format of choice.

When I’m not working with documents or code, I’m working with people, and XChat when maximised once again delivers the goods. I can keep the device aside, an eye on the conversation, while I’m working on something else.

Because it’s always in my bag, I can pull it out when waiting at a coffee shop, make a note, read something, or otherwise generally be productive instead of twiddling thumbs. The device is low profile and the keyboard comfortable. The battery life isn’t great, but I’ve managed to stretch it as much as 3:30 hours. It lasts long enough between the average visit to the power socket.

That said, the quibbles:

  • The trackpad’s scroll area is way too sensitive. I use a scroll mouse occasionally just for the scrolling comfort.
  • The PgUp/PgDn keys are overloaded on the arrow keys. Navigating documents a page at a time is that much less convenient.
  • Boot time with Hardy is several seconds longer than it should be, while suspend-to-ram sucks juice.
  • I miss Skim. It made reading and annotating PDF on the Mac such a joyous experience. There’s nothing like it on Linux.

All minor. The device overall gets two thumbs up.

ASUS Eee PC vs HCL MiLeap Y

I’m in the market for an ultralight laptop to serve half-way between my cell phone (Nokia E61i; very portable and always on me, but painful for anything more than a few hundred words) and regular laptop (Apple MacBook Pro; all round performer but not a joy to lug around). The primary use will be for email and extended note taking. There appear to be only two suitable candidates available for purchase in Bangalore today.

The MiLeap Y or Eee PC, oh which one will it be?

Feature ASUS Eee PC HCL MiLeap Y Advantage
Size 7″ 7″ Match
Display 800×480. Painfully inadequate. The dialog boxes of several apps are too large to fit on screen. 1024×600. Feels comfortable when apps are maximised. MiLeap Y
Build Traditional laptop design. Feels solid. Tablet PC design. Feels like an accidental drop could break it. Eee PC
Finish Matte. Leaves no smudges. Glossy. Fingerprint magnet. Eee PC
Weight 920 grams 980 grams. The 60 gram difference may seem paltry but is noticeable. Eee PC
Battery Life 2.5 hours as per reviews. This is pretty much what makes or breaks a device’s usability. ASUS has announced plans for higher capacity batteries. 2 hours as per reviews. Poor show. (I wouldn’t go with manufacturers’ claims of battery life in idle mode.) No news on better battery availability. Eee PC
Startup Time 15-22 seconds cold, lesser from suspension 1:30 minutes cold, 45 seconds from hibernate Eee PC
Power Adapter Feels like a large cell phone charger. You could tuck it into a pocket and carry the Eee PC like a notebook when moving around. Brick with cables both ends. Major fashion faux pas to be seen toting one, besides being unwieldy. Eee PC
Storage 4-8 GB. The 8 GB versions don’t appear to be available in India. 80 GB. Serious advantage here. Solid state storage’s perceived reliability isn’t so much of a plus point for me as disk crashes aren’t all that common, replacement disks are easy to obtain, and disruptions can be minimised with regular backups. MiLeap Y
Trackpad Relatively large. Single button with separate left and right sensors. Not possible to press both together. Relatively small, but with separate left and right buttons. Separate scroll buttons on screen. MiLeap Y
Touch Screen No Yes. The touch screen is pressure-based however, and unusable for actually writing on unless you don’t mind scratches. In my testing, it failed to recognise writing unless I pressed hard. High quality write-on screens use a special pen with a conductive coil that requires a very light touch. MiLeap Y
Alternate Form Factor None The MiLeap Y in tablet form factor makes a great ebook reader / web browser. The screen’s sides have a fairly usable button mouse, arrow direction pad, scroll buttons and a few extra (hopefully) reprogrammable buttons. MiLeap Y
OS Linux. You can choose your own distro and UI. Dedicated community providing customisations tailored for the Eee PC. Windows Vista Home Premium. The UI is still toyish (WinXP’s UI was like a candy factory meltdown) and switching is not an option, as parts of the hardware are unsupported on Linux. Eee PC
Pedigree ASUS, which is committed to first class Linux support. Everything just works. Also available as the Kohjinsha SH-series. HCL is a licensee. I wouldn’t expect HCL to build high quality hardware given they have neither the track record nor market presence, so this is good news. The upstream manufacturer, however, appears uninterested in Linux support and HCL’s voice will remain unheard unless they have enough demanding customers. Eee PC
Processing Power 900 MHz, but underclocked to 630 MHz. 800 MHz, but Vista’s sluggishness makes it feel slower. Match
Cost Rs 16-20,000 Rs 35,000 Eee PC
Obsolescence Given the rapid pace of improvements in small form factor computers, the Eee PC will be very obsolete in a year. It will, however, have a second life as that little network file server tucked away under the desk. It is also cheap enough to give away. The MiLeap’s spotty Linux support makes it a less likely server, and far higher cost makes it harder to give away. The touch screen could however mean it’ll turn into some kind of a wall mounted device, although its hard disk won’t survive on a treadmill (which is where I’d want a touch screen). Eee PC
Final Tally 10 5 Eee PC

What would you pick and why?