HP Envy 14-1010eg

General Information
you need kernel >=2.6.34

support for clickpad will probably be added >2.6.35

lspci
lspci

lsusb
lsusb

Make.conf
make.conf

Graphics (Intel)(ATI)
Choose a graphics driver from those available for your card and follow the linked guide.

emerge the following packages: emerge

then lsmod should show the following modules loaded: lsmod

Switcheroo

 * CONFIG_VGA_SWITCHEROO = y

echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch  switches to the discrete adapter

echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch  switces to the integrated adapter

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch  unpowers the unsused apdater (saves energy)

echo ON > /sys/kernel/debug/vgaswitcheroo/switch  powers the unused adapter

Sound Card

 * CONFIG_SND_PCI=y
 * CONFIG_SND_HDA_INTEL=y

Ethernet

 * CONFIG_NET = y
 * CONFIG_MII = y
 * CONFIG_R8169 = y
 * additional stuff in 'Networking Support'

Wireless (Broadcom BCM43224)
broadcom-sta modprobe wl

notes: broadcom-sta will require some kernel settings to work:
 * CONFIG_WIRELESS=y
 * CONFIG_CFG80211=m
 * ONFIG_CFG80211_DEFAULT_PS = y
 * CONFIG_CFG80211_DEBUGFS = y
 * CONFIG_CFG80211_WEXT = y
 * CONFIG_WIRELESS_EXT_SYSFS = y
 * CONFIG_LIB80211 = y
 * CONFIG_MAC80211 = m
 * CONFIG_MAC80211_LEDS = y


 * CONFIG_NETDEVICES = y
 * CONFIG_WLAN = y
 * CONFIG_HOSTAP = y
 * CONFIG_HOSTAP_FIRMWARE = y
 * CONFIG_HOSTAP_FIRMWARE_NVRAM = y
 * CONFIG_HOSTAP_PLX = y
 * CONFIG_HOSTAP_PCI = y
 * CONFIG_HOSTAP_CS = y


 * CONFIG_WIRELESS_EXT=y
 * CONFIG_WEXT_CORE=y
 * CONFIG_WEXT_PROC=y
 * CONFIG_WEXT_SPY=y
 * CONFIG_WEXT_PRIV=y
 * CONFIG_MAC80211=m
 * CONFIG_SSB_POSSIBLE=y
 * CONFIG_SSB = n

also go to http://www.broadcom.com/support/802.11/linux_sta.php and copy the firmware to /lib/

Display Brightness

 * CONFIG_BACKLIGHT_CLASS_DEVICE = y
 * CONFIG_BACKLIGHT_GENERIC = y

on boot display brightness was set to 0, so i created a script /etc/init.d/brightness echo 10 > /sys/class/backlight/acpi_video0/brightness echo 10 > /sys/class/backlight/acpi_video1/brightness

then chmod +x /etc/init.d/brightness

then rc-update add brightness default

kernel .config
lspci

Renaming Network Devices
If you want your Network Devices to be named eth0 and wlan0 do this: ifconfig

look at the mac adresses to see which address bleongs to which card. nano /etc/udev/rules.d/70-persistent-net.rules

and change the two lines with those mac addresses to look someting like whis

X-Server
Emerge the following Packages: emerge

Compiz-fusion
requires

LIBGL_ALWAYS_INDIRECT=1 INTEL_BATCH=1 compiz-manager --replace --indirect-rendering --sm-disable ccp &

to work

Keyboard Special Keys
to get volume control keys working you can do this:

emerge -av xbindkeys xmodmap

add xbindkeys to startup and create those two files:

~/.xbindkeysrc

"amixer set Master toggle" XF86AudioMute "amixer set PCM 2dB+" XF86AudioRaiseVolume "amixer set PCM 2dB-" XF86AudioLowerVolume

~/.Xmodmap keycode 121 = XF86AudioMute keycode 123 = XF86AudioRaiseVolume keycode 122 = XF86AudioLowerVolume

Set Brightness and Switch to Integrated Graka at startup
/etc/local.d/baselayout1.start echo 10 > /sys/class/backlight/acpi_video0/brightness echo 10 > /sys/class/backlight/acpi_video1/brightness

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch