Gentoo on the Lenovo Thinkpad Edge 13″ Intel

I needed to buy a laptop for the moment.
Simple requirements..
1) Cheep
2) Supported by Linux
3) Lightish

The Thinkpad Edge 13″ meets all the requirements. Theres a few thins I had to do make everything work.

1)
make.conf flags. I’ve kept it simple. CFLAGS=”-O2 -pipe -march=native”
The version of GCC I am using supports all of the i3’s  quirks and features. You can check to see if  “native” will support your cpu by using the following two commands:-
# cc -march=native -E -v – </dev/null 2>&1 | grep cc1
# echo | gcc -dM -E – -march=native

2)
Internal Sound card
to get jack sence and for it to disable the internal mic and speaker when the jack was used, edit the following file:-
/etc/modprobe.d/alsa.conf

At the end of the file add the following :-
options snd-hda-intel model=”olpc-xo-1_5″ enable_msi=1

By using alsa-info we can find out we have a conexant pebble audio chip. Conexant CX20582 (Pebble)
From that we can check out:-
/usr/src/linux/sound/pci/hda/patch_conexant.c
To see all the possible modes for the 5066 chip, there is a few but the one that worked for me was “olpc-xo-1_5”
In addition to make jacksense work we can look at :-
# modinfo snd_hda_intel
This will tell us we can use msi=1 to enable the jack sense message bus.

3)
Much to my annoyance the USB chipset on this machine is the Intel 3400 series that have a bug related to there rate liming hub.
What this means is that for me my Edirol UA-25ex can not work in full duplex mode with USB2…..
You also must have the following two options on in your kernel:-
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y

This will help with some of the nastiness of the usb chipset.
I still needed to turn off “Advance” mode and swap to 41000khz. Annoying but its much better then nothing.. thanks Intel…

4)
Intel video card. This one is pretty easy, once you understand how KMS is different.
Ensure your kernel has NO other VGA/VESA drivers apart from the below:-
CONFIG_DRM=y
CONFIG_AGP=y
CONFIG_AGP_INTEL=y
CONFIG_DRM_I915=y
CONFIG_DRM_I915_KMS=y

With the above settings on boot your console will switch to native resolution. Ensure Xorg is using the “xf86-video-intel” driver and your done. No need for any addition tools, userspace mods or kernel boot options!

The card reader,wifi and ethernet work fine. I am unable to test the eSATA, HDMI and vga port.

Advertisements

2 Responses to “Gentoo on the Lenovo Thinkpad Edge 13″ Intel”

  1. Hello

    I am about to play with Gentoo on the same laptop.. good to hear network stuff is fully supported. Did you do x86 or amd64? Mind to share your complete make.conf?

    Best.

    • Sorry for the late reply!
      x86_64(amd64)

      cat /etc/make.conf
      # These settings were set by the catalyst build script that automatically
      # built this stage.
      # Please consult /usr/share/portage/config/make.conf.example for a more
      # detailed example.
      CFLAGS="-O2 -pipe -march=native"
      CXXFLAGS="${CFLAGS}"
      # WARNING: Changing your CHOST is not something that should be done lightly.
      # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
      CHOST="x86_64-pc-linux-gnu"
      # These are the USE flags that were used in addition to what is provided by the
      # profile used for building.

      FEATURES="parallel-fetch"

      MAKEOPTS="-j5"

      GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo"
      SYNC="rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo-portage"

      USE="tordns raw icu nsplugin pmu sensord gstreamer cdda policykit device-mapper consolekit acpi evdev extensions dbus udev cvs git mercurial subversion ssse3 jack cddb sqlite java threads static-libs mmx sse sse2 v4l2 v4l -kde -gnome -dso -hal"
      source /var/lib/layman/make.conf

      INGUAS="en en_HK"
      VIDEO_CARDS="intel"
      INPUT_DEVICES="evdev synaptics"
      ALSA_CARDS="hda-intel"

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: