Gentoo on the HP Compaq nx7010 laptop
These models are mostly identical:
- HP Compaq nx7000
- Compaq Presario X1000
Working hardware
v Ati mobility radeon 9200 - no acceleration, you may have luck with ati's proprietary driver. Supposedly unstable, and I have no need for it so I haven't tested it.
v intel PRO/Wireless 2200bg wireless adapter
v Realtek RTL-8139 nic
v MMC/SD card reader
v PCMCIA -Probably works, I haven't tested it yet
v Multimedia keys (mute, volume)
v Audio - use ALSA, enable oss emulation.
v Touchpad
Installation
Follow the gentoo handbook. If you want to install over the wireless connection you should use 2005.1 since it includes wireless support and the ipw2200 driver. . If you want to install using a wired connection run
modprobe rtl8139c
and then go by the install guide.
Kernel configuration
When you get to point 7c, manual configuration of the kernel, be sure to include these for the wireless driver:
Networking Support --->
[*] Wireless lan (non hamradio)
Cryptographic options --->
[*] Cryptographic API
AES cipher algorithms (i586)
ARC4 cipher algorithm
Michael MIC keyed digest algorithm
CRC32c CRC algorithm
These for the 8139, not sure which one so I grabbed both:
Device Drivers --->
Networking support --->
Ethernet (10 or 100Mbit) --->
RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support (EXPERIMENTAL)
RealTek RTL-8139 PCI Fast Ethernet Adapter support
And these for the frequency scaling on the pentium m:
Processor type and features --->
* Processor family (Pentium M)
Power management options (ACPI, APM) --->
[*] CPU Frequency scaling
Default CPUFreq governor (userspace) --->
'ondemand' cpufreq policy governor
Intel Enhanced SpeedStep
[*] Use ACPI tables to decode valid frequency/voltage pairs
[*] Built-in tables for Banias CPU
Enabling frequency scaling on startup
Add the following line to /etc/conf.d/local.startecho ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Multimedia keys
In order to get multimedia keys working, you should edit the file .Xmodmap in your home directory to include these lines:
keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
Then edit the file .xsession, still in your $HOME, to load your .Xmodmap by including this line:
/usr/X11R6/bin/xmodmap $HOME/.Xmodmap
The next step depends on what window manager you use. If you use fluxbox like me, edit the file ~/.fluxbox/keys to include these lines:
None XF86AudioLowerVolume :ExecCommand amixer -q set PCM 2- unmute
None XF86AudioMute :ExecCommand amixer -q set Master toggle
None XF86AudioRaiseVolume :ExecCommand amixer -q set PCM 2+ unmute
You will have to restart X for these changes to take effect.
Now for the rest of you who use something other than fluxbox, you will have to look in the gentoo wiki and adapt these instructions for your window manager.
USE flags & make.conf
Here are som use flags you may want to add to /etc/make.conf in addition to your own.
USE="alsa dvd ssl cdr tiff jpg gif crypt dvdcss css aes oss aac matroska xvid divx encode threads svg avi mpeg oggvorbis theora xanim win32codecs synaptics"
and part of my make.conf:
CFLAGS="-O2 -mcpu=i686 -march=i686 -fomit-frame-pointer -pipe -funroll-loops"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
Misc, comments
It is close to completely silent when used for office tasks and web browsing. More so than in windows actually, this is probably because of Windows insisting on running lots of background tasks and and gentoo having none by default.
The battery life is phenomenal, with the backlight turned almost all the way down I can get between four and a half and five hours of use, with the wlan card turned on.
The wlan power button in front works just like in windows, it's got it's own controller and isn't reliant on the OS.
As long as you leave ACPI in the kernel you should be able to use any tool such as wmbattery or the one included in gnomepanel to monitor the battery level.
Compile and install your kernel. Make sure you have set up the USE flags you want (such as "synaptics" if you want mouse button emulation from the touchpad).
Emerge ipw2200 and edit the configuration files to your liking. Remember to create a startup-script for the wireless card (cp /etc/init.d/net.eth0 /etc/init.d/net.eth1). You might want to add it to the default runlevel too. Add the module ipw2200 to /etc/modules.autoload.d/kernel-2.6 (or 2.4).
Continue following the handbook.
Details on the more general steps of setting up linux can be found elsewhere, such as in the Gentoo handbook. If you need more help with the wireless adapter, look at the gentoo wiki page on the ipw2200 adapter.
Output of lspci
0000:00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 03)
0000:00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03)
0000:00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
0000:00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
0000:00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
0000:00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 81)
0000:00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
0000:00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
0000:00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
0000:00:1f.5 Multimedia audio controller: Intel Corporation
82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
0000:00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 Lf [FireGL 9000] (rev 01)
0000:02:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
0000:02:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20)
0000:02:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05)
0000:02:04.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01)
xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/lib/X11/rgb"
ModulePath "/usr/lib/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
EndSection
Section "Module"
Load "extmod"
# Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "glx"
Load "type1"
Load "freetype"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "LGP"
ModelName "0"
EndSection
Section "Device"
Identifier "Card0"
Driver "ati"
VendorName "ATI Technologies Inc"
BoardName "Radeon R250 Lf [Radeon Mobility 9000 M9]"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x768"
EndSubSection
EndSection
| Home ↑ Top RSS |
I use the kernel 2100 as a module, and install the 2100 firmware.
i have sound working fine, and the multimedia buttons as described above... but does anyone know how to enable audio through the inbuilt jbl speakers? currently audio outputs to the headphone socket on the front facia only
mmc_block
wbsd nopnp=1
battery monitor.... gr).
However, direct rendering works great with the Open Source Drivers. It gives me 3000 FPS in glxgears, and excellent dual head.
Just follow this guide. All steps are valid.
http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers
I got the modules compiled outside the kernel tree using the DRM/Mesa method. This way, you get the newest radeon.ko, drm.ko, r200_dri, radeon_dri, plus the right OpenGL too, otherwise you mess with the portage Proprietary ATI OpenGL.
Leave a comment: