Lenovo Ideapad S10e

From Gentoo Linux Wiki

Jump to: navigation, search
Lenovo-ideapad-s10e.jpg

Contents

[edit] Hardware Status

Device Works? Note
Intel Atom N270 Yes
Intel 945GM/GMS Yes
Intel HDA ALC269 Yes alsa-driver-1.0.18a
Ethernet Broadcom NetLink BCM5906M Yes tg3
Wireless Broadcom BCM4310 Yes broadcom STA driver
Bluetooth BCM2046 Yes btusb
Lenovo EasyCamera Yes uvcvideo
Card Reader Yes hal

[edit] Hardware

Code: lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:27ac] (rev 03)
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:27ae] (rev 03)
00:02.1 Display controller [0380]: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a6] (rev 03)
00:1b.0 Audio device [0403]: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller [8086:27d8] (rev 02)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 [8086:27d0] (rev 02)
00:1c.1 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 [8086:27d2] (rev 02)
00:1c.2 PCI bridge [0604]: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 [8086:27d4] (rev 02)
00:1d.0 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 [8086:27c8] (rev 02)
00:1d.1 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 [8086:27c9] (rev 02)
00:1d.2 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 [8086:27ca] (rev 02)
00:1d.3 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 [8086:27cb] (rev 02)
00:1d.7 USB Controller [0c03]: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller [8086:27cc] (rev 02)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev e2)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge [8086:27b9] (rev 02)
00:1f.1 IDE interface [0101]: Intel Corporation 82801G (ICH7 Family) IDE Controller [8086:27df] (rev 02)
00:1f.2 IDE interface [0101]: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller [8086:27c4] (rev 02)
00:1f.3 SMBus [0c05]: Intel Corporation 82801G (ICH7 Family) SMBus Controller [8086:27da] (rev 02)
02:00.0 Ethernet controller [0200]: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express [14e4:1713] (rev 02)
05:00.0 Network controller [0280]: Broadcom Corporation BCM4310 USB Controller [14e4:4315] (rev 01)

For the wireless card, some models have

Code: lspci -nn
05:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01) [14e4:4315]
Code: lsusb
Bus 001 Device 003: ID 0bda:0158 Realtek Semiconductor Corp. Mass Stroage Device
Bus 001 Device 002: ID 5986:0241 Acer, Inc
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0a5c:2150 Broadcom Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

[edit] CPU

GCC< 4.3

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

GCC>=4.3 but GCC<4.5

CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=generic -fomit-frame-pointer -pipe"
CXXFLAGS="$CFLAGS"

GCC>=4.5

CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=atom -mtune=generic -fomit-frame-pointer -pipe"
CXXFLAGS="$CFLAGS"

For more info read Safe Cflags

[edit] Video

Kernel

Kernel >= 2.6.30 should be used for correct work of GEM and KMS.

Linux Kernel Configuration: Intel 945GM/GMS
Device Drivers --->
 Graphics support --->
  <*> /dev/agpgart (AGP support) --->
    <*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
  <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
    <*> Intel 830M, 845GM, 852GM, 855GM, 865G (i915 driver) --->
      (X) i915 driver
    [ ]     Enable modesetting on intel by default
  <*> Support for frame buffer devices --->
    [*] Enable firmware EDID
    [*] Enable Video Mode Handling Helpers
    [*] Enable Tile Blitting Support
    [ ] VESA VGA graphics support
    < > Intel LE80578 (Vermilion) support
    < > Intel 830M/845G/852GM/855GM/865G/915G/945G/945GM/965G/965GM support (EXPERIMENTAL)

To enable KMS add i915.modeset=1 to your grub.conf file:

 kernel /boot/<kernel> root=/dev/<sdX> i915.modeset=1

Packages

Packages version requirement for GEM.

>=sys-kernel/gentoo-sources-2.6.30
>=x11-base/xorg-server-1.6.0
>=media-libs/mesa-7.4
>=x11-driver/xf86-video-intel-2.7.0
>=sys-power/acpid-1.0.10
Note: When updating xorg-server from 2.5 version, don't forget to reinstall drivers.

Drivers list could be found by running:

equery l x11-drivers/

Xorg

Here is a sample of xorg.conf file.

