Posted by Brian @ 7:03 am on March 18th 2012

Things I did to fix my HP DV7 in Ubuntu

I have an HP dv7-6b78us laptop, which is fairly decent. Here’s a list of the things I had to do in order to get it to work properly in Ubuntu 11.10 64bit:

add to rc.local:
modprobe -r psmouse
modprobe radeon
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
exit 0

The first line in the above turns off the touchpad, which I never use. If I needed to use it I could:
sudo modprobe psmouse
The second line loads the open source ATI Radeon driver, the third line turns off the ATI card so it doesn’t suck power. The Intel graphics card is plenty powerful for my needs.

set brightness:
echo 2000 | sudo tee /sys/class/backlight/intel_backlight/brightness
The brightness keys don’t work. I haven’t yet assigned a command to the right keys but I’ll update this when I do. Replace 2000 with a value you want; look at /sys/class/backlight/intel_backlight/max_brightness for the max value.

/etc/modprobe.d/alsa-base.conf:
# fix mic on dv7
options snd-hda-intel model=dell-s14 power_save=0 power_save_controller=N
(enable subwoofer but break mic:options snd-hda-intel model=ref)
#Fix dropping networking on resume from suspend
/etc/modprobe.d/iwlagn.conf:
options iwlagn bt_coex_active=0

Make sure proprietary radeon drivers are blocked
/etc/modprobe.d/blacklist-local.conf
blacklist fglrx

Optimize SSD (if you have an SSD that is):
/etc/fstab:
add noatime,discard to main drive
tmpfs /tmp tmpfs defaults,nosuid,size=1g,mode=1777 0 0
/etc/rc.local:
echo deadline > /sys/block/sda/queue/scheduler
echo 1 > /sys/block/sda/queue/iosched/fifo_batch

Fix video mode error on boot:
sudo chmod a-x /etc/grub.d/05_debian_theme
also https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/699802 #24

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment