On Mon, 20 Jun 2011 12:07:16 -0500 Jeff Hoogland <[email protected]> said:
you'll need more debuging. first.. e's own batget scans the whole /sys/class/power_supply/ dir and looks for ALL things that have the "type" file say "Battery" so what does type say?: /sys/class/power_supply/*/type ? then it checks for lots of other info to see that its correct. if it doesnt say its a battery you already fail at step 1. now.. does "present" say "1"? ie "it's present" ? in fact it simply has to say some number OTHER than 0. does it? look at batget.c.. i can go read out al lthe logic to you from there... but just look at linux_sys_class_power_supply_sysev_init() and linux_sys_class_power_supply_check (). other than that... looks like you have something that provides only charge_now and no other charge info (like charge_full and charge_full_design). so if its getting past the is battery and present checks... its going to have to choose to use current, voltage, energy or charge modes to determine capacity. it seems you have some voltage info like voltage_avg and voltage_max_design and voltage_now. batget is expecting volate_full or voltage_full_design... actually having a look at some docs this seems wrong. it should look for voltage_max not voltage_full but since it wouldnt get the basis right.. the capacity fallback thing doesnt quite work... :) i can fix it.. but cant test it. see svn commit to bat. > So the E battery module is not working with my tablet computer. This little > hack does show power correctly though: > > http://dev.openaos.org/wiki/Debian%20gen8#a10Batterymonitor > > I've tried automatic, internal, and udev - they all fail. Did some debugging > with devilhorns and here are the contents of my system power directories: > > *root@archosgen8:/media/sda5/Bodhi/e17_debs/20110620# ls > /sys/class/power_supply > ac battery usb > root@archosgen8:/media/sda5/Bodhi/e17_debs/20110620# ls > /sys/class/power_supply/battery > capacity device power status technology type voltage_avg > voltage_min_design > charge_now health present subsystem temp uevent > voltage_max_design voltage_now > * > Any help/input would be awesome. > -- > ~Jeff Hoogland <http://jeffhoogland.com/> > Thoughts on Technology <http://jeffhoogland.blogspot.com/>, Tech Blog > Bodhi Linux <http://bodhilinux.com/>, Enlightenment for your Desktop > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > enlightenment-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ enlightenment-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-users
