View Single Post
Posts: 139 | Thanked: 97 times | Joined on Nov 2010 @ United States
#2560
Originally Posted by Estel View Post

Code:
echo dedicated > /sys/class/power_supply/bq24150a-0/mode
...of course, supposing that you have bq2415x_charger module loaded, already. If not, you will get error about that path not existing - try loading module via
Code:
modprobe bq2415x_charger
...and echo command, again.
---
Do I need to stop bme as well?

Originally Posted by Estel View Post
so, you repaired your port to state of having *both* charging and data working, but charging works only from established data connection (like connected to notebook)? Very strange. Forcing dedicated mode should work, so try it first, but it would be nice to investigate it more, afterwards. Like, posting tail of dmesg, invoked after connecting charger to device.

/Estel
Yes, it would appear that way. Here's the results of my findings so far:

I have four chargers I'm testing (the first three came with specific devices, and will be referred to
as such):
Nokia N900
HP TouchPad
Nokia N9
PowerGen 8400mA external charger

When I plug my N900 in to the N900 charger when the device is off, the device notices and turns on.

When the N900 turned on and is plugged into the N900 charger, the device does not charge.

When the N900 is plugged into the HP TouchPad charger using the cable that came with the N900, the device charges as expected.

When the N900 is plugged into my laptop using the N900 cable, the device charges. The N900 also prompts for mass storage mode and the laptop shows a N900 being connected in dmesg. The connection remains stable despite moving the cable around.

When the N900 is on and plugged into the N9 charger, the device does not charge.

When the N900 is on and plugged into the PowerGen charger, the device does not charge.

When I use USB host mode, the N900 does not provide power to the connected device.

Here's a sample from dmesg with dedicated mode enabled
# plugging in the power source
[ 238.897979] twl4030_usb twl4030_usb: HW_CONDITIONS 0x54/84; link 3
# unplugging the power source
[ 246.778930] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1


When it does charge (off the HP TouchPad charger), it looks something like this:

[ 532.317291] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
[ 533.591186] twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2
[ 533.591217] rx51_update_charger_mode (mode = 2)
[ 535.707153] rx51_update_charger_mode (mode = 3)
[ 572.853881] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
[ 572.853973] rx51_update_charger_mode (mode = 0)
[ 572.854492] regulator_disable: not in use by this consumer
[ 572.854492] regulator_disable: not in use by this consumer
[ 574.271423] twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2
[ 574.271453] rx51_update_charger_mode (mode = 2)
[ 574.394683] rx51_update_charger_mode (mode = 3)
[ 576.283843] rx51_update_charger_mode (mode = 2)
[ 576.386016] regulator_disable: not in use by this consumer
[ 576.386047] regulator_disable: not in use by this consumer
[ 576.386260] rx51_update_charger_mode (mode = 3)

I haven't had problems with moving the cable around, even by applying light pressure to the connection to the N900.

Probably the weirdest thing is that the device will always charge off the HP TouchPad charger, but neither of my Nokia chargers.
 

The Following 2 Users Say Thank You to AndrewX192 For This Useful Post: