Installing Ubuntu 5.10 on Fujitsu ST 4000 Tablet PC

This document provides an overview of the process I followed to install Ubuntu on my brand new (used) tablet PC.

Backing Up XP Tablet

Figuring I might screw up and wipe out the machine I backed up the existing OS. Using Knoppix and ntfsclone, dd, and a few other things I piped the entire drive over to my workstation.
  1. Backup the main partition (ntfs)
    Logged into the tablet.
    ntfsclone --save-image --output - /dev/hda1 
        | gzip -c | ssh -c blowfish chad@192.168.128.4 
        'cat > /dos2/share1/backups_chad/xp_tablet_image.gz'
    
    Note, ssh will ask for a password. I stared at the machine for a bit of time before figuring out that it needed one entered. This is because the prompt is hidden by the ntfsclone.

  2. Backup the recovery partition (fat32)
    Logged into the tablet.
    dd if=/dev/hda5 bs=1k conv=syn,noerr 
        | gzip -c | ssh -c blowfish chad@192.168.128.4 
        'cat > /dos2/share1/backups_chad/recovery_image.gz'
    
  3. Backup partition information
    Logged into the tablet.
    sfdisk -d /dev/hda | ssh -c blowfish chad@192.168.128.4 
        'cat > /dos2/share1/backups_chad/partition_info.gz'
    
  4. Backup MBR
    Logged into the tablet.
    dd if=/dev/hda count=1 bs=512 
        | gzip -c | ssh -c blowfish chad@192.168.128.4 
        'cat > /dos2/share1/backups_chad/mbr_image.gz'
    

Installing Ubuntu 5.10

Not really anything exciting. I let Ubuntu pretty much choose everything.

Configuring Ubuntu

Ubuntu being based on Debian is completely foreign to me. I have typically used Fedora (and before that Redhat). So this is all new, and actually pretty easy
  1. Wacom
    Configuring the serial port: Add set serial Setting up the system to use the pen was very easy. I found on the Internet that the port number is 0x220. To ensure that this is set on boot edit /etc/serial.conf and add the line:
    /dev/ttyS2 irq 4 port 0x220 autoconfig.
    
    Configuring X for the Pen:
    I added this section to my X configuration file (/etc/X11/xorg.conf)
    Section "InputDevice"
            Identifier "Stylus"
            Driver  "wacom"
            Option  "ForceDevice" "ISDV4"
            Option  "Device"        "/dev/ttyS2"
            Option  "Type"  "stylus"
            Option  "SendCoreEvents"        "true"
            Option  "Rotate"        "CW"
            Option  "TPCButton" "off"
            Option  "Threshold"     "3"
    EndSection
    
    The Rotate options rotate the Wacom input. Which is needed if the screen is going to be rotated, don't include it if the screen is not going to be rotated. And I updated the ServerLayout section to look like this:
    Section "ServerLayout"
            Identifier      "Default Layout"
            Screen          "Default Screen"
            InputDevice     "Generic Keyboard"
            InputDevice     "Configured Mouse"
            InputDevice     "Synaptics Touchpad"
            InputDevice     "Stylus"
    EndSection
    
    At this point X was working correctly although not rotated (I didn't rotate the pen till later).

  2. Suspend to RAM
    It currently does suspend to RAM and sometimes even wakes up from RAM. But, other times it doesn't wake up. I have fiddled with this and as of yet don't know what the issue is.

  3. Display Rotation
    Update the "Device" section of the X configuration file to look like this:
    Section "Device"
            Identifier      "Intel Corporation 82830 CGC..."
            Driver          "i810"
            BusID           "PCI:0:2:0"
            Option  "Rotate"        "CW"
            Option  "SWCursor"      "on"
    EndSection
    
    Be absolutely certain to include the "SWCursor" option. If you don't the cursor doesn't work even close to the way it should.

  4. Brightness
    Setting the brightness of the display is simply a manner of executing the following as root:
    cat 1 > /proc/acpi/video/VGA/LCD/brightness
    
    0 - 8 8 = bright 0 = nothing
    I attempted to control the brightness via ACPI but just gave over and let X turn off the display if I'm idel more than a minute.

  5. Side Buttons
    This machine comes with 10 buttons along the right hand side. Currently these do absolutely nothing. I think that what I need to install is apanel, as of yet I haven't tried.