Search:  
Gentoo Wiki

PowerPro_311

This article is part of the Hardware series.
Laptops TV Tuner Cards Wireless Servers Storage Other Hardware Motherboards Related

Contents

General

This is guide for Gentoo x86 on a PowerPro 3:11 SUPRA notebook. It is a Quanta based laptop (MW1). I suspect all of the hardware discussed in this guide is the same accross all PowerPro 3:11 models.

It is not meant to be a full install guide by any means, just a guide to configuring some of the different hardware.


Basic Hardware Specifications

CPUIntel Pentium-m "Sonoma" processor, w/ 2MB on-chip L2 cache, 533mhz FSB
ChipsetIntel 915PM and ICH6-M
MemoryPC4200 DDR2/533 Dual Channel Memory
Hard DiskIDE ATA/100 40-120GB
Disk DriveCombo 8X DVD - 24x10x24 CD-RW Drive
VideoNvidia Geforce Go 6600 w/ 128MB
AudioIntel High Definition Audio (RealTek ALC880)
LANMarvell Gigabit Ethernet
WIFIIntel PRO/Wireless LAN 2200bg
USB4 ports
Firewire1 port

Installation Notes

Installation was performed via the Gentoo x86 Handbook and the Gentoo Universal Install Disc 2005.0

Temporary Network Access

The ethernet controller was not detected / setup properly by the Install Disc. Following the handbook you should be able to do a fairly networkless install. However internet access is often quite helpful to download the newer stage3 files.

Wireless worked for me during the startup process if activated with the switch at the right time. During the system startup from the install disc, I repeatedly (not too fast) pressed the wireless button. The LED does not work by default, so it was hard to tell if the wireless card was actually activated or not. In short, the install disc recognized the intel wireless card and I was able to get internet access that way. You may want to download the kernel patch for the ethernet card before chrooting the system. Refer to the Ethernet section below.

Stage selection:

I used a pentium-3 stage three install. After the chroot phase I followed the guide for switching from GCC 3.3 to GCC 3.4, found here: Migrating to GCC 3.4
This allows the use of the -march=pentium-m for CFLAG in /etc/make.conf

Kernel Version

I used the default kernel from sys-kernel/gentoo-sources (2.6.12-r6 at the time of this writing)

Ethernet

See this guide.

Video

The following instructions install the Xorg graphical system and the Nvidia drivers

Installation

If you are reading this I assume you are planning on installing a desktop environment, such as KDE. So we need an X server First install xorg-x11

emerge xorg-x11

Use the newer nvidia drivers (OpenGL stuff seemed to crash with the "stable" driver version)

echo "media-video/nvidia-glx ~x86" >> /etc/portage/package.keywords
echo ">=app-admin/eselect-1.0_rc2 ~x86" /etc/portage/package.keywords
echo "media-video/nvidia-kernel ~x86" /etc/portage/package.keywords

Now install the nvidia drivers from portage

emerge nvidia-glx

Now we want the nvidia driver to load upon startup

echo "nvidia" >> /etc/modules.autoload.d/kernel-2.6

If you do not want to restart before continuing, remember to load the module

modprobe nvidia

xorg.conf

Next you need to generate an /etc/X11/xorg.conf file
I ran xorgcfg and went through the motions of that because it gives you a basic xorg.conf file to work with

Don't forget to change the driver from vesa or nv (depending on what xorgcfg ended up doing) to nvidia.

Make sure you remove Load dri from the xorg.conf and add Load glx
See the NVIDIA installation readme for more details

/usr/share/doc/nvidia-glx-1.0.7676-r2/README.txt.gz

Take a look at my xorg.conf file (or simply use it) place link to actual xorg.conf file here Some of the settings will be explained in later sections

OpenGL

Next setup opengl to use nvidia headers

eselect opengl set nvidia

I did not attempt anything with framebuffer / bootsplash in GRUB (yet).

Fonts

