Tag Archives: Gentoo

Gingerbread on my Droid 1

Today I finally decided to screw around with my android phone and put a custom ROM on it. I had played around with the SDK before but haven’t actually done anything with the phone. I read on droid-life that Peter Alfanso made a gingerbread ROM for Droid 1 and I wanted to try it out.

First step was to root my phone; the rageagainstthecage exploit worked really well. I followed instructions directly from http://androidforums.com/droid-all-things-root/171056-rooting-droid-without-rsd-lite-up-including-frg83d.html except the paths. For those of you using Gentoo, the adb path is


after you have installed the android-sdk-update-manager package. If you’re installing package from fresh, then you also need to download the sdk tools and a platform api from within the sdk. Basically just run:


After that you can just go to the android market and download ROM Manager. It requires root access, so the step above is necessary. With ROM manager you can install clockwordmod recovery and finally flash Gingerbread onto your Droid 1 (you DID already download the rom .zip file onto your sd card, right?).

The original reason I wanted to play around with Gingerbread was for the integrated SIP support. If I set my phone to receive calls from my Gizmo account, and set my google voice number to forward to both my SIP account and my cellphone. What happens when someone calls? 🙂

Unfortunately I was rather disappointed at the SIP calling. The audio was really choppy and sometimes didn’t work at all. There’s also a warning that receiving SIP calls drains your battery 🙁

FATAL: Error inserting w83627ehf

It was many months ago that lm_sensors stopped working and only recently have I decided to investigate. I have an Asus P5Q-E board with a Winbound w83627ehf chip.

When attempting to insert it, I got the following error:

Turm ~ # modprobe w83627ehf
FATAL: Error inserting w83627ehf (/lib/modules/2.6.36-gentoo-r3/kernel/drivers/hwmon/w83627ehf.ko): Device or resource busy

Investigating this further we find that there’s a conflicting ACPI driver.

Turm ~ # dmesg | tail
[fglrx] Reserved FB block: Unshared offset:f921000, size:3df000 
[fglrx] Reserved FB block: Unshared offset:3fff4000, size:c000 
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ADDRCONF(NETDEV_UP): eth1: link is not ready
sshd (5426): /proc/5426/oom_adj is deprecated, please use /proc/5426/oom_score_adj instead.
eth0: no IPv6 routers present
w83627ehf: Found W83667HG chip at 0x290
ACPI: resource w83627ehf [io  0x0295-0x0296] conflicts with ACPI region HWRE [io  0x0290-0x0299 pref]
ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver

After googling around a bit, it turns out that after kernel 2.6.31 they deprecated the use of sensor chip modules in favor of ACPI drivers when they’re available. To get your sensors back you need to use the asus_atk0110 acpi driver. You need to make sure it’s compiled into your kernel and lm_sensors is at least version 3.1.0. Then just issue

modprobe asus_atk0110

and everything should work. There is no need to rerun sensors-detect because lm_sensors is no longer involved in loading proper sensor modules.

Then you may want to adjust the lm_sensors startup script to load proper modules. On Gentoo look at /etc/conf.d/lm_sensors and change any instance of w83627ehf to asus_atk0110

Keeping a Desktop & Laptop in Sync

This post is tagged as backlogged, so the stuff I’m writing here isn’t exactly “new”. Anyway a few years ago (2) I became an owner of a 12″ laptop which was useful to take to class but needed to be constantly synced with my desktop.

Fortunately Gentoo had Unison in its repository. This program works very well and presents a graphics merge window when conflicts arise. After searching for a Sync solution for a while, this is the best that I could find. Emerging unison on Gentoo gets you an executable with a version number to it. A quick

ln -s /usr/bin/unison-2.27 /usr/bin/unison

fixes that inconvenience.

Below is an example unison config in case anyone finds it useful. I saved the file as default.prf in the unison directory.

# Unison preferences file
root = /home/cogent
root = ssh://Turm
# Paths that I want to sync

path = my_stuff
path = school
path = workspace
#path = work
path = .ssh
path = .purple
path = .gnupg
#path = .thunderbird
path = archive/music

ignore = Name *~
ignore = Name .purple/status.xml
ignore = Path .purple/accels
ignore = Name .purple/blist.xml
ignore = Name .purple/prefs.xml
ignore = Name .purple/accounts.xml

log = false
height = 40

Having done that, running

unison default

resulted in a purely automatic sync. To get the process as smooth as possible, you should add your ssh keys to the respective machines. That way you won’t be asked for the password each time. Also, be sure to connect to the machine at least once before connecting with unison. If I remember correctly, it doesn’t present the “add this machine to know ssh hosts” dialog correctly. Possibly resulting in a silent failure.