Re: [shr-testing] Forcing fast charge mode
> With the current setup I get this error from the script: File not found: > /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/chgmode! > my guess would be this may be where it should be pointed to the voltage_now > file because everything else I was able to match up, but again I'm not quite > sure about this. http://wiki.openmoko.org/wiki/GTA02_sysfs#.2Fsys.2Fdevices.2Fplatform.2Fs3c2440-i2c.2Fi2c-adapter.2Fi2c-0.2F0-0073.2Fchgmode says that chgmode used to tell if the phone is charging or not. I think status also tells you exactly the same thing. You can cat /sys/class/power_supply/battery/status to verify that. --Vikas ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [shr-testing] Forcing fast charge mode
On Thursday 21 May 2009 06:26:46 pm Vikas Saurabh wrote: > Check out > http://wiki.openmoko.org/wiki/GTA02_sysfs#GTA02_Kernel_sysfs_highlights_for >_kernel_2.6.28. specifically: >charger_type = > "/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/chg_curlim" #limit > that freerunner would accept >capacity = "/sys/class/power_supply/battery/capacity" >voltage = "/sys/class/power_supply/battery/voltage_now" >status = "/sys/class/power_supply/battery/status" >image_dir = "/usr/share/battery/" >usb_limit = > "/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/usb_curlim" #current that > is actually coming The only thing I wasn't able to quite figure out where it when is the voltage, here is the current configuration for the bash script, hopefully someone here will be able to tell where it goes and double checks this script before any phones get killed by bad settings: # SYS-Files and other settings # pmu_chgmode: tells what the charger status is (eg. "fast") # pmu_chgtype: tells in which charge mode we are currently running # pmu_chgstate: tells the charget state (what charger is detected) # pmu_curlim:tells us the current charge limit # pmu_chgfile: enables us to supply an override charge mode # bat_status:tells us the current status of the battery (if its charging etc) # bat_capacity: current capacity of the battery # bat_tech: technology of the battery, "Li-ion" for fics standard battery # bat_present: 1 if a battery is in place, 0 if not # bat_ttf & bat_tte: Time to full and time to empty pmu_chgmode="/sys/devices/platform/s3c2440-i2c/i2c- adapter/i2c-0/0-0073/chgmode" pmu_chgtype="/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/chg_curlim" pmu_chgstate="/sys/devices/platform/s3c2440-i2c/i2c- adapter/i2c-0/0-0073/chgstate" pmu_curlim="/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/usb_curlim" pmu_chgfile="/sys/devices/platform/s3c2440-i2c/i2c- adapter/i2c-0/0-0073/force_usb_limit_dangerou bat_status="/sys/class/power_supply/battery/status" bat_capacity="/sys/class/power_supply/battery/capacity" bat_tech="/sys/devices/platform/bq27000-battery.0/power_supply/bat/technology" bat_present="/usr/share/battery/" bat_ttf="/sys/devices/platform/bq27000- battery.0/power_supply/bat/time_to_full_now" bat_tte="/sys/devices/platform/bq27000- battery.0/power_supply/bat/time_to_empty_now" With the current setup I get this error from the script: File not found: /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/chgmode! my guess would be this may be where it should be pointed to the voltage_now file because everything else I was able to match up, but again I'm not quite sure about this. -- "We must plan for freedom, and not only for security, if for no other reason than only freedom can make security more secure." Karl Popper signature.asc Description: This is a digitally signed message part. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [shr-testing] Forcing fast charge mode
Check out http://wiki.openmoko.org/wiki/GTA02_sysfs#GTA02_Kernel_sysfs_highlights_for_kernel_2.6.28. specifically: charger_type = "/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/chg_curlim" #limit that freerunner would accept capacity = "/sys/class/power_supply/battery/capacity" voltage = "/sys/class/power_supply/battery/voltage_now" status = "/sys/class/power_supply/battery/status" image_dir = "/usr/share/battery/" usb_limit = "/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/usb_curlim" #current that is actually coming I have attached a modified battery.py for the http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode#The_battery_package. I don't know how to make the package so I guess someone might help here :). BTW, I don't know python...I have updated it by copying the code...so it would be great if someone reviews it before packaging. Moreover, once the information is confirmed we can update http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode with exact paths as well --Vikas > http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode#Beni.27s_fast_charge_gta02.sh > it says that "The /sys paths need to be updated for recent distributions" what > does that mean? If simply editing the shell script will get it working again > I will be happy to do it if I knew what that means. battery.py Description: Binary data ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [shr-testing] Forcing fast charge mode
On Thursday 21 May 2009 06:15:33 am Risto H. Kurppa wrote: > On Thu, May 21, 2009 at 1:06 PM, Leonardo de Virgilio > > wrote: > > Great link r.h.k.!! > > I've waited for fast-charging mode on new kernel for months!! > > I'll try today ;) > > It'd be great if someone had the energy to update > http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode#The_battery_package > - it's a great tool to manage the recharge status & monitor the > charging. it's only a simple .py with the paths nicely listed -> not > too hard to do but a package would be nice (or just a new .py with > updated paths) > There is already a thread about this yay! Anyways I stumbled upon that page and I thought that it would come in handy, I am about to go on a trip and being able to for my FR to pull more power through USB would be handy. Am I correct in understanding that the solutions on this page are currently broken, take this one for example http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode#Beni.27s_fast_charge_gta02.sh it says that "The /sys paths need to be updated for recent distributions" what does that mean? If simply editing the shell script will get it working again I will be happy to do it if I knew what that means. -- "We must plan for freedom, and not only for security, if for no other reason than only freedom can make security more secure." Karl Popper signature.asc Description: This is a digitally signed message part. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [shr-testing] Forcing fast charge mode
On Thu, May 21, 2009 at 6:15 AM, Risto H. Kurppa wrote: > On Thu, May 21, 2009 at 1:06 PM, Leonardo de Virgilio > wrote: >> Great link r.h.k.!! >> I've waited for fast-charging mode on new kernel for months!! >> I'll try today ;) >> > > It'd be great if someone had the energy to update > http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode#The_battery_package > - it's a great tool to manage the recharge status & monitor the > charging. it's only a simple .py with the paths nicely listed -> not > too hard to do but a package would be nice (or just a new .py with > updated paths) > > r I agree, the battery package is quite nice. Though if you are just looking for fast-charge control for when using dumb chargers, the basics have already been added to the Battery module for shr-settings. It's in the git repo [1], and potentially buggy, but I was running it fine with my car charger all weekend on a road trip. Just replace the existing file in /usr/lib/python2.6/site-packages/shr_settings_modules/ and restart shr-settings. Beware: it may upset your cat, not work, or attract polar bears so use with understanding, and backup your original before overwriting [1] http://git.shr-project.org/git/?p=shr-settings.git;a=blob_plain;f=shr_settings_modules/shr_battery.py;hb=HEAD ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [shr-testing] Forcing fast charge mode
I don't want to say that before trying I was sceptic, but now I can confirm: I've tried, IT WORKS!! :D My personal way to make it handly, is creating a .desktop file in /usr/share/applications with the "exec" like the before mentioned command. I think this should be inserted (without difficulty) as a "button" in SHR power-menu. Thanks again :D 2009/5/21 Risto H. Kurppa > On Thu, May 21, 2009 at 11:35 AM, Vikas Saurabh > wrote: > > > > > > On Wed, May 20, 2009 at 5:09 PM, Vikas Saurabh > wrote: > >> > >> I have recently flashed shr-testing and was wondering if the fast charge > information available here [ > http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode] is still usable? > Or is there some FSO API that I have missed? > > I just updated it yesterday, the apps there use old paths -> don't > work. The paths to use now are listed in > > http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode#OM2009_.26_Freerunner > - I'd think SHR uses the same.. > > Feel free to update the apps to work.. > > r > > > > > -- > | risto h. kurppa > | risto at kurppa dot fi > | http://risto.kurppa.fi > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [shr-testing] Forcing fast charge mode
On Thu, May 21, 2009 at 1:06 PM, Leonardo de Virgilio wrote: > Great link r.h.k.!! > I've waited for fast-charging mode on new kernel for months!! > I'll try today ;) > It'd be great if someone had the energy to update http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode#The_battery_package - it's a great tool to manage the recharge status & monitor the charging. it's only a simple .py with the paths nicely listed -> not too hard to do but a package would be nice (or just a new .py with updated paths) r -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [shr-testing] Forcing fast charge mode
Great link r.h.k.!! I've waited for fast-charging mode on new kernel for months!! I'll try today ;) 2009/5/21 Risto H. Kurppa > On Thu, May 21, 2009 at 11:35 AM, Vikas Saurabh > wrote: > > > > > > On Wed, May 20, 2009 at 5:09 PM, Vikas Saurabh > wrote: > >> > >> I have recently flashed shr-testing and was wondering if the fast charge > information available here [ > http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode] is still usable? > Or is there some FSO API that I have missed? > > I just updated it yesterday, the apps there use old paths -> don't > work. The paths to use now are listed in > > http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode#OM2009_.26_Freerunner > - I'd think SHR uses the same.. > > Feel free to update the apps to work.. > > r > > > > > -- > | risto h. kurppa > | risto at kurppa dot fi > | http://risto.kurppa.fi > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [shr-testing] Forcing fast charge mode
On Thu, May 21, 2009 at 11:35 AM, Vikas Saurabh wrote: > > > On Wed, May 20, 2009 at 5:09 PM, Vikas Saurabh > wrote: >> >> I have recently flashed shr-testing and was wondering if the fast charge >> information available here >> [http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode] is still usable? Or >> is there some FSO API that I have missed? I just updated it yesterday, the apps there use old paths -> don't work. The paths to use now are listed in http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode#OM2009_.26_Freerunner - I'd think SHR uses the same.. Feel free to update the apps to work.. r -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [shr-testing] Forcing fast charge mode
On Wed, May 20, 2009 at 5:09 PM, Vikas Saurabh wrote: > > I have recently flashed shr-testing and was wondering if the fast charge > information available here > [http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode] is still usable? Or > is there some FSO API that I have missed? > > --Vikas ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[shr-testing] Forcing fast charge mode
I have recently flashed shr-testing and was wondering if the fast charge information available here [ http://wiki.openmoko.org/wiki/Forcing_fast_charge_mode] is still usable? Or is there some FSO API that I have missed? --Vikas ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community