Follow HOWTO Xorg+Fonts if you want some somewhat nicer looking fonts. If nothing more, you definately want to set the monitor size parameters described in that document. (See the xorg.conf appendix below for settings that coincide with the 15" 1400x1050 display on this laptop).

WLAN

See this guide.

Audio

To confirm that your card is the same:

lscpi | grep -i audio

Should Produce:

0000:00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)

I was unable to get the kernel driver in 2.6.12-r6 to work for this card. It is an intel high definition audio sound card.

Use the latest version (1.0.10 at the time of writing) of alsa-driver from portage.

Install Alsa-driver

For alsa-driver, you need to disable ALSA completely in the kernel, but leave sound support in the kernel. See the Gentoo HOWTO on alsa for more details. However the following should get you up and running. http://www.gentoo.org/doc/en/alsa-guide.xml#doc_chap2 Scroll down to section on using alsa-driver

Next we need to specify the card in /etc/make.conf

File: /etc/make.conf
ALSA_CARDS="hda-intel"

The following two commands will specify emerge to get the more recent versions

echo "media-sound/alsa-driver ~x86" >> /etc/portage/package.keywords
echo "media-sound/alsa-headers ~x86" >> /etc/portage/package.keywords

now it's time to install the package

emerge alsa-driver

alsaconf

emerge alsa-utils

Setup the card by running alsaconf With any luck alsaconf should see your intel high def audio card. Finish running alsaconf and make sure things make sense along the way.

After it's done, scroll up in the terminal and make sure that the modules loaded okay. Alternatively, run /etc/init.d/alsasound restart

Support for this particular card seems iffy at best. But things tend to work/sound a little bit better with a modification to the module options.

Open up '/etc/modprobe.d/alsa' and add the "options" line

File: /etc/modprobe.d/alsa
alias snd-card-0 snd-hda-intel
options snd-hda-intel position_fix=2
alias sound-slot-0 snd-hda-intel

Afterwards run update-modules.

Refer to the gentoo http://www.gentoo.org/doc/en/alsa-guide.xml for alsamixer instructions

Once everything appears to work ok, you can add alsasound to startup

rc-update add alsasound default

Touchpad

Installation for the touchpad was a tad tricky.

Go into the BIOS (F2 right after a reboot) and disable Legacy USB Support. Otherwise the touchpad does not even seem to get detected by the system. Note that this does NOT actually disable USB on your laptop.

It would be helpful to read over the guide already written for the Synaptics Touchpad

Once you are done with the kernel configuration and the installation of the Synaptics driver, you need to configure xorg.conf properly.

I often use an external mouse, therefore I need more than just the Touchpad settings. I found the above guide a tad unclear on the xorg.conf settings.

Here is what I ended up with:

File: /etc/X11/xorg.conf
Section "InputDevice"
    Identifier  "Touchpad"
    Driver      "synaptics"
    Option      "SendCoreEvents"
    Option      "Device"        "/dev/input/event1"
    Option      "Protocol"      "event"
    Option      "LeftEdge"      "1700"
    Option      "RightEdge"     "5000"
    Option      "TopEdge"       "1700"
# Change the BottomEdge to 4200 if you want the bottom of the touchpad to function for "Back" and "Forward"
    Option      "BottomEdge"    "5000"
    Option      "FingerLow"     "25"
    Option      "FingerHigh"    "30"
# Set MapTapTime to "0" if you want to disable tap-to-click
    Option      "MaxTapTime"    "180"
    Option      "MaxTapMove"    "220"
    Option      "VertScrollDelta" "100"
    Option      "MinSpeed"      "0.09"
    Option      "MaxSpeed"      "0.18"
    Option      "AccelFactor"   "0.0015"
    Option      "SHMConfig"     "on"
    Option      "PalmDetect"    "1"
    Option      "PalmMinWidth"  "10"
    Option      "PalmMinZ"      "100"
    Option      "CoastingSpeed" "0"
    Option      "FastTaps"      "1"
EndSection

