Palm TX: There’s more than one way to install an application

When I got my Palm TX, I didn’t realize that the Palm Desktop software wasn’t completely compatible with Windows Vista. For example, I can’t install new palm apps via hot syncing. Here are some alternative install paths:

1. Attach the pdb files to an email, and send it to myself. Use VersaMail to retrieve the message, and install the pdb attachments.
1. Use the web browser to download and install a pdb file.
1. Have someone beam it using the IR interface.
1. Have someone send it using bluetooth.
1. Install from an SD card. I haven’t verified that this works.

While I’m at it, it seems like configuring Linux to hotsync with Palm devices can be a pain. As an alternative, I think I’ll get an SD card and use [nvbackup](http://handypalmstuff.sourceforge.net/) to backup to SD, and then copy the backup from SD to my Linux box and use it with JPilot.

There’s more than one way to do things, especially for a Palm equipped with built-in WiFi, bluetooth and an SD expansion card.

‘iotop’ shows top I/O consumers

Want to know why your Linux box is sluggish? Some program is probably hogging disk I/O. I just discovered a cool utility that shows what programs are using the most disk I/O: [iotop](http://guichaz.free.fr/misc/). To install it on Fedora, run

yum install iotop

Otherwise, download and run [iotop.py](http://guichaz.free.fr/misc/iotop.py) — it requires Python 2.5+ and Linux kernel 2.6.20+

Evince broken: unhandled x-extension-pdf

On Linux and the Gnome Desktop, Evince is the default application for viewing Adobe Acrobat (PDF) files. Recently, it started giving me the message “Unhandled MIME type: ‘application/x-extension-pdf'”. Here’s how I fixed it.

1. Edit $HOME/.local/share/mime/packages/Override.xml
2. Replace “application/x-extension-pdf” with “application/pdf”
3. Run “update-mime-database $HOME/.local/share/mime”

[Reportedly](http://www.mail-archive.com/evince-list@gnome.org/msg00485.html), a bug in the Nautilus file manager causes this behavior.

XRandR in Fedora 8

Fedora 8 ships XRandR 1.2 (the X Rotate and Render Extension), which makes it possible to render a screen onto an overhead projector, among other things. Here’s instructions on [how to do useful things with XRandR](http://www.thinkwiki.org/wiki/Xorg_RandR_1.2#Using_xrandr_to_do_useful_things) (not Fedora specific). For now, control of XRandR is handled through the command line. In Fedora 9 or 10, there will likely be better user interfaces to configure XRandR.

Gnome Slideshow Screensaver Sanity

The default setup for Gnome’s GLslideshow is highly annoying on Fedora 8, and there’s not an easy way for users to individually configure it. Here’s how. As ‘root’, do the following:

Edit `/usr/share/applications/screensavers/xscreensaver-glslideshow.desktop` and replace

Exec=glslideshow -root

with

Exec=glslideshow -root -duration 15 -zoom 100 -pan 1 -titles

‘fuser’ linux command

I recently learned about the [`fuser`](http://www.google.com/search?q=fuser+linux+man+page) command, which may be useful when I want to unmount a file system that is in use ([`lsof`](http://en.wikipedia.org/wiki/Lsof) is also handy):

fuser -mu /media/USBFLASH # list pids and usernames with files open
fuser -muki /media/USBFLASH # kill, with a prompt, pids with open files

However, a lazy unmount is often sufficient:

umount -l /media/USBFLASH

Laptop hard drive lifetime (load cycles)

Run the following:

$ sudo smartctl -A /dev/sda | grep -P ‘Load_Cycle|ATTRIB’

And see something like this:

ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always – 6038

The last value is the number of load cycles. A laptop hard drive typically has a lifetime of 600,000 load cycles. If the count is increasing by several thousand per day (or even several hundred), it may be cause for concern.

For information and how to fix it, see [http://lwn.net/Articles/256769/](http://lwn.net/Articles/256769/)

The journey to Fedora 8

I’ve upgraded our family laptop to [Fedora 8](http://fedoraproject.org/wiki/Releases/8/ReleaseSummary) (yes, we still dual boot into Windows Vista). The upgrade would have been a rather bumpy ride, except that I knew that Fedora 8 upgrades are [problematic](http://fedoraproject.org/wiki/Bugs/F8Common#head-7b9bf2dab0e2bdd97d98334c7198cd9cd3eaf9be) (installs are OK), and that there’s a [workaround](https://bugzilla.redhat.com/show_bug.cgi?id=372011).

While Fedora 7 supported our laptop fairly well, Fedora 8 is even better. The power savings features are better. The Fedora community has tracked down and fixed several programs that were power hogs. The screen dims automatically while on battery power after about 30 seconds. File systems are reportedly mounted with the new [‘relatime’ option](http://www.lesswatts.org/tips/disks.php), which saves on hard drive battery usage — unless you upgrade, in which case, you have to add it manually. Improved wireless drivers in combination with an improved Network Manager connect more reliably, and more quickly, to our WPA2 access point.

*FreeNX broken, and manually fixed*

I use FreeNX regularly to connect to a remote linux box. When I upgraded one machine to Fedora 8, I couldn’t connect using an NX client. I found [a suggestion](http://www.nabble.com/Fedora-8-working-for-anyone–t4806795.html) that helped me fix it: Edit `/usr/libexec/nx/nxnode` and replace `DISPLAY=”unix:$display”` with `DISPLAY=”:$display”` everywhere. Hopefully, someone will re-roll the FreeNX packages to fix this for Fedora 8.

*Ubuntu sidenote*

I’ve heard the claim that Ubuntu is more ready for the desktop than Fedora, and up to this point, I didn’t know how that could be. Last weekend, I plugged a Logitech quick cam into my brother’s Ubuntu system. I was trying to figure out how to load the webcam driver, when we discovered that Ubuntu had already recognized the webcam, and it was ready to use.

Laptop lamentations and blissful benefits

At our household, we’ve finally made the leap from a desktop computer to a shiny new laptop — an [HP dv6426us](http://www.amazon.com/exec/obidos/ASIN/B000RGG5EC/). A new computer, in theory, should save time because it runs faster, right? Wrong. It takes time to become familiar with Windows Vista and where they’ve managed to hide various configuration options (displaying file extensions in Explorer). HP doesn’t make it obvious how to get rid of their annoying add-ons from popping up in my face. I didn’t buy this thing to run the HP Health Center. I bought it so the OS would stay out of my way, and let me focus on work (err, tinkering).

We’re still attached to our desktop computer until we have migrated our data and applications over to the laptop. Migration requires time, time, and more time. [FireFox](http://www.getfirefox.net/), [Thunderbird](http://www.mozilla.com/thunderbird/), Quicken, [Vim](http://www.vim.org), [Password Safe](http://passwordsafe.sourceforge.net/), [Putty](http://www.chiark.greenend.org.uk/~sgtatham/putty/), [Cygwin](http://www.cygwin.com/), PrintMaster, Hallmark Create-a-Card, Palm Desktop, [OpenOffice](http://www.openoffice.org/), [IrfanView](http://www.irfanview.com/), [NoMachine NX](http://www.nomachine.com/), an instant messaging client, and the list goes on. I’ve tried Vista’s new [Windows Mail](http://en.wikipedia.org/wiki/Windows_Mail), and it’s much better than Outlook Express, but my wife and I have our email in Thunderbird, and it was easy to migrate that across — once I figured out where to drop the folder on Vista — in `C:\Users\MyUserName\AppData\Roaming\Thunderbird`. PrintMaster 12 didn’t run for non-admin users until I figured out that I needed to grant Full Control access for `C:\Program Files\Broderbund\PrintMaster\Ereg`. Cygwin and NoMachine NX conflict with each other.

I bought this particular laptop because the hardware was likely to work with Linux — it has an Intel graphics card, which has open-source Linux drivers, and Intel WiFi. Open source drivers mean that suspend and resume are far more likely to function correctly than when using proprietary drivers (as from Nvidia or ATI).

I would install Fedora 7, which meant I needed to resize the existing windows partition. Vista’s disk manager made this a piece of cake. Installing Fedora 7 was easy. At first, Fedora didn’t resume after suspending to RAM. After applying all Fedora updates, it worked, although WiFi doesn’t work after the resume. Hibernate always works, and so does WiFi after resuming from hibernation. WiFi and the NetworkManager didn’t allow me to connect to my WPA2-encrypted access point until I disabled SELinux.

Linux has other problems running on the hardware, including:

– Secondary screen output hasn’t worked yet. This is easy and painless in Windows. It sounds like the latest xorg releases may help solve this situation with their Rotate and Render extensions ([RandR](http://en.wikipedia.org/wiki/XRandR)).
– Microphone doesn’t seem to work (although it does through VMWare Windows guest). Haven’t figured this out yet.
– Spotty webcam support in applications. Ekiga crashes. But yes, I found a [driver for my webcam](http://linux-uvc.berlios.de/). Too bad it didn’t come with Fedora 7 — I had to download, compile and install it myself.
– Slow hibernate/resume. The [TuxOnIce](http://www.tuxonice.net/) project supposedly remedies this, but I don’t want to spend all of my time tweaking my Linux box.
– Battery life. Even the Linux kernel hackers acknowledge that Windows gives better battery life than Linux. This situation is being remedied, gradually.

It takes more time than I want to spend to get Linux to run optimally on this hardware, and there are some Windows applications that just don’t have equivalents in Linux, like Print Master. My plan is to run Linux under [VirtualBox](http://www.virtualbox.org/) or [VMPlayer](http://www.vmware.com/products/player/).

I now realize that there’s huge value in an OEM preinstall of an operating system for end users. I had considered buying a [Ubuntu DELL laptop](http://www.dell.com/content/topics/segtopic.aspx/linux_3x), but let’s face it, DELL insiprons are ugly. HP systems are sleek, beautiful, and cost less while coming with more features (like a webcam).

Having a laptop is changing the way we work. Mobility is a huge win. We took the laptop with us when we went to vote in the primary election, because we had candidate information we could access using a web browser. There are downsides, of course.

We need a new printer and a new scanner with Vista drivers. We get to put up with frequent security dialogs interrupting our work flow. Vista itself consumes more RAM (nearly 500 MB), so we may need to upgrade to 2 GB. Vista runs slower than XP and Linux. Vista’s hibernate/resume is quite slow and gives no visual feedback during hibernation, just a blank screen. Vista’s boot and login experience is slow. Oh well. Life goes on.