power management,how to support ?

371 views
Skip to first unread message

youling 257

unread,
Mar 8, 2016, 1:19:43 PM3/8/16
to Android-x86
power management,display sleep,brightness,data usage,how to support ?

youling 257

unread,
Mar 12, 2016, 9:35:03 AM3/12/16
to Android-x86
power management,AXP288 ;Sound Card,alc5640 ; touchscreen,gsl3676

my tablet v891w FIG disassemble,like these
Message has been deleted

youling 257

unread,
Apr 13, 2016, 9:49:41 AM4/13/16
to Android-x86
https://github.com/zhaofengli/iwork8
Battery status

The device uses AXP288 as its PMIC. For some reason, the axp288_fuel_gauge driver isn't working (compile your own kernel with if you think you have better luck). You can, however, get the battery reading using i2cget, and feed it into the test_power module. I've made a script (scripts/battery.sh) to do that periodically.


在 2016年3月9日星期三 UTC+8上午2:19:43,youling 257写道:
Message has been deleted

Chih-Wei Huang

unread,
Apr 17, 2016, 12:51:19 AM4/17/16
to Android-x86
2016-04-13 23:24 GMT+08:00 youling 257 <youli...@gmail.com>:
> https://github.com/torvalds/linux/blob/master/drivers/power/axp288_fuel_gauge.c
> ,this may be helpful

Then please make it work and submit a patch.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

youling 257

unread,
Apr 17, 2016, 7:37:00 AM4/17/16
to Android-x86
Androidx86 kernel has axp288_fuel_gauge,now need battery.sh for Androidx86,https://github.com/zhaofengli/iwork8/blob/master/scripts/battery.sh

在 2016年4月17日星期日 UTC+8下午12:51:19,Chih-Wei Huang写道:

spin877

unread,
Apr 17, 2016, 1:41:48 PM4/17/16
to Android-x86

I propose a few changes
battery.sh

youling 257

unread,
Apr 17, 2016, 6:12:09 PM4/17/16
to Android-x86
how to use it on Androidx86 ?

在 2016年4月18日星期一 UTC+8上午1:41:48,spin877写道:
Message has been deleted

spin877

unread,
Apr 17, 2016, 6:29:39 PM4/17/16
to Android-x86
yes script in /system/bin/init.d/ and firstline #!/system/bin/sh

Il giorno lunedì 18 aprile 2016 00:15:57 UTC+2, youling 257 ha scritto:
cm13 has /system/bin/init.d,copy battery.sh to init.d folder ? and should #!/system/bin/sh 


在 2016年3月9日星期三 UTC+8上午2:19:43,youling 257写道:
power management,display sleep,brightness,data usage,how to support ?

youling 257

unread,
Apr 17, 2016, 7:09:46 PM4/17/16
to Android-x86
no /dev/i2c-dev,has /dev/i2c-0、1、2、…………i2c-12 ;no /sys/modules/test_power,has /sys/modules/i2c_dev

在 2016年4月18日星期一 UTC+8上午6:29:39,spin877写道:

youling 257

unread,
Apr 17, 2016, 7:10:00 PM4/17/16
to Android-x86
no /dev/i2c-dev,has /dev/i2c-0、1、2、…………i2c-12 ;no /sys/modules/test_power,has /sys/modules/i2c_dev

在 2016年4月18日星期一 UTC+8上午6:29:39,spin877写道:
yes script in /system/bin/init.d/ and firstline #!/system/bin/sh

spin877

unread,
Apr 17, 2016, 8:19:32 PM4/17/16
to Android-x86
you should build a kernel with

CONFIG_TEST_POWER=m
CONFIG_I2C_CHARDEV=m

set or m , or y, and the same


youling 257

unread,
Apr 18, 2016, 7:09:50 AM4/18/16
to Android-x86
how to use https://sourceforge.net/p/android-x86/kernel/ci/kernel-4.4/tree/  build a kernel with CONFIG_TEST_POWER=m,CONFIG_I2C_CHARDEV=m ?
在 2016年4月18日星期一 UTC+8上午8:19:32,spin877写道:

youling 257

unread,
May 8, 2016, 10:07:33 AM5/8/16
to Android-x86
you mean is edit android-x86_64_defconfig,paste CONFIG_TEST_POWER=m
CONFIG_I2C_CHARDEV=m?paste to what position ?

在 2016年4月18日星期一 UTC+8上午8:19:32,spin877写道:
you should build a kernel with

CONFIG_TEST_POWER=m
CONFIG_I2C_CHARDEV=m

youling 257

unread,
May 16, 2016, 1:16:36 AM5/16/16
to Android-x86
I notice
# CONFIG_GENERIC_ADC_BATTERY is not set
# CONFIG_TEST_POWER is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 is not set
# CONFIG_BATTERY_SBS is not set
# CONFIG_BATTERY_BQ27XXX is not set
# CONFIG_BATTERY_MAX17040 is not set

# CONFIG_TEST_POWER is not set, change to CONFIG_TEST_POWER=m,???

在 2016年5月8日星期日 UTC+8下午10:07:33,youling 257写道:

youling 257

unread,
Jun 4, 2016, 12:27:09 PM6/4/16
to Android-x86
android_x86_64_defconfig,need these,CONFIG_TEST_POWER=m,CONFIG_I2C_CHARDEV=m,CONFIG_RFKILL_GPIO=m
Reply all
Reply to author
Forward
0 new messages