I had a similar problem on my 4runner. On mine it ended up being a switch/sensor on the front diff that tells the ecu if 4x4 front diff was engaged or not. It's simple to test. Remove the switch, hook up an ohm meter to it, push the switch in, see if it changes. If it doesn't change you know...