Debian/GNU Linux on a Sony Vaio TR2/B.

I did it - I made the switch from Windows XP back to Linux on this machine fulltime. The gory details follow. The whole “Why” of the switch will come later.

Distribution

For the distribution I chose, once again, Debian. Get any installer CD image that’s based on the 2.6 kernel (such as the new beta installers). You can also use something like Knoppix to bootstrap the system if you like.

Installation

The installation of the Debian base system should be easy. Just follow the standard instructions, partition your drive and let it copy the files. When it gets to the part about selecting packages, skip it. Instead, don’t install any packages. Once you reboot and get back to a shell, change your /etc/apt/sources.list file to point to the Debian Unstable distribution and then do an apt-get dist-upgrade. Now use dselect to get you enough to build a kernel (namely gcc, ncurses, ncurses-dev and module-init-tools).

The Kernel

You’ll probably want to roll your own kernel for best results with this machine. I’m running 2.6.12.5 and I’ve had no problems. The relevant options in the kernel configuration are:

  • Processor Type: Pentium M.
  • Preemptible Kernel: Your choice; I say go for it, it should give you a nice performance boost.
  • Local APIC Support: No.
  • MTRR: Yes.
  • APM: No.
  • ACPI: Yes, totally. The TR2 has only an ACPI BIOS, so you need this. OK, not need, but if you want to check the temp, suspend or anything you’ll need it. Enable all the sub-components too, and build this section into the kernel as opposed to modules.
  • CPU Frequency Scaling: Your call. The chip supports it, but I haven’t used this yet since I have the CPU set to run at maximum performance in the BIOS.
  • PCMCIA: Yes, along with the Yenta support.
  • Intel(R) PRO/100+ support: Yes. This is the network card, build is as either a module or preloaded.
  • Bluetooth: I haven’t explored this yet, since I have no bluetooth devices.
  • IEEE 1394: Build them as modules. The onboard firewire host seems to work well.
  • USB host: EHCI host controller. According to the Kernel documentation, EHCI hosts are supposed to be complemented by either OCHI or UHCI controllers. In my tests with many different USB devices, the only thing that mattered was the EHCI - in fact, some things don’t work when using the other host modules. So use EHCI - your memory stick reader will show up then as a USB mass storage device. Speaking of which….
  • USB modules: Build as many as you want, build them all if you want to be able to plug in just about anything. The USB mass storage support is usually pretty essential.
  • SCSI: Build in SCSI generic support, and the IDE-SCSI layer for CD recording to work.
  • AGP/DRM: Don’t build them; we’ll get to that later.
  • Sound: Use the ALSA system with the Intel i8×0 driver.

That should be it for the kernel. Install it along with the modules, reboot.

System Configuration

Now assuming everything worked and you have an Internet connection, use dselect to start installing your system. Go for the meta-packages x-windows, kde, and so on, grabbing whatever you like. Some of the things you’ll probably want:

  • usbmgr for managing USB devices.
  • alsa-base and alsamixer are used for the sound system.
  • acpid is an ACPI daemon that allows you to add hooks for certain events, like the power button being pushed or the lid being closed.
  • cpufreqd for CPU throttling.
  • cardmgr for PCMCIA devices.
  • k3b is highly recommended for recording CDs.
  • mplayer for your movies. This is one of the few you should grab as source, since the codecs and what not will probably never make it into the official Debian distribution.

X-Windows

The stock Debian X.Org system includes drivers that support 2D and 3D acceleration for the Intel 855GM chipset. The kicker is the resolution - this laptop monitor has a native display resolution of 1280×768 and unfortunately does not list that as a valid setting in the video BIOS. To get around that, you have to use a free utility named 855resolution. Basically create an init script to run this program. It’ll then initialize the video BIOS with the correct information for the screen and you should have a working X.Org installation.

802.11 Network Interface

The Japanese TR/2 is nice enough to come with an onboard Atheros-based 802.11a/b/g integrated card with a hardware radio switch. I’ve got the card working successfully using the MadWifi package. You’ll have to compile the drivers for your kernel separately, but the Wiki documentation is quite good.

Done

It’s not that bad, probably easier than it looks. Once I was done (and it didn’t take more than a few hours) I had/have a perfectly working Linux system.

