Difference between revisions of "Installing Gentoo on a ThinkPad 770E"

From ThinkWiki
Jump to: navigation, search
(Power management)
(Sound support)
Line 30: Line 30:
 
I tried using those parameters on a 770E and I get a "no such device" error when modprobe'ing. If anyone finds the right parameters for Alsa, please insert it here.
 
I tried using those parameters on a 770E and I get a "no such device" error when modprobe'ing. If anyone finds the right parameters for Alsa, please insert it here.
  
 +
 +
----
 +
 +
2005-07-11
 +
 +
I found out, that most problems occure while playing around with the cs4232 drivers. The Chipset ist the cs4237B, which is supported by the ALSA snd-cs4236 driver. This is how it works:
 +
 +
  1. Build a Kernel using soundcore support only! NO additional drivers! (If you have such a kernel, proceed to 3.
 +
  2. install kernel and boot it
 +
  3. be sure to have USE="alsa oss" in your /etc/make.conf
 +
  4. add "ALSA_CARDS="cs4236" to your /etc/make.conf
 +
  5. emerge alsa-driver alsa-oss alsa-utils
 +
  6. run "alsaconf" and let it probe everything!
 +
  7. if your /etc/modules.d/alsa has the following lines:
 +
    (...)
 +
    alias sound-services-0-12 snd-pcm-oss
 +
    options snd device_mode=0666
 +
    alias snd-card-0 snd-cs4236
 +
    alias sound-slot-0 snd-cs4236
 +
    options snd-cs4236 port=0x530 cport=0x538 isapnp=0 dma1=1 dma2=5 irq=5
 +
    (...)
 +
    everything is cool. You can use "rc-update add alsasound boot" to enable sound during booting, and it should work.
  
 
See also [http://dag.wieers.com/howto/thinkpad/770/ DAG: Linux on 770]
 
See also [http://dag.wieers.com/howto/thinkpad/770/ DAG: Linux on 770]

Revision as of 10:13, 11 July 2005

Installing Gentoo Linux on a Thinkpad 770E

This is the gentoo installation guide for the linux Thinkpad 770E. This is not meant to replace the gentoo handbook, but rather, as a guide to help fine tune certain options. Please refer to the gentoo handbook, gentoo docs/wiki and the gentoo forums for more help.

Partitioning

Until linux supports ibm thinkpad controls like ps2.exe, it is recommended you keep a small bootable partition (10-100MB for a DOS partition). You will need this if you want to change or find out irq, mem address, and dma settings.

Kernel configuration

For PCMCIA support you have to load the yenta_socket module and change the configuration file /etc/conf.d/pcmcia (replace PCIC=i82365 with PCIC=yenta_socket).

For Frame Buffers support, do NOT load any frame buffer drivers besides vesafb. Do NOT even load vesafb-tng. Even though the video card is a trident card, the tridentfb does not work. It will produce a flickery screen. All you want to do is compile vesafb into your kernel or as a module, then add vga=791 to your boot line. Do not even bother with video=mtrr or any other options. VGA=791 is all you need for 1024x768 frame buffers support.

Sound support

FIX

I have since been able to get sound working on my 770E, but I had to use the OSS drivers. The procedure I used was to boot into a windows partition and use IBM's ps2.exe utility to determine irq, port, and dma information. After I got this information, I had to reinitialize the hardware from the BIOS before the sound would work in linux. (Hold F1 while booting to get to the BIOS menu) After the reinitialization, I modprobed:

modprobe cs4232 io=0x530 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=9

I believe these are the factory default settings. Please insert your settings from the ps2.exe reading. If modprobe completed with no errors, try playing a sound and it should work.



All 770's should get sound using the ALSA snd_cs4232 module, although they have a cs4610 chip. Similar to Problem with broken sound on ThinkPad 600. Try

modprobe snd-cs4232 port=0x530 cport=0x538 fm_port=0x388 irq=5 dma1=1 dma2=0

I tried using those parameters on a 770E and I get a "no such device" error when modprobe'ing. If anyone finds the right parameters for Alsa, please insert it here.



2005-07-11

I found out, that most problems occure while playing around with the cs4232 drivers. The Chipset ist the cs4237B, which is supported by the ALSA snd-cs4236 driver. This is how it works:

 1. Build a Kernel using soundcore support only! NO additional drivers! (If you have such a kernel, proceed to 3.
 2. install kernel and boot it
 3. be sure to have USE="alsa oss" in your /etc/make.conf
 4. add "ALSA_CARDS="cs4236" to your /etc/make.conf
 5. emerge alsa-driver alsa-oss alsa-utils
 6. run "alsaconf" and let it probe everything!
 7. if your /etc/modules.d/alsa has the following lines:
   (...)
   alias sound-services-0-12 snd-pcm-oss
   options snd device_mode=0666
   alias snd-card-0 snd-cs4236
   alias sound-slot-0 snd-cs4236
   options snd-cs4236 port=0x530 cport=0x538 isapnp=0 dma1=1 dma2=5 irq=5
   (...)
    everything is cool. You can use "rc-update add alsasound boot" to enable sound during booting, and it should work.

See also DAG: Linux on 770

Power management

You had BETTER install acpi first thing. From my tests, the fans in the 770E will NOT turn on by itself, even if it reaches 90 degrees celsius. I believe the 770E's cooling system is completely software controlled through acpi. To turn on the fan(s), modprobe acpi, and type:

echo 0 > /proc/acpi/fan/FN00/state

I don't actually know how many fans are in there, but I know that when I did not turn on the fans manually, acpi -V showed readings as hot as 93 degrees Celsius when compiling and CPU intensive operations. I ended up writing a cron script to run every minute and check if the temperature is over a certain point. I do not know what's a safe temperature, so I set it low at 45 degrees celsius.

X11 configuration

Follow the Gentoo Xorg howto. It should work from there.