Difference between revisions of "Installing Ubuntu 6.06 Flight 6 on a ThinkPad X60s"

From ThinkWiki
Jump to: navigation, search
Line 25: Line 25:
 
== Installing Ubuntu 6.06 Flight 6 ==
 
== Installing Ubuntu 6.06 Flight 6 ==
  
IBM Rescue and Recovery disks (seven CDs) can be created using preinstalled Windows: All programs > ThinkVantage > Create Recovery Media. However, as long as recovery partition (called ''predesktop'' in BIOS) is left intact, system '''can be restored to factory default without having recovery CDs'''.
+
IBM Rescue and Recovery disks (seven CDs) can be created using preinstalled Windows: All programs→ThinkVantage→Create Recovery Media. However, as long as recovery partition (called ''predesktop'' in BIOS) is left intact, system '''can be restored to factory default without having recovery CDs'''.
  
 
Ubuntu Flight 6 installer boots normally using external (USB) IBM DVD-ROM/CD-RW. SATA disk is recognised, Xorg 7.0, gdm and Gnome start normally. Xorg is configured with i810. DRI works (glxinfo|grep rendering). Networking works, eth0 uses e1000. ALSA sound worked after original installation, but at some point it stopped working as Dapper instantly had numerous updates, including kernel.  
 
Ubuntu Flight 6 installer boots normally using external (USB) IBM DVD-ROM/CD-RW. SATA disk is recognised, Xorg 7.0, gdm and Gnome start normally. Xorg is configured with i810. DRI works (glxinfo|grep rendering). Networking works, eth0 uses e1000. ALSA sound worked after original installation, but at some point it stopped working as Dapper instantly had numerous updates, including kernel.  
Line 32: Line 32:
  
 
=== SMP kernel ===
 
=== SMP kernel ===
Flight 6 installs -386 kernel without SMP support. {{cmdroot|apt-get install}} of -686-smp fixes that.  {{path|/proc/cpuinfo}} reports CPU0 and CPU1 present.
+
Flight 6 installs 2.6.15-*-386 kernel without SMP support. After installation of -686 kernel (which appears to be SMP) {{path|/proc/cpuinfo}} reports CPU0 and CPU1.
  
 
=== Wi-Fi ===
 
=== Wi-Fi ===
Line 38: Line 38:
  
 
=== CPU frequency scaling ===
 
=== CPU frequency scaling ===
After installation CPU0 switches between 1.5 GHz (full speed) and 1 GHz depending on load, but CPU1 stays at full speed. Flight 6 installs powernowd and uses userspace governor. Changing to ondemand governor ({{path|/sysfs/devices/cpu/cpu0,1/cpufreq/scaling_governor}}) and thus using kernel part for frequency scaling (modules speedstep_centrino and freq_table) fixes this. To keep the change between reboots install sysfsutils package and add the following lines to {{path|/etc/sysfs.conf}}:
+
After installation CPU0 switches between 1.5 GHz (full speed) and 1 GHz depending on load, but CPU1 stays at full speed. Flight 6 installs <code>powernowd</code> and uses <code>userspace</code> governor. Changing to <code>ondemand</code> governor ({{path|/sysfs/devices/cpu/cpu0,1/cpufreq/scaling_governor}}) and thus using kernel part for frequency scaling (modules <code>speedstep_centrino</code> and <code>freq_table</code>) fixes this. To keep the change between reboots, install <code>sysfsutils</code> package and add the following lines to {{path|/etc/sysfs.conf}}:
  
 
   devices/cpu/cpu0/cpufreq/scaling_governor=ondemand
 
   devices/cpu/cpu0/cpufreq/scaling_governor=ondemand
 
   devices/cpu/cpu1/cpufreq/scaling_governor=ondemand
 
   devices/cpu/cpu1/cpufreq/scaling_governor=ondemand
  
<tt>powernowd</tt> can then be disabled from auto-starting by <tt>rcconf</tt>. it can also be <tt>apt-get remove</tt>'d, but that also wants to remove <tt>ubuntu-desktop</tt> metapackage.  
+
<code>powernowd</code> can then be disabled from auto-starting by <code>rcconf</code>. It can also be <code>apt-get remove</code>'d, but that also wants to remove <code>ubuntu-desktop</code> metapackage.  
 +
 
 
=== High pitch noise while on battery ===
 