# Configuration for the regular mouse with scroll wheel
Section "InputDevice"

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "Auto"
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping"  "4 5"

EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1"   "CorePointer"
    InputDevice "Touchpad" "AlwaysCore"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

ACPI and CPU Frequency Scaling

Take a gander at the Gentoo guide for laptops Gentoo on laptops and the power management guide http://www.gentoo.org/doc/en/power-management-guide.xml

For a quick summary:

Linux Kernel Configuration: ACPI and CPU Frequency Scaling
Power management options (ACPI, APM)  --->
   [*] Power Management support
       ACPI (Advanced Configuration and Power Interface) Support  --->
          [*] ACPI Support
          <*>   AC Adapter
          <*>   Battery
          <*>   Button
          <*>   Fan
          <*>   Processor
          <*>     Thermal Zone
          [*] Power Management Timer Support
       CPU Frequency scaling  --->
          [*] CPU Frequency scaling
          <*>   'performance' governor
          <*>   'powersave' governor
          <*>   'ondemand' governor
          <*> Intel Enhanced SpeedStep
          [*]   Use ACPI tables to decode valid frequency/voltage pairs
          [*]   Built-in tables for Banias CPUs

Since I use kde, I use kde-base/klaptopdaemon to do the frequency scaling (you have to activate it on the ACPI config tab and press the Setup Helper Application button.

The power management guide linked earlier has other solutions

Stand-by / Software Suspend / Suspend to disk

I have not tried any of these features yet.

Extra Buttons

If you've read the guide you should already have the Wifi switch working properly with the module options for ipw2200.

For the volume buttons, I used 'xhkeys'. It is a tool that allows you to map a key-press to a shell command (and some other things). I used this tool along with amixer to setup the audio buttons

Perhaps a better solution is to use acpid and scripts to control these behaviours, but I have not yet tried this.

If you want to go the xhkeys route (this would also allow you to program the "F1" and "F2" buttons to the command of your choice (startup firefox or whatever)).

emerge xhkeys

Use xhkconf to configure the buttons yourself.

Alternatively you can try placing my .XHkeys file in your home directory. This must be in the home directory of the user who launches the command. If you use the init.d script for XHkeys posted below, make sure its in root's home directory (usually /root).

File: ~/.XHkeys
xhkeys.codeline1:       160;0;A#;/usr/bin/amixer set "Front" toggle
xhkeys.codeline2:       176;0;A*;Volume +5%;/usr/bin/amixer sset "PCM" 5%+
xhkeys.codeline3:       174;0;A*;Volume -5%;/usr/bin/amixer sset "PCM" 5%-

For some reason the system did not see "PCM" as a valid mixer until I restarted the computer (after installing audio support that is). If after restarting you are stil unable to see the PCM mixer, change it to "Front". Note that this is a bit of a pain because most applications attempt to set PCM higher or lower. Thus leaving you with no sound control inside applications.

If the volume increments are too large or small for your tastes, simply change the percentages

Launch the xhkeys daemon simply by running /usr/bin/xhkeys

You can also place this script in /etc/init.d/xhkeys

File: /etc/init.d/xhkeys
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

start() {
        ebegin "Starting xhkeys process"
        start-stop-daemon --start --exec /usr/bin/xhkeys
        eend 0;
}

stop() {
        ebegin "Stopping xhkeys"
        start-stop-daemon --stop --exec /usr/bin/xhkeys
        eend 0;
}

Unfortunately this requires X to up be and running before it works. Therefore you cannot simply add this to your default runlevel. You'd have to manually run it as root once the system was started up. If anyone finds a better way to do it, I encourage you to edit this document

Note that the mute LED does not actually light up when the volume is off. However there are on-screen messages (OSD) at the top of the screen, and a pretty distinct "pop" noise when the speakers are muted/unmuted.

I've been told that acpid is a good alternative, but I have yet to try this.

Appendix A: lscpi

Code: lspci
0000:00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 04)
0000:00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM Express PCI Express Root Port (rev 04)
0000:00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
0000:00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04)
0000:00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 04)
0000:00:1c.2 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3 (rev 04)
0000:00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
0000:00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
0000:00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
0000:00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
0000:00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4) 0000:00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
0000:00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04)
0000:00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce Go 6600] (rev a2)
0000:02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 Gigabit Ethernet Controller (rev 19)
0000:06:04.0 Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05)
0000:06:09.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller 0000:06:09.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant IEEE 1394 Host Controller
0000:06:09.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
0000:06:09.4 Class 0805: Texas Instruments PCI6411, PCI6421, PCI6611, PCI6621, PCI7411, PCI7421, PCI7611, PCI7621 Secure Digital (SD) Controller

