Difference between revisions of "Installing SUSE 10 on a ThinkPad TransNote"

From ThinkWiki
Jump to: navigation, search
(Power Management)
(added references section and link to TuxMobil)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
This page tells about installation of {{SUSE}} on a ThinkPad {{TransNote}}.
 
This page tells about installation of {{SUSE}} on a ThinkPad {{TransNote}}.
 
{{Todo|Introduction, general installation notes}}
 
{{Todo|Introduction, general installation notes}}
 +
 +
==TPB==
 +
The <tt>nvram</tt> module doesn't get loaded by default. To make the <tt>nvram</tt> module load at boot time, edit the {{path|/etc/sysconfig/kernel}} file to contain this line:
 +
MODULES_LOADED_ON_BOOT="nvram"
  
 
==Power Management==
 
==Power Management==
SUSE 10, like any other SUSE version, uses powersaved for power management. powersaved attaches himself to acpid via a file socket, acpid is only running to forward all events to powersaved.
+
SUSE 10, like any other SUSE version, uses the <tt>powersaved</tt> daemon for power management.<!-- powersaved attaches itself to [[acpid]] via a file socket, [[acpid]] is only running to forward all events to powersaved. -->
  
While the basic PM functionalities work out of the box, it gets a bit tricky when you want to enable [[ibm_acpi]] and [[tpb]]. Yes, tpb - the strange thing is that if something goes wrong with the ibm_acpi support, tpb will stop working.
+
While the basic power management capabilities work out of the box, it gets a bit tricky when you want to enable [[ibm-acpi]] and [[tpb]].
  
Since SUSE has the individual ACPI support options compiled as modules, it is important that these modules get loaded in the right order. To assure that, you will need to do the following changes to some files in {{path|/etc/sysconfig}}. You can either manually edit the files or use the YAST2 interface to set the variables.
+
SUSE 10 comes with a modified Linux kernel 2.6.13, and has the individual ACPI support options compiled as modules. Trying different modules loading orders or including part of the modules into the kernel, didn't help making ibm-acpi work reliably. Hence the conclusion was to try and built a vanilla kernel.
  
*in {{path|/etc/sysconfig/powersave/common}} adjust the following lines:
+
While doing so, Linux kernel 2.6.14 was used and the ACPI option modules were built into the kernel.
ACPI_MODULES="battery ac button ibm_acpi nvram"
+
Unpack the kernel source into {{path|/usr/src/}}, relink {{path|/usr/src/linux}} to point to {{path|/usr/src/linux-2.6.14}}. Copy the {{path|.config}} file from the old kernels source dir. Change into the new kernels source dir and configure the kernel to include processor, ac, battery, fan, thermal and button support rather than having it compiled as modules. Compile the kernel and copy the appropriate kernel image to the {{path|/boot}} directory. You need to copy {{path|System.map}} as well. Then edit {{path|/etc/sysconfig/kernel}} and adjust the line:
:It is important to load ibm_acpi after battery and ac and nvram after ibm_acpi. That's why we place it here and not in {{path|/etc/sysconfig/kernel}}.
+
INITRD_MODULES="piix reiserfs"
 +
After that, recreate the initrd using <tt>mkinitrd</tt>.
 +
There is no need to update your menu.lst file, since the symlinks get adjusted by <tt>mkinitrd</tt>.
 +
{{Todo|This info needs to be more detailed.}}
  
ACPI_MODULES_NOT_TO_UNLOAD="ibm_acpi ac battery button fan processor thermal"
+
*Also make sure that ibm_acpi is never unloaded, since it would cause trouble. In {{path|/etc/sysconfig/powersave/common}} adjust the following line:
:Make sure that ibm_acpi is never unloaded, since it would cause trouble.
+
ACPI_MODULES_NOT_TO_UNLOAD="ibm_acpi"
  
powersaved complains about missing cpufreq support on boot. It might be good to switch to userspace frequency scaling.
+
*Powersaved complains about missing cpufreq support on boot. It might be good to switch to userspace frequency scaling. In {{path|/etc/sysconfig/powersave/cpufreq}} adjust the following line:
*in {{path|/etc/sysconfig/cpufreq}} adjust the following line:
 
 
  CPUFREQ_CONTROL="userspace"
 
  CPUFREQ_CONTROL="userspace"
 +
 +
==References==
 +
* This guide is listed at the [http://tuxmobil.org/ibm.html TuxMobil Linux laptop and notebook installation guides survey (IBM/Lenovo)].

Latest revision as of 10:19, 20 July 2007

This page tells about installation of SUSE on a ThinkPad TransNote.

TODO
Introduction, general installation notes

TPB

The nvram module doesn't get loaded by default. To make the nvram module load at boot time, edit the /etc/sysconfig/kernel file to contain this line:

MODULES_LOADED_ON_BOOT="nvram"

Power Management

SUSE 10, like any other SUSE version, uses the powersaved daemon for power management.

While the basic power management capabilities work out of the box, it gets a bit tricky when you want to enable ibm-acpi and tpb.

SUSE 10 comes with a modified Linux kernel 2.6.13, and has the individual ACPI support options compiled as modules. Trying different modules loading orders or including part of the modules into the kernel, didn't help making ibm-acpi work reliably. Hence the conclusion was to try and built a vanilla kernel.

While doing so, Linux kernel 2.6.14 was used and the ACPI option modules were built into the kernel. Unpack the kernel source into /usr/src/, relink /usr/src/linux to point to /usr/src/linux-2.6.14. Copy the .config file from the old kernels source dir. Change into the new kernels source dir and configure the kernel to include processor, ac, battery, fan, thermal and button support rather than having it compiled as modules. Compile the kernel and copy the appropriate kernel image to the /boot directory. You need to copy System.map as well. Then edit /etc/sysconfig/kernel and adjust the line:

INITRD_MODULES="piix reiserfs"

After that, recreate the initrd using mkinitrd. There is no need to update your menu.lst file, since the symlinks get adjusted by mkinitrd.

TODO
This info needs to be more detailed.
  • Also make sure that ibm_acpi is never unloaded, since it would cause trouble. In /etc/sysconfig/powersave/common adjust the following line:
ACPI_MODULES_NOT_TO_UNLOAD="ibm_acpi"
  • Powersaved complains about missing cpufreq support on boot. It might be good to switch to userspace frequency scaling. In /etc/sysconfig/powersave/cpufreq adjust the following line:
CPUFREQ_CONTROL="userspace"

References