[ltp] Fedora Core 2 on ThinkPad G40 (2388-5BU)

Robert Liesenfeld linux-thinkpad@linux-thinkpad.org
Sun, 15 Aug 2004 15:04:35 -0700


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all-

I've finally gotten everything working on my G40 and I thought I'd share
my experiences in case anyone else has this same thinkpad.

I'm using Fedora Core 2 with a hand-compiled 2.6.7 kernel - the only
reason I compiled it by hand was to include the software suspend
patches.  However since I now have ACPI suspend working properly, swsusp
is now a nice 'hibernate' option.

ACPI Suspend:
First, make sure your kernel includes a fairly recent (newer than say,
six months ago) version of the ACPI code (any recent 2.6 kernel will
work).  You need to change your bootloader configuration to append the
option "acpi_sleep=s3_bios" to your kernel command line; this allows
ACPI to make calls into the video bios (to set the video mode) while
it's in the S3 suspend state.

Next, make sure you have acpid installed.  rpm -qa | grep acpid will
tell you.
Set up acpi to "do the right thing" when you close the lid; put the
following into /etc/acpi/events/button.conf:
- --CUT HERE--
event=button/lid
action=/usr/local/sbin/power.sh "%e"
- --CUT HERE--

Then, into /usr/local/sbin/power.sh:
- --CUT HERE--
rmmod uhci_hcd
rmmod ehci_hcd
echo "mem" > /sys/power/state
modprobe ehci_hcd
modprobe uhci_hcd
- --CUT HERE--

You absolutely /must/ remove the USB modules before attempting to
suspend.  ACPI doesn't play well with USB.  Once you come back up, the
script re-inserts them.  Note that if you're using something like an
external USB hard drive, you will probably want to modify the script to
make sure it's unmounted before removing the usb modules.

As far as the rest of the equipment in this laptop goes, the ethernet
and wireless "just worked" with FC2; as did the sound. X works fine with
the x.org rpms that come with FC2, and both the x.org i810 driver and
intel's binary one work great.  I haven't noticed any speed difference
between the two.

- -Rob Liesenfeld
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBH93z0sGJdkEnY5MRAkuoAKCnD48+tdwdeh52L6FQZjq8zndKWQCePAqL
TEqDNlCeB+IBlFQWxYUX4vA=
=+f7H
-----END PGP SIGNATURE-----