Posted by Brian @ 4:22 pm on March 27th 2012

Beng Melea, Cambodia

My last visit to ruins on the trip turned out to be the best. Beng Melea is a semi-destroyed fortress from the early 11th century, about 65km from Angkor Wat. I scored a guide that took me inside, around, and on top of this magnificent site, to places that most tourists never take the time to explore.

20120327-143456.jpg

Posted by Brian @ 4:22 pm on March 27th 2012

Koh Ker, Cambodia

Today I visited the royal city of Koh Ker, abandoned in 944 A.D. It’s about 130km or more from Angkor Wat. I was the only one here at Prasat Pram. This was my favorite place there, where the trees seem to explode out of the top of these thousand year old temples.

20120327-122031.jpg

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