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

From ThinkWiki
Jump to: navigation, search
(Power Management)
(Power Management)
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 nvram module doesn't get loaded by default. Hence you have to add it into the boot process yourself. In {{path|/etc/sysconfig/kernel}} adjust the following line:
 +
MODULES_LOADED_ON_BOOT="nvram"
  
 
==Power Management==
 
==Power Management==
{{NOTE|The following text is preliminary. In fact I thought it would work like this, but experienced kind of random malfunctioning of ibm_acpi or tpb (keys not triggered). I'm in the process of recompiling the SUSE kernel with the according functionality compiled directly into the kernel and hope that this may solve things.}}
 
 
 
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 powersaved for power management. powersaved attaches himself 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 PM functionalities 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 comes with a modified 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 to work reliably. Hence the conclusion was to try and built a vanilla kernel.
  
*It is important to load ibm_acpi after battery and ac and nvram after ibm_acpi. Also, doing this in <tt>ACPI_MODULES</tt> doesn't work for some reason. Hence, in {{path|/etc/sysconfig/kernel}} adjust the following lines:
+
While doing so, kernel 2.6.14 was used and the ACPI option modules were built into the kernel.
  MODULES_LOADED_ON_BOOT="battery ac button ibm_acpi nvram"
+
Unpack the kernel source into {{path|/usr/src/}}, relink {{path|/usr/src/linux}} to point to {{paht|/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:
 +
  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.}}
  
*Also make sure that ibm_acpi is never unloaded, since it would cause trouble. In {{path|/etc/sysconfig/powersave/common}} adjust the following lines:
+
*Also make sure that ibm_acpi is never unloaded, since it would cause trouble. In {{path|/etc/sysconfig/powersave/common}} adjust the following line:
  ACPI_MODULES_NOT_TO_UNLOAD="ibm_acpi ac battery button fan processor thermal"
+
  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 {{path|/etc/sysconfig/cpufreq}} adjust the following line:
 
*Powersaved complains about missing cpufreq support on boot. It might be good to switch to userspace frequency scaling. In {{path|/etc/sysconfig/cpufreq}} adjust the following line:
 
  CPUFREQ_CONTROL="userspace"
 
  CPUFREQ_CONTROL="userspace"

Revision as of 00:35, 2 November 2005

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. Hence you have to add it into the boot process yourself. In /etc/sysconfig/kernel adjust the following line:
MODULES_LOADED_ON_BOOT="nvram"

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.

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

SUSE comes with a modified 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 to work reliably. Hence the conclusion was to try and built a vanilla kernel.

While doing so, 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 Template:Paht. 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/cpufreq adjust the following line:
CPUFREQ_CONTROL="userspace"