Fujitsu Siemens Lifebook P7120 Gentoo Linux Install Notes ========================================================= Paul Littlefield Last updated: 2007-04-02 13:18:19 / fix wireless with newer kernels and portage package tree --------------------------------------------------------- Pre-Installation --------------------------------------------------------- # Notes from Windows XP before installing Linux Install Printer -> Port: FILE -> Driver -> Generic / Text Only Start -> Control Panel -> System -> Hardware -> Device Manager -> Action -> Print Start -> Run -> dxdiag -> Save All Information # Hardware Listing Processor: Intel(R) Pentium(R) M processor 1.20GHz Memory: 1014MB RAM Video Card: Mobile Intel(R) 915GM/GMS,910GML Express Chipset Family Video Memory: 128.0 MB Video Mode: 1280 x 768 (32 bit) (60Hz) Sound: Realtek HD Audio Hard Drive: TOSHIBA MK6006GAH (60Gb) Digital Drive: MATSHITA DVD-RAM UJ-832S Network Card: Realtek RTL8139/810x Family Fast Ethernet NIC Wireless Card: Intel(R) PRO/Wireless 2915ABG Network Connection USB: Intel(R) 82801FB/FBM USB2 Enhanced Host Controller Mousepad: Synaptics PS/2 Port Pointing Device IDE: Intel(R) 82801FBM Ultra ATA Storage Controllers # Listing from 'lspci' 00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 04) 00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04) 00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04) 00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04) 00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04) 00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04) 00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04) 00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04) 00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4) 00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04) 00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04) 00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04) 00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04) 06:03.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3) 06:03.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08) 06:03.2 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17) 06:03.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 08) 06:03.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 03) 06:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 06:05.0 Network controller: Intel Corporation PRO/Wireless 2915ABG MiniPCI Adapter (rev 05) --------------------------------------------------------- Basic Installation --------------------------------------------------------- # Partitioning p7120 ~ # fdisk -l /dev/hda Disk /dev/hda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 4 32098+ 83 Linux (25Mb) /dev/hda2 5 67 506047+ 82 Linux swap / Solaris (500Mb) /dev/hda3 68 3715 29302560 83 Linux (30Gb) /dev/hda4 3716 7296 28764382+ 83 Linux (30Gb) # Follow instructions from Gentoo Handbook and reboot: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1&style=printable # Personal comment # ---------------- # Because this laptop is not for work production, I have decided to install the latest 'testing' versions of the software packages. # I have done this globally by setting the variable ACCEPT_KEYWORDS="~x86" in my /etc/make.conf file. # There is a small chance of something going wrong, but I feel it is worth the risk to see the latest software. # Listing of /etc/make.conf # for an Intel Pentium M processor CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" # just 1 processor MAKEOPTS="-j2" # set flags for packages and optimise for a 2.6 kernel USE="X qt kde alsa dvd dvdr xmms mp3 mad -gnome -gtk -gtk2 -gtkhtml -ipv6 nptl nptlonly" # install only the latest testing versions of software ACCEPT_KEYWORDS="~x86" # general tweaks to the portage update software GENTOO_MIRRORS="ftp://gentoo.blueyonder.co.uk/mirrors/gentoo http://gentoo.blueyonder.co.uk http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" RSYNC_RETRIES="3" RSYNC_TIMEOUT="180" # add overlay directory for custom ebuilds PORTDIR_OVERLAY="/usr/local/portage" # new Xorg-7 settings INPUT_DEVICES="keyboard mouse" VIDEO_CARDS="i810" # Update Portage software tree > emerge --sync # Update Portage package > emerge --ask --verbose portage # Update GCC > emerge --ask --verbose gcc # Reinstall ALL packages from scratch and compile with newer GCC > emerge --verbose --emptytree --update --deep --newuse world # Run the conf updater and reboot > etc-update > reboot --------------------------------------------------------- Xorg --------------------------------------------------------- # Install the new Xorg 7 package (see new /etc/make.conf settings above) > emerge --ask --verbose xorg-x11 # Run the xorg configurator > xorgconfig Choose Intel I810 driver Choose Horizontal Sync of 28-96 kHz Choose Vertical Refresh of 50-75 Hz Save as /root/xorg.conf # Run X for the first time using file above. This will run X in 1024x768 resolution > Xorg -config /root/xorg.conf CTRL-ALT-DEL to quit # Now install the '855resolution' package to enable the extra VideoBIOS widescreen WXGA mode of 1280x768 > emerge --ask --verbose 855resolution # Configure the '855resolution' package. Listing of /etc/conf.d/855resolution replace[0]="5c" with[0]="1280 768" > rc-update add 855resolution default > /etc/init.d/855resolution start # Edit the /root/xorg.conf file to include the new WXGA mode Subsection "Display" Depth 24 Modes "1280x768" "1024x768" "800x600" "640x480" ViewPort 0 0 EndSubsection # Copy the file to the proper X directory > cp /root/xorg.conf /etc/X11/ # Run X again using the standard command. You should now see the full resolution :-) > startx CTRL-ALT-DEL to quit --------------------------------------------------------- KDE - K Desktop Environment --------------------------------------------------------- # Now we come to KDE. This installed about 115 package and on this laptop took 12 hours! > emerge --ask --verbose kde # Check for which version of KDE is installed > ls /etc/X11/Sessions/ kde-3.5 # Edit the run-control configuration file to match that version above > nano -w /etc/rc.conf XSESSION="kde-3.5" # Fire up KDE > startx --------------------------------------------------------- Fonts --------------------------------------------------------- # Install some standard fonts and tweak: http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts # I chose 96 dpi to match the fonts that MS Windows uses > emerge --ask --verbose corefonts freefonts > startx Run -> konsole -> xdpyinfo |grep dimensions -> 1280x768 pixels (433x260 millimeters) > startx -- -dpi 96 Run -> konsole -> xdpyinfo |grep dimensions -> 1280x768 pixels (339x203 millimeters) > nano -w /etc/X11/xorg.conf Load "freetype" FontPath "/usr/share/fonts/misc:unscaled" FontPath "/usr/share/fonts/75dpi:unscaled" FontPath "/usr/share/fonts/100dpi:unscaled" FontPath "/usr/share/fonts/Type1" FontPath "/usr/share/fonts/corefonts" FontPath "/usr/share/fonts/freefonts" FontPath "/usr/share/fonts/ttf-bitstream-vera" ... Section "Monitor" ... DisplaySize 339 203 --------------------------------------------------------- Sound --------------------------------------------------------- # How to get the sound chip working: http://www.gentoo.org/doc/en/alsa-guide.xml # Kernel configuration listing Device Drivers ---> Sound ---> <*> Sound card support Advanced Linux Sound Architecture ---> <*> Advanced Linux Sound Architecture <*> Sequencer support < > Sequencer dummy client <*> OSS Mixer API <*> OSS PCM (digital audio) API [*] OSS Sequencer API PCI devices ---> <*> Intel HD Audio > emerge --ask --verbose alsa-utils > rc-update add alsasound default > /etc/init.d/alsasound start > alsamixer PCM 80 Internal 80 > /etc/init.d/alsasound save > aplay /usr/kde/share/sounds/pop.wav --------------------------------------------------------- Wireless Networking --------------------------------------------------------- # http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4 # I really thought this would be tricky but in the end it took about 30 minutes! # Yet again, praise must go to the Gentoo Linux Documentation Project for a superb manual # Kernel configuration listing Device Drivers ---> Network Device Support ---> Wireless LAN (non-hamradio) ---> [*] Wireless LAN drivers (non-hamradio) & Wireless Extensions Cryptographic options ---> [*] Cryptographic API <*> AES cipher algorithms <*> AES cipher algorithms (i586) <*> ARC4 cipher algorithm <*> Michael MIC keyed digest algorithm # Install the Intel ipw2200 package > emerge --ask --verbose ipw2200 > /bin/sh /usr/portage/net-wireless/ieee80211/files/remove-old /usr/src/linux # Configure the wireless settings. I have chosen my wireless interface to be 'eth1' > less /etc/conf.d/wireless.example > touch /etc/conf.d/wireless > nano -w /etc/conf.d/wireless essid_eth1="any" mode_eth1="auto" adhoc_essid_eth1="Linksys" # Create a symlink to the new interface > ln -s net.lo net.eth1 > rc-update add net.eth1 default # Start the new network interface > /etc/init.d/net.eth1 start > ifconfig eth0 Link encap:Ethernet HWaddr 00:17:42:02:09:CA inet addr:192.168.0.240 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:67 errors:0 dropped:0 overruns:0 frame:0 TX packets:50 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:9596 (9.3 Kb) TX bytes:6752 (6.5 Kb) Interrupt:10 Base address:0xe400 eth1 Link encap:Ethernet HWaddr 00:16:6F:3D:89:5E inet addr:192.168.0.239 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1022 errors:0 dropped:7 overruns:0 frame:0 TX packets:705 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:71875 (70.1 Kb) TX bytes:420639 (410.7 Kb) Interrupt:10 Base address:0xa000 Memory:b0102000-b0102fff lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > iwconfig lo no wireless extensions. eth0 no wireless extensions. eth1 IEEE 802.11g ESSID:"Linksys" Mode:Managed Frequency:2.462 GHz Access Point: 00:12:17:69:3B:C3 Bit Rate:54 Mb/s Tx-Power=20 dBm Sensitivity=8/0 Retry limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=99/100 Signal level=-21 dBm Noise level=-91 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:7 Missed beacon:0 --------------------------------------------------------- DVD-RW Optical Drive --------------------------------------------------------- # Edit the make configuration file and add the following flags: USE="cdr dvd dvdr" # Recompile the kernel with the following options: Device Drivers ---> SCSI Device Support ---> <*> SCSI CDROM support SCSI low-level drivers ---> <*> Serial ATA (SATA) support <*> Intel PIIX/ICH SATA support # Reboot and check the kernel messages: scsi1: ata_piix Vendor: MATSHITA Model: DVD-RAM UJ-832S Rev: 1.01 Type: CD-ROM ANSI SCSI revision: 05 sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray sr 0:0:0:0: Attached scsi CD-ROM sr0 --------------------------------------------------------- CD / DVD Writing --------------------------------------------------------- # Having problems getting K3b to work with the DVD-RW drive because it is SATA (I think), but this command works fine: > cdrecord -v dev=/dev/sr0 filename.iso --------------------------------------------------------- DVD Movies --------------------------------------------------------- # Install the fabulous Xine package > emerge xine-ui # Fire up your chosen desktop and run 'xine'. Stick the movie into the DVD-RW drive and let it settle. Then press the 'DVD' button on the Xine UI and hey presto... :-) --------------------------------------------------------- Touchpad --------------------------------------------------------- # Recompile the kernel with the following options: Device Drivers ---> Input device support ---> [*] Provide legacy /dev/psaux device (1280) Horizontal screen resolution (768) Vertical screen resolution <*> Event interface # Reboot and check the kernel messages: Synaptics Touchpad, model: 1, fw: 6.2, id: 0x1a0b1, caps: 0xa04713/0x202000 input: SynPS/2 Synaptics TouchPad as /class/input/input0 input: AT Translated Set 2 keyboard as /class/input/input1 # Check the filesystem devices > cat /proc/bus/input/devices I: Bus=0011 Vendor=0002 Product=0007 Version=0000 N: Name="SynPS/2 Synaptics TouchPad" P: Phys=isa0060/serio4/input0 S: Sysfs=/class/input/input0 H: Handlers=mouse0 event0 B: EV=b B: KEY=6420 0 70003 0 0 0 0 0 0 0 0 B: ABS=11000003 # Add the 'synaptics' keyword to the Xorg configuration > nano -w /etc/make.conf INPUT_DEVICES="keyboard mouse synaptics" # Recompile X > emerge --ask --verbose x11-base/xorg-x11 [ebuild R ] x11-base/xorg-x11-7.1 0 kB # Edit the X configuration file and add the new lines for the touchpad > nano -w /etc/X11/xorg.conf Section "InputDevice" Driver "synaptics" Identifier "Touchpad" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "SendCoreEvents" "True" Option "SHMConfig" "on" Option "MaxSpeed" "0.5" Option "UseShm" "True" EndSection ... Section "ServerLayout" Identifier "Simple Layout" Screen "Screen 1" InputDevice "Touchpad" "CorePointer" InputDevice "Keyboard1" "CoreKeyboard" EndSection # Test X > Xorg > CTRL+ALT+DEL # Install the 'ksynaptics' package emerge --ask --verbose kde-misc/ksynaptics [ebuild R ] kde-misc/ksynaptics-0.3.1 USE="arts -debug -xinerama" # In KDE, configure the touchpad with the newly installed package > startx > Control Center > Peripherals > Touch Pad --------------------------------------------------------- MMC / SD Card Reader Slot --------------------------------------------------------- # Support for the Secure Digital Host Controller Interface (SDHCI) and the Ricoh Co Ltd R5C822 chipset has just been merged into the main 2.6.17 kernel! # Bring the portage package list up-to-date > emerge --sync # Install the new kernel sources > emerge --ask --verbose gentoo-sources [ebuild R ] sys-kernel/gentoo-sources-2.6.17 USE="-build -doc -symlink" 0 kB # Recompile the kernel with the following options Device Drivers ---> MMC/SD Card support ---> <*> MMC support <*> MMC block device driver <*> Secure Digital Host Controller Interface support (EXPERIMENTAL) # Build, install and reboot with the new 2.6.17 kernel. You should now see the following boot messages sdhci: Secure Digital Host Controller Interface driver, 0.11 sdhci: Copyright(c) Pierre Ossman ACPI: PCI Interrupt 0000:06:03.2[A] -> Link [LNKA] -> GSI 10 (level, low) -> IRQ 10 mmc0: SDHCI at 0xb0100800 irq 10 PIO # Stick an SD memory card into the slot and keep your fingers crossed. You should see the following > dmesg |tail mmcblk0: mmc0:d36c SD016 14560KiB mmcblk0: p1 # Create a suitable mount point > mkdir /mnt/sdcard # You can now mount the SD card partition and use it in the normal way! > mount /dev/mmcblk0p1 /mnt/sdcard/ > mount /dev/mmcblk0p1 on /mnt/sdcard type vfat (rw) > df -h /mnt/sdcard/ Filesystem Type Size Used Avail Use% Mounted on /dev/mmcblk0p1 vfat 15M 48K 15M 1% /mnt/sdcard :-) --------------------------------------------------------- Fix wireless with newer kernels and portage package tree --------------------------------------------------------- # When updating to a recent portage package tree, you will find that the net-wireless/ipw2200 package has been removed, because there is now an official driver in the new kernels that works! Consequently, you will receive errors after a system update and reboot complaining about missing drivers and modules, etc. To fix this, perform the following steps:- # Remove the old 'ipw2200' package. The driver is now in the kernel. > emerge --unmerge =net-wireless/ipw2200-1.2.0 # Remove the redundant 'ieee80211' package. This wireless network subsystem is now in the kernel. > emerge --unmerge net-wireless/ieee80211 # Install the new ipw2200 firmware which is required for the new kernel driver. emerge net-wireless/ipw2200-firmware # Rebuild the latest kernel available with these options. I have chosen WEP as my encryption method. Be sure to choose them as MODULES. Networking ---> [*] Networking support Generic IEEE 802.11 Networking Stack IEEE 802.11 WEP encryption (802.1x) Device Drivers ---> Network device support ---> Wireless LAN (non-hamradio) ---> Intel PRO/Wireless 2200BG and 2915ABG Network Connection > make && make modules_install (TIP: if this procedure complains about missing headers, then you will need a fresh kernel tree to start again. Just emerge --oneshot gentoo-sources) # Add the new ipw2200 module to be loaded on boot > echo "ipw2200" >> /etc/modules.autoload.d/kernel-2.6 > modules-update # Reboot the laptop (no need to change your existing /etc/conf.d/wireless settings) and breath a sigh of relief :-) EOF