Appendix B: xorg.conf

File: /etc/X11/xorg.conf
# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"  	# Double buffer extension

    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
    Load        "type1"
    Load        "freetype"

# This loads the GLX module
    Load       "glx"
    Load	"synaptics"
EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"
    RgbPath	"/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/share/fonts/misc/:unscaled"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/corefonts/"
    FontPath   "/usr/share/fonts/freefont/"
    FontPath   "/usr/share/fonts/sharefonts/"
    FontPath   "/usr/share/fonts/terminus/"
    FontPath   "/usr/share/fonts/ttf-bitstream-vera/"
    FontPath   "/usr/share/fonts/unifont/"
    FontPath   "/usr/share/fonts/100dpi:unscaled"
    FontPath   "/usr/share/fonts/75dpi:unscaled"
    FontPath   "/usr/share/fonts/artwiz/"
EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"
EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier	"Keyboard1"
    Driver	"kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"	"xorg"
    Option "XkbModel"	"pc104"
    Option "XkbLayout"	"us"

EndSection

# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
    Identifier  "Touchpad"
    Driver      "synaptics"
    Option	"SendCoreEvents"
    Option	"Device"	"/dev/input/event1"
    Option      "Protocol"      "event"
    Option	"LeftEdge"	"1700"
    Option	"RightEdge"	"5000"
    Option	"TopEdge"	"1700"
    Option	"BottomEdge"	"5000"
    Option	"FingerLow"	"25"
    Option	"FingerHigh"	"30"
    Option	"MaxTapTime"	"0"
    Option	"MaxTapMove"	"220"
    Option	"VertScrollDelta" "100"
    Option	"MinSpeed"	"0.09"
    Option	"MaxSpeed"	"0.18"
    Option	"AccelFactor"	"0.0015"
    Option	"SHMConfig"	"on"
    Option	"PalmDetect"	"1"
    Option	"PalmMinWidth"	"10"
    Option	"PalmMinZ"	"100"
    Option	"CoastingSpeed"	"0"
    Option	"FastTaps"	"1"
EndSection

Section "InputDevice"

# Identifier and driver

    Identifier	"Mouse1"
    Driver	"mouse"
    Option "Protocol"    "Auto"
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping"  "4 5"

EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

Section "Monitor"

    Identifier  "My Monitor"
    DisplaySize	474 356
    HorizSync   31.5 - 64.3
    VertRefresh 50-70

EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

# Standard VGA Device:

Section "Device"
    Identifier	"Standard VGA"
    VendorName	"Unknown"
    BoardName	"Unknown"
    Driver     "vga"
EndSection

Section "Device"
    Identifier  "* Generic VESA compatible"
    Driver      "nvidia"
    #VideoRam    131072
    # Insert Clocks lines here if appropriate
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************

Section "Screen"
    Identifier  "Screen 1"
    Device      "* Generic VESA compatible"
    Monitor     "My Monitor"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice	"Mouse1"   "CorePointer"
    InputDevice "Touchpad" "AlwaysCore"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Links

Retrieved from "http://www.gentoo-wiki.info/PowerPro_311"

Last modified: Thu, 28 Aug 2008 21:48:00 +0000 Hits: 7,486