File: /etc/X11/xorg.conf
Section "Files"
    FontPath    "/usr/share/fonts/misc/"
    FontPath    "/usr/share/fonts/TTF/"
    FontPath    "/usr/share/fonts/Type1/"
    FontPath    "/usr/share/fonts/100dpi/"
    FontPath    "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
    Load  "dbe"
    Load  "record"
    Load  "glx"
    Load  "dri"
    Load  "dri2"
    Load  "extmod"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "CMO"
        ModelName    "1002"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Intel 945GM"
        BusID       "PCI:0:2:0"
        Option     "AccelMethod" "UXA"
        Option     "DRI"   "true"    
        Option     "Tiling" "false"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
                SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes   "1024x576"
        EndSubSection
EndSection

Section "DRI"
        Mode 0666
EndSection

Section "Extensions"
        Option     "Composite"  "Enable"
        Option     "RENDER"     "Enable"
EndSection

Section "ServerFlags"
    Option      "AIGLX" "True" 
    Option      "AllowEmptyInput" "on"
    Option      "AutoAddDevices" "on"
    Option      "AutoEnableDevices" "on"
EndSection

Section "ServerLayout"
    Identifier  "Lenovo s10e"
    Screen 0    "Screen0" 0 0
EndSection
glxinfo | grep direct
direct rendering: Yes
glxinfo | grep GEM
OpenGL renderer string: Mesa DRI Intel(R) 945GME GEM 20090418 2009Q1 x86/MMX/SSE2

Tested

glxgears ~600-700fps
       
 sys-kernel/git-sources-2.6.31_rc3-r3
 x11-libs/libdrm-2.4.12
 media-libs/mesa-7.5-r1
 x11-base/xorg-server-1.6.2-r1         
 x11-driver/xf86-video-intel-2.7.1

[edit] Sound

Linux Kernel Configuration: Intel HDA ALC269
Device Drivers  --->
   Sound --->
   <*> Sound card support
   <*>   Advanced Linux Sound Architecture --->
   [*]     PCI devices --->
   <*>       Inetl HD Audio --->
   <*>         Build Realtek HD-audio codec support

[edit] Ethernet

Linux Kernel Configuration: Ethernet Broadcom NetLink BCM5906M
  Device Drivers --->
     [*] Network device support --->
     [*]   Ethernet (1000 Mbit) --->
     <*>     Broadcom Tigon3 support

[edit] Wireless

Kernel

Linux Kernel Configuration:
  Networking support --->
    Wireless --->
     <*> Common routines for IEEE802.11 drivers
     <*> Generic IEEE 802.11 Networking Stack (mac80211) 

Install driver

emerge -av net-wireless/broadcom-sta


Code: dmesg
wl: module license 'MIXED/Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
wl 0000:05:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
wl 0000:05:00.0: setting latency timer to 64
eth1 (wl): not using net_device_ops yet
eth1: Broadcom BCM4315 802.11 Wireless Controller 5.10.91.9

[edit] Bluetooth

Linux Kernel Configuration: Broadcom Bluetooth
  Networking support --->
     <*>   Bluetooth subsystem support --->
     <*>     L2CAP protocol support
     <*>     SCO links support
     <*>     RFCOMM protocol support
     [*]       RFCOMM tty support
     <*>     BNEP protocol support
     [*]       Multicast filter support
     [*]       Protocol filter support
     <*>     HIDP protocol support       
             Bluetooth device drivers --->
     <*>       HCI USB driver
Code: dmesg | grep BCM2046
usb 3-2: Product: BCM2046 Bluetooth Device

[edit] Camera

Linux Kernel Configuration: Lenovo EasyCamera
  Device Drivers --->
     Multimedia devices --->
     [*]   Video capture adapters --->
     [*]     V4L USB device --->
     <*>       USB Video Class (UVC)
     [*]         UVC input events device support
Code: dmesg | grep EasyCamera
uvcvideo: Found UVC 1.00 device Lenovo EasyCamera (5986:0241)

Test Camera

mplayer -tv driver=v4l2:device=/dev/video0 tv://

Capture Video and Audio

mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:alsa \ -ovc lavc -oac mp3lame -o capture.avi
Note: Need mplayer build with v4l2 useflag

[edit] Card Reader

Card reader works fine with out MMC/SD card support in kernel, hal support should be enabled in the system for card proper detection, otherwise autodetection don't works and the card must be inserted before the laptop boots.

Note: If you have not hal support you can enable/disable partition devices by running lshw.

[edit] External links

Personal tools
In other languages