<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Adamf663</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Adamf663"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Adamf663"/>
	<updated>2026-04-30T12:11:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_on_a_ThinkPad_X31&amp;diff=49548</id>
		<title>Installing Ubuntu on a ThinkPad X31</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_on_a_ThinkPad_X31&amp;diff=49548"/>
		<updated>2010-09-06T21:17:51Z</updated>

		<summary type="html">&lt;p&gt;Adamf663: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Preface==&lt;br /&gt;
The content of this page was originally geared toward Hoary ({{Ubuntu 5.04}}),&lt;br /&gt;
but nearly everything here applies just as well to the Warty (4.10) and Breezy (5.10) releases.&lt;br /&gt;
&lt;br /&gt;
See [http://www.brixandersen.dk/papers/X31/X31.html Henrik Brix Andersens] page for a lot of useful background information.&lt;br /&gt;
&lt;br /&gt;
==Installing without cdrom or floppy==&lt;br /&gt;
Look [[Installation on ThinkPads without CD-ROM drive|here]] or follow the [http://help.ubuntu.com/community/Installation/Netboot Netboot remarks] instructions at [http://wiki.ubuntu.com Ubuntu Wiki].&lt;br /&gt;
&lt;br /&gt;
==Enabling the Access IBM Button and on-screen display for volume buttons==&lt;br /&gt;
Install the tpb package (use Synaptic or ''$sudo apt-get install tpb''), then use the Users and Groups Administration tool to add your user account to the 'nvram' group. Now see [[ThinkPad Button|Access IBM Button]] for configuration details.&lt;br /&gt;
&lt;br /&gt;
==Choosing between APM and ACPI for power management==&lt;br /&gt;
I tested both, APM and ACPI but settled with ACPI which now works like a charm.&lt;br /&gt;
&lt;br /&gt;
Since Ubuntu Dapper (6.06LTS) ACPI works out of the box, either in Standby Mode or Suspend to Disk Mode. &lt;br /&gt;
ACPI will make your system use about 10% less power than with apm, which reduces my battery runtime from ~4:00h to 3:40h.&lt;br /&gt;
&lt;br /&gt;
Please read &amp;quot;[[How to make use of Power Management features]]&amp;quot; for more in depth information.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, if ACPI is used, hibernate and standby modes might not work with a CompactFlash card inserted. Read the [[Category_talk:X31|X31 Talk Page]] for further info. &lt;br /&gt;
&lt;br /&gt;
===Disabling ACPI and using APM===&lt;br /&gt;
Simply disabling ACPI at boottime activates APM which works fine with suspend to ram and suspend to disk.&lt;br /&gt;
&lt;br /&gt;
To disable ACPI boot your kernel with acpi=off&lt;br /&gt;
&lt;br /&gt;
''...describe how to edit /boot/grub/menu.lst...''&lt;br /&gt;
&lt;br /&gt;
APM based suspend to disk needs a save2disk.img hibernation file on FAT16. Use the [[tphdisk]] utility to create this file.&lt;br /&gt;
&lt;br /&gt;
Use {{key|Fn}}{{Key|F4}} to suspend-to-ram and {{key|Fn}}{{key|F12}} to suspend-to-disk.&lt;br /&gt;
&lt;br /&gt;
===Using ACPI===&lt;br /&gt;
Get ubuntulinux, radeontool and this script (which goes in /etc/acpi), nothing more!&lt;br /&gt;
{{NOTE|This procedure is not necessary with the Breezy Badger release, which already knows how to blank the radeon video. Just be sure you have the radeontool package installed.}}&lt;br /&gt;
&lt;br /&gt;
{{cmduser|cat lid.sh}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
. /usr/share/acpi-support/power-funcs&lt;br /&gt;
&lt;br /&gt;
getXuser;&lt;br /&gt;
&lt;br /&gt;
grep -q closed /proc/acpi/button/lid/*/state&lt;br /&gt;
if [ $? = 0 ]&lt;br /&gt;
then&lt;br /&gt;
        . /usr/share/acpi-support/screenblank&lt;br /&gt;
        echo `fgconsole` &amp;gt; $LIDSTATE&lt;br /&gt;
        chvt 12&lt;br /&gt;
&lt;br /&gt;
        # Unmount any NFS or SMB filesystems:&lt;br /&gt;
        echo &amp;quot;unmounting NFS and SMB filesystems&amp;quot;&lt;br /&gt;
        umount -a -r -t nfs,smbfs&lt;br /&gt;
&lt;br /&gt;
        # remove modules&lt;br /&gt;
        echo &amp;quot;remove modules&amp;quot;&lt;br /&gt;
        #rmmod ipw2100    ## WLAN&lt;br /&gt;
        rmmod ehci-hcd   ## USB module&lt;br /&gt;
        rmmod uhci-hcd   ##  -||-&lt;br /&gt;
&lt;br /&gt;
        # update the disk super block&lt;br /&gt;
        echo &amp;quot;sync&amp;quot;&lt;br /&gt;
        sync&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        # wait a second&lt;br /&gt;
        sleep 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        # turn the LCD off&lt;br /&gt;
        echo &amp;quot;backlight off&amp;quot;&lt;br /&gt;
        radeontool light off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        # suspend to ram&lt;br /&gt;
        echo &amp;quot;suspend to ram&amp;quot;&lt;br /&gt;
        echo -n mem &amp;gt; /sys/power/state&lt;br /&gt;
&lt;br /&gt;
        # load modules&lt;br /&gt;
        modprobe ehci-hcd&lt;br /&gt;
        modprobe uhci-hcd&lt;br /&gt;
&lt;br /&gt;
        # turn the LCD on&lt;br /&gt;
        echo &amp;quot;turn the LCD on&amp;quot;&lt;br /&gt;
        radeontool light on&lt;br /&gt;
&lt;br /&gt;
        # go back to VT7 (X)&lt;br /&gt;
        echo &amp;quot;back to VT7&amp;quot;&lt;br /&gt;
        chvt 7&lt;br /&gt;
&lt;br /&gt;
else&lt;br /&gt;
        grep -q off-line /proc/acpi/ac_adapter/*/state&lt;br /&gt;
        #if [ $? = 1 ]&lt;br /&gt;
        #then&lt;br /&gt;
                #su - $user -c &amp;quot;xscreensaver-command -unthrottle&amp;quot;&lt;br /&gt;
        #fi&lt;br /&gt;
        chvt `cat $LIDSTATE`&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Installing Ubuntu 10.04 on a Thinkpad X31=&lt;br /&gt;
Ubuntu 10.04 out of the box has suspend/hibernate/resume failures and hard lockups.  Fortunately, they can all be solved.&lt;br /&gt;
For the suspend/hibernate problems, modify /etc/default/grub, add 'nomodeset' to GRUB_CMDLINE_LINUX_DEFAULT.&lt;br /&gt;
For networking problems with atheros, download a snapshot from wireless.kernel.org/download/compat-wireless-2.6, build and install it.&lt;br /&gt;
For the problem with hard lockups, follow the steps on the ubuntu site for building a custom kernel.  Set processor type to 'PENTIUM-M' and disable SMP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=External Sources=&lt;br /&gt;
*This guide is listed at the [http://tuxmobil.org/ibm.html TuxMobil Linux laptop and notebook installation survey (IBM/Lenovo)].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:X31]]&lt;/div&gt;</summary>
		<author><name>Adamf663</name></author>
		
	</entry>
</feed>