=== High pitch noise while on battery ===
X60s CPU produces the [[Problem_with_high_pitch_noises#Limit_ACPI_CPU_power_states|infamous high pitch noise]] when in lower-power ACPI states (a.k.a. C-states). To eliminate the noise max. state had to be limited to C2. In {{path|/etc/sysfs.conf}}:
+
X60s CPU produces the [[Problem_with_high_pitch_noises#Limit_ACPI_CPU_power_states|infamous high pitch noise]] when in lower-power ACPI states (a.k.a. C-states). To eliminate the noise maximum (i.e. lowest power) C-state had to be limited to C2. In {{path|/etc/sysfs.conf}}:
  
 
   module/processor/parameters/max_cstate=2
 
   module/processor/parameters/max_cstate=2

Revision as of 21:28, 20 April 2006

Installation of Ubuntu 6.06 Flight 6 on X60s (model 1705-24U)

Summary

What works out of the box

  • Network adapter (Intel PRO/1000)
  • Graphics adapter and accelerator (Intel GMA 950)
  • USB (boots from external USB CD-RW/DVD-ROM)
  • Firewire
  • Lid switch (LCD off when lid closed)
  • Volume control, keyboard light and screen brightness control
  • Hard disk laptop-mode (/proc/sys/vm/laptop-mode)
  • LCD brightness auto-adjusts depending on AC or battery operation
  • Fn buttons generate ACPI events (/var/log/acpid)

What needs to be fixed

  • Dual core processor
  • Wireless
  • Processor frequency scaling
  • Suspend to RAM
  • Suspend to disk
  • SD card reader
  • Sound

Installing Ubuntu 6.06 Flight 6

IBM Rescue and Recovery disks (seven CDs) can be created using preinstalled Windows: All programs→ThinkVantage→Create Recovery Media. However, as long as recovery partition (called predesktop in BIOS) is left intact, system can be restored to factory default without having recovery CDs.

Ubuntu Flight 6 installer boots normally using external (USB) IBM DVD-ROM/CD-RW. SATA disk is recognised, Xorg 7.0, gdm and Gnome start normally. Xorg is configured with i810. DRI works (glxinfo|grep rendering). Networking works, eth0 uses e1000. ALSA sound worked after original installation, but at some point it stopped working as Dapper instantly had numerous updates, including kernel.

Fixes after installation

SMP kernel

Flight 6 installs 2.6.15-*-386 kernel without SMP support. After installation of -686 kernel (which appears to be SMP) /proc/cpuinfo reports CPU0 and CPU1.

Wi-Fi

Intel 3945ABG wireless driver is available from http://ipw3945.sourceforge.net/. Wireless works after following QUICK INSTALL STEPS in provided INSTALL file. Automating driver loading works as described too, except that /etc/modprobe.d/ipw3945 has to be used instead of the proposed /etc/modules.d/ipw3945.

CPU frequency scaling

After installation CPU0 switches between 1.5 GHz (full speed) and 1 GHz depending on load, but CPU1 stays at full speed. Flight 6 installs powernowd and uses userspace governor. Changing to ondemand governor (/sysfs/devices/cpu/cpu0,1/cpufreq/scaling_governor) and thus using kernel part for frequency scaling (modules speedstep_centrino and freq_table) fixes this. To keep the change between reboots, install sysfsutils package and add the following lines to /etc/sysfs.conf:

  devices/cpu/cpu0/cpufreq/scaling_governor=ondemand
  devices/cpu/cpu1/cpufreq/scaling_governor=ondemand

powernowd can then be disabled from auto-starting by rcconf. It can also be apt-get remove'd, but that also wants to remove ubuntu-desktop metapackage.

High pitch noise while on battery

X60s CPU produces the infamous high pitch noise when in lower-power ACPI states (a.k.a. C-states). To eliminate the noise maximum (i.e. lowest power) C-state had to be limited to C2. In /etc/sysfs.conf:

  module/processor/parameters/max_cstate=2

Unsolved

  • Suspend to RAM (suspends, but crashes on resume)
  • Suspend to disk (suspends, but crashes on resume)
  • Sound
  • SD card reader (driver in Linux kernel >=2.6.17)

Not tested

  • PCMCIA slots
  • Embeded Security Subsystem (TCPA)
  • Active Protection System (HDAPS)
  • Modem