Reply
Thread Tools
Posts: 9 | Thanked: 7 times | Joined on Feb 2011 @ Moscow
#211
Is there any mirror for https://vcs.maemo.org/git/kernel-power?
 
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#212
 

The Following 6 Users Say Thank You to pali For This Useful Post:
Posts: 11 | Thanked: 47 times | Joined on Feb 2013
#213
First off: awesome work you guys have been doing developing and maintaining the power-kernel!

To get the latest power-kernel compiled (on native Squeeze toolchain) I had to do:
Code:
sed 's/getline/get_line/g' -i scripts/unifdef.c
Which is just about exactly the same as what this patch does:
http://git.uclibc.org/uClibc/commit/...eb6961c30f5a6e

It doesn't seem to have any impact on anything else (to the untrained eye like mine), so could that patch please be added to the power-kernel?


Oh and I had a bit of trouble obtaining the source with git, so this might be useful to somebody:
Code:
git clone git://gitorious.org/community-ssu/kernel-cssu.git --branch kernel-power
That was the only way I could get it to work for me (if anyone wonders, yes I tried GIT_SSL_NO_VERIFY=1 in the original instructions too).
 

The Following 4 Users Say Thank You to Zaerc For This Useful Post:
Posts: 15 | Thanked: 21 times | Joined on Dec 2012
#214
I using BME-replacement from pali. After last update of kernel-power-modules I have bug with charging - if N900 connected with USB-cable - show message "Charging", but phone not charging. Sometimes this bug happens with charger, but rarely. With USB-cable - always. With charger phone charging normally.

Last edited by DarkSide25; 2013-04-21 at 14:33.
 
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#215
@DarkSide25: make sure you have last BME replacement deb packages (06-Apr-2013) and if still you have problems, attach dmesg output.
 

The Following User Says Thank You to pali For This Useful Post:
Posts: 15 | Thanked: 21 times | Joined on Dec 2012
#216
Originally Posted by pali View Post
@DarkSide25: make sure you have last BME replacement deb packages (06-Apr-2013) and if still you have problems, attach dmesg output.
[14024.442779] rx51_update_charger_mode (mode = 1)
[14026.562133] rx51_update_charger_mode (mode = 2)
[14037.196319] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
[14037.196350] rx51_update_charger_mode (mode = 0)
[14037.202301] regulator_disable: not in use by this consumer
[14037.202331] regulator_disable: not in use by this consumer
[14061.638824] twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2
[14061.638854] rx51_update_charger_mode (mode = 1)
[14062.522644] musb_hdrc periph: enabled ep1in for bulk IN, maxpacket 512
[14062.522674] musb_hdrc periph: enabled ep1out for bulk OUT, maxpacket 512
[14062.522705] g_file_storage gadget: high speed config #1
[14115.684020] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
[14115.684112] rx51_update_charger_mode (mode = 0)

I have last updates of BME replacement. First I connected the charger, then - USB. Thу file dmesg.txt is attached.
Attached Files
File Type: txt dmesg.txt (4.5 KB, 117 views)

Last edited by DarkSide25; 2013-04-21 at 14:49.
 
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#217
modes:
0 - charger disconnected
1 - usb host charger
2 - wallcharger

from your output I see that charger detection working fine.

please write output of these files (when you connect/disconnect charger, also wait about 20-30 seconds if something change):

/sys/class/power_supply/bq24150a-0/mode
/sys/class/power_supply/bq27200-0/uevent
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Posts: 15 | Thanked: 21 times | Joined on Dec 2012
#218
Originally Posted by pali View Post
modes:
0 - charger disconnected
1 - usb host charger
2 - wallcharger

from your output I see that charger detection working fine.

please write output of these files (when you connect/disconnect charger, also wait about 20-30 seconds if something change):

/sys/class/power_supply/bq24150a-0/mode
/sys/class/power_supply/bq27200-0/uevent
Thanks, pali. These files attached.

bq27200-0_uevent_USB_connect
PHYSDEVPATH=/class/i2c-adapter/i2c-2/2-0055
PHYSDEVBUS=i2c
PHYSDEVDRIVER=bq27x00-battery
POWER_SUPPLY_NAME=bq27200-0
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_VOLTAGE_NOW=4071000
POWER_SUPPLY_CURRENT_NOW=188674
POWER_SUPPLY_CAPACITY=99
POWER_SUPPLY_TEMP=396
POWER_SUPPLY_TIME_TO_EMPTY_NOW=27120
POWER_SUPPLY_TIME_TO_EMPTY_AVG=23700
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CHARGE_FULL=1318936
POWER_SUPPLY_CHARGE_NOW=1308762
POWER_SUPPLY_CHARGE_FULL_DESIGN=2056320

bq24150a-0_mode_USB_connect
auto (none)

bq27200-0_uevent_charger_connect
PHYSDEVPATH=/class/i2c-adapter/i2c-2/2-0055
PHYSDEVBUS=i2c
PHYSDEVDRIVER=bq27x00-battery
POWER_SUPPLY_NAME=bq27200-0
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_VOLTAGE_NOW=4152000
POWER_SUPPLY_CURRENT_NOW=-121915
POWER_SUPPLY_CAPACITY=99
POWER_SUPPLY_TEMP=368
POWER_SUPPLY_TIME_TO_FULL_NOW=420
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CHARGE_FULL=1318936
POWER_SUPPLY_CHARGE_NOW=1308762
POWER_SUPPLY_CHARGE_FULL_DESIGN=2056320

bq24150a-0_mode_charger_connect
auto (host)

bq27200-0_uevent_disconnect
PHYSDEVPATH=/class/i2c-adapter/i2c-2/2-0055
PHYSDEVBUS=i2c
PHYSDEVDRIVER=bq27x00-battery
POWER_SUPPLY_NAME=bq27200-0
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_VOLTAGE_NOW=4074000
POWER_SUPPLY_CURRENT_NOW=208666
POWER_SUPPLY_CAPACITY=99
POWER_SUPPLY_TEMP=361
POWER_SUPPLY_TIME_TO_EMPTY_NOW=22620
POWER_SUPPLY_TIME_TO_EMPTY_AVG=19680
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CHARGE_FULL=1318936
POWER_SUPPLY_CHARGE_NOW=1311618
POWER_SUPPLY_CHARGE_FULL_DESIGN=2056320

bq24150a-0_mode_disconnect
auto (off)
Attached Files
File Type: zip bq27200-0_bq24150a-0.zip (1.8 KB, 87 views)

Last edited by DarkSide25; 2013-04-21 at 15:53.
 

The Following User Says Thank You to DarkSide25 For This Useful Post:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#219
@DarkSide25: there is something bad. please reinstall each kernel (via apt-get) and bme replacement package. reboot and try again.
 

The Following 3 Users Say Thank You to pali For This Useful Post:
Posts: 15 | Thanked: 21 times | Joined on Dec 2012
#220
@pali: Thanks, pali! After reinstalling bug gone, everything is working fine.
 
Reply

Tags
development, kernel-power


 
Forum Jump


All times are GMT. The time now is 21:09.