Links

  • Sony TR World - an awesome forum for owners of this series of laptops.
  • linux on Vaio TR2 is a guide close to this one from a Japanese person who went through the same process using Fedora.

9 Comments »

  1. Dave said,

    May 9, 2004 @ 2:40 pm

    I thought I had read somewhere that the Accelerated-X, from Xig didn’t work with 2.6..

  2. Luke said,

    May 9, 2004 @ 7:32 pm

    Nope, Accelerated-X works quite well with 2.6.

  3. Damia Soler said,

    August 19, 2004 @ 7:26 am

    Now working with Xfree too…. http://kurumi.sakura.ne.jp/~chimari/TR2/index-e.html

  4. Luke said,

    October 3, 2004 @ 4:01 am

    I’ve never managed to get the XFree/XOrg resolution hacks to work on mine. No worries though, since the Xig server is quite a fine product.

  5. dave said,

    January 27, 2005 @ 6:53 pm

    i cant get the xig xserver to work in any distro except slackware and redhat-based distros. i really want to use ubuntu though, and i tried using alien to convert and install the packages. still didnt work. anyony else have a problem with using it on a debian distro?

  6. Luke said,

    February 28, 2005 @ 11:55 am

    Dave, I’ve used XiG on both Debian and Gentoo successfully. Just remove the /usr/X11R6/bin/X binary and link it to Xaccel, and make sure the xsvc kernel module compiles cleanly and is loaded before starting XiG.

  7. Luke said,

    February 28, 2005 @ 11:55 am

    Dave, I’ve used XiG on both Debian and Gentoo successfully. Just remove the /usr/X11R6/bin/X binary and link it to Xaccel, and make sure the xsvc kernel module compiles cleanly and is loaded before starting XiG.

  8. Bernhard Kaindl said,

    March 10, 2005 @ 2:46 pm

    Hi,
    have you got suspend-to-RAM (ACPI state S3) working?

    I’ve got it working on a Laptop with an ATI GPU now.

    In this Notebook, I got also standby(S1) and hibernate
    (S3, suspend-to-disk) working in the same configuration.

    But standby does not save power since nothing is powered
    off but just every device which supports some “sleep” mode
    is sent to sleep and told to awake afterwards, so it’s not
    intented to really cut off power from the GPU or so.

    That seems to be the differance of S3, at least on this
    notebook the HW state of the GPU is gone, and at least here
    the GPU has to be reinitialized by a power-on-self-test thru
    the bios, this works nicely and very quickly here.

    I use Kernel 2.6.11 on this notebook with the kernel option

    acpi_sleep=s3_bios

    That tells the Linux ACPI code to ask the Video BIOS of the
    card to do a POST (Power On Self Test) which makes the GPU
    come to life again when an S3 resume is done and the rest
    is then done by the X Server.

    The POST of the Video BIOS is the same routine which the system
    BIOS calls when the notebook is turned on to get the display
    initialized. For example this turns on the backlight of the
    LCD panel of the notebook.

    Now I’m looking for a light notebook which can do suspend-to-RAM
    too and I guess you might like that feature too and have such
    notebook, maybe we can help each other :)

    I also got standby (S1) working on another Notebook with Nvidia GPU
    with the Nvidia driver and I’ve read that the ATI binary-only-drivers
    should support that too, if you use them, but I used the Opensoure
    radeon driver which comes with XFree86, but I had to turn-off the
    HW 3D support in the configuration where S1 and S3 also work.

    Nonetheless I can have HW 3D support if I start a second X-Server
    for the Games and close it again before I send the notebook to
    an S1 or S3 sleep.

    If you are interested, there is now also an experimental Open Source
    3D-capable driver for R300-based GPUs like the one of the ATI 9700
    series.

    If you can install a new kernel (at least 2.6.9, better 2.6.11 or
    newer) and can try it, please tell me and I could give some tips:

    bkaindl (att) ffii.org

    I would be very interested to know it this can be gotten to work,
    (and help you in that matter) thanks!

    Bernhard
    ~
    ~

  9. Fabio Parri said,

    March 14, 2005 @ 4:16 am

    I have problems configuring audio on this pc. I’m using Suse 9.2. Sound card gets revognized and alsa drivers loaded but when I play something I don’t hear anything. Any info what could be the problem?

RSS feed for comments on this post

Leave a Comment