HP 6730B

General information
HP part number: GB991EA CPU: Core 2 Duo T9400 (Montevina Penryn) 2.53GHz, 6MB L2 cache Chipset: GE45 (GM45 clone with S-video, according to HP) Display: 15.4" WSXGA+ (1680x1050) HDD: 160GB 7200rpm WiFi: IWL5100 [8086:4237] (requires kernel 2.6.27) LAN: Gigabit Broadcom BCM5787M BT: HP branded Broadcom, supported by bcm203x module WebCam: Chicony 04f2:b059 (works with UVC) Fingerprint: AES2801 (not yet supported in linux)

Windows Backup Partition
Microsoft Windows recovery seems to be on a 10GB partition /dev/sda2, backup before you start.

Multimedia Keys
with hp_wmi module all the multimedia keys work (dmesg shows *something* when pressed), only the quicklook key (between power and "presentation" button, the one that starts the PC when off) is not recognized by hp_wmi and thus is not bindable (or is, but not as easily as the others)

Suspend
emerge hibernate-script and enable (and emerge of course) vbetool, hibernate-ram is working great, but sometimes (happened to me three times) the laptop doesn't wake up (everything starts up but the screen remains off and the computer is frozen) and a "hard" shutdown is required (hold the power button for longer time)

CDROM/DVD
is of type scsi. Scsi support for cdrom must be enabled when setting up the system.

Graphics
Please see Intel GMA which is a very good description of how to handle the Intel Graphic Media Accelerator (GMA). The fact is, in spite of these exhaustive instructions, I couldn't get the 'intel' driver to work. The machine just wouldn't find the hardware. Changing the driver to 'vesa' I got ~1250 fps in glxgears which is enough for my programming adventures :). <- SOLVED*

Framebuffer Warning

When configuring your kernel select -only- the intelfb framebuffer driver omitting vesafb or ioremap.c will stack trace or segfault on boot due to vesafb and intelfb having conflicting device memory address allocations as well as both device drivers attempting to utilize the same device. This is likely due to intelfb being a hard kernel dependancy of i915 dri.

Update: As of x11-drivers/xf86-video-intel-2.6.3-r1 and media-libs/mesa-7.3-r1 (or possibly earlier, but those are the version I've tried), the "intel" Xorg driver seems to load run just fine, without having to specify any extra parameters in Xorg.conf. The relevant section on my laptop's config: Section "Device" Identifier "Card0" Driver     "intel" VendorName "Intel Corporation" BoardName  "Mobile Integrated Graphics Controller" BusID      "PCI:0:2:0" EndSection

ALSA
Currently (as of git-sources-2.6.27-r6) sound is working only through headphones, I am working on that now <- SOLVED "options snd-hda-intel model=laptop" in modprobe.conf and reboot solves, "modprobe snd-hda-intel model=laptop" didn't (possibly because modprobe on loaded module doesn't mean "reload")

Xorg
After Installing newest Xorg (and solving circular dependencies by temporarily removing X useflag), startx detected all the hardware, direct rendering was working, resolution was highest possible, glxgears did 60fps (no matter if I opened one or three instances, obviously refresh rate related), KDE4.1 works great, including compositing effects

Touchpad
Touchpad seems to not see the number of fingers used, and thus multi-finger clicking requires EmulateTwoFingerMinZ option in xorg.conf (95 seems to be the right value for me)

Xorg Configuration
This environment made it work, 'intel' driver & all:

System: Linux eclipse 2.6.27-gentoo-r7 #10 SMP Tue Jan 20 10:03:01 Local time zone must be set--see zic i686 Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz GenuineIntel GNU/Linux

xorg: version 7.2

Video driver: Xorg video driver: xf86-video-intel-2.5.1-r1 (needed >=libdrm-2.4.3)

xorg.conf: For fontrelated problems see X.Org/Fonts The Modeline is not necessary, it's for your information. It comes from xvidtune and doesn't break X so it may be OK: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Section "ServerLayout" Identifier    "X.org Configured" Screen     0  "Screen0" 0 0 InputDevice   "Mouse0" "CorePointer" InputDevice   "Keyboard0" "CoreKeyboard" EndSection

Section "Files" RgbPath     "/usr/share/X11/rgb" ModulePath  "/usr/lib/xorg/modules" FontPath    "/usr/share/fonts/misc/" FontPath    "/usr/share/fonts/TTF/" FontPath    "/usr/share/fonts/OTF" FontPath    "/usr/share/fonts/Type1/" FontPath    "/usr/share/fonts/100dpi/" FontPath    "/usr/share/fonts/75dpi/" EndSection

Section "Module" Load "i2c" Load "bitmap" Load "ddc" Load "int10" Load "vbe" #Load "vnc"

Load "glx" Load "record" Load "xtrap" Load "dbe" Load "GLcore" Load "dri" Load "extmod" Load "freetype" Load "type1" EndSection

Section "InputDevice" Identifier "Keyboard0" Driver     "kbd" Driver     "kbd" Option	   "CoreKeyboard" Option	   "XkbRules" "xorg" Option	   "XkbModel" "pc105" Option	   "XkbLayout" "se" EndSection

Section "InputDevice" Identifier "Mouse0" Driver     "mouse" Option	   "Protocol" "auto" Option	   "Device" "/dev/input/mice" Option	   "ZAxisMapping" "4 5 6 7" EndSection

Section "Monitor" Identifier	"LVCD" Option	   "DPMS" "false" VendorName  "Monitor Vendor" ModelName   "Monitor Model" Modeline 	"1680x1050"  131.50   1680 1808 1920 2030   1050 1053 1059 1080 -hsync -vsync EndSection

Section "Device" ### Available Driver options are:- ### Values: : integer, : float, : "True"/"False", ### : "String", : " Hz/kHz/MHz" ### [arg]: arg optional #Option    "NoAccel"            	# [ ] #Option    "SWcursor"           	# [ ] #Option    "ColorKey"           	#  #Option    "CacheLines"         	#  #Option    "Dac6Bit"            	# [ ] Option    "DRI"                	 "True" #Option    "NoDDC"              	# [ ] #Option    "ShowCache"          	# [ ] #Option    "XvMCSurfaces"       	#  #Option    "PageFlip"           	# [ ] Option		"monitor-LVCD"	"LVCD" Option		"monitor-VGA"	"VGA" Option		"monitor-TV"	"TV" Identifier "Card0" Driver     "intel" VendorName "Intel Corporation" BoardName  "Unknown Board" BusID      "PCI:0:2:0" EndSection

Section "Screen" Identifier "Screen0" Device    "Card0" Monitor   "LVCD" SubSection "Display" Viewport  0 0 Depth    24 EndSubSection EndSection

Section "DRI" Mode 0666 EndSection

[1] Updating/installing some software resulted in the masked driver/drm library was overwritten. xorg then can't find the hardware. Reinstallation fixed it. If this happen and you're in a hurry change the driver in xorg.conf from 'intel' to 'vesa'. X gets operable again but at a lower resolution.

Kernel Configuration
See the sample /usr/src/linux/.config file which governs what is setup in the menuconfig interface. If you have the correct .config in the right place you will have the correct choices made in the system setup. Below follows a working .config. There are probably things missing, nothing has been done to make wireless network or a number of hardware functions (lid-closed switch, speaker controls etc) work.