xtcian / currentwidget

Automatically exported from code.google.com/p/currentwidget
0 stars 0 forks source link

Does not work on SGS2 #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Install Currentwidget
2.Enable the logfile
3.Place the widget somewhere
4.See that it displays <no data>
5.Let it run for a day
6.See that it still displays <no data>
7.Open Currentwidget
8.Click on 'Analyze Log' and get 'No log data'
9.Click on 'View Log as Graph' and get an empty graph
10.Click on 'View Log' and see a huge logfile

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Product: I don't know, there is no 'About' item in the menu
SGS2 stock, with root ed Kernel: Android version 2.3.3, Kernel 2.6.35.7, 
Gingerbread.XWKE2

Please provide any additional information below.

Original issue reported on code.google.com by markus.b...@gmail.com on 18 Aug 2011 at 9:12

GoogleCodeExporter commented 8 years ago
Experiencing the same issue on a stock SGS.

Running version 0.31 of CurrentWidget.
Running stock Samsung ROM (FROYO.UGKC1) on SGS.

Original comment by bradford...@gmail.com on 22 Aug 2011 at 3:48

GoogleCodeExporter commented 8 years ago
Samsung devices don't export the electric current info in the battery driver. 
Nothing I can do about it.

Original comment by ran.ma...@gmail.com on 22 Aug 2011 at 4:14

GoogleCodeExporter commented 8 years ago
I see, here what you can see in /sys about the battery. Nothing about the 
current...

# pwd
/sys/devices/platform/sec-battery/power_supply/battery
# for i in $(ls); do echo -n "$i:";cat $i; done
uevent:POWER_SUPPLY_NAME=battery
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TEMP=410
POWER_SUPPLY_ONLINE=1
POWER_SUPPLY_VOLTAGE_NOW=3905625
POWER_SUPPLY_CAPACITY=77
POWER_SUPPLY_TECHNOLOGY=Li-ion
subsystem:subsystem: invalid length
device:device: invalid length
status:Charging
health:Good
present:1
online:1
technology:Li-ion
voltage_now:3905625
capacity:77
temp:410
type:Battery
power:power: invalid length
batt_vol:3928750
batt_soc:76
batt_vfocv:3970
batt_temp:410
batt_temp_adc:661
batt_temp_adc_avg:724
charging_source:1
batt_lp_charging:0
video:0
mp3:0
batt_type:SDI_SDI
batt_full_check:0
batt_temp_check:1
batt_temp_adc_spec:(HIGH: 65 - 43,   LOW: -3 - 0)
batt_test_value:0-normal, 1-full, 2-low, 3-high, 4-over, 5-cf (0)
batt_current_adc:0
system_rev:14
fg_psoc:75
batt_lpm_state:batt_lpm_state: invalid length

Original comment by markus.b...@gmail.com on 22 Aug 2011 at 5:04

GoogleCodeExporter commented 8 years ago
Yes, that's the problem...

Original comment by ran.ma...@gmail.com on 22 Aug 2011 at 5:13

GoogleCodeExporter commented 8 years ago
OK, so I'll have to be patient until another ROM comes out with a driver 
volounteering more information (maybe cyanogenmod, when it comes out).

The battery consumption display in Settings - Applications - Battery usage, 
where does it gets its data from ?

Original comment by markus.b...@gmail.com on 22 Aug 2011 at 5:31

GoogleCodeExporter commented 8 years ago
That's a good question but in any case - I don't see current values in the 
battery usage screen.

Original comment by ran.ma...@gmail.com on 24 Aug 2011 at 8:02

GoogleCodeExporter commented 8 years ago
Yes, there are no current values, but percentage of energy used per 
application. As energy use and current are linked one could deduce one from the 
other.

Original comment by markus.b...@gmail.com on 24 Aug 2011 at 8:17

GoogleCodeExporter commented 8 years ago
https://github.com/Entropy512/linux_kernel_sgh-i777/commit/a1a44c90a91e01c0f98bb
a21688759278646f79a - Requires results to be divided by 2.85 (I chose to stick 
with configuring the app to divide rather than divide in-kernel.)

Charge current only - no Galaxy S or S2 can report discharge current as far as 
I am aware.  (Exception being Snapdragon-based S2s, which aren't really S2s.)

Original comment by atd...@gmail.com on 2 Feb 2012 at 1:58

GoogleCodeExporter commented 8 years ago
thanks for the update atdodd.
if this value is written to /sys/class/power_supply/batt_chg_current, then it 
should work with the current version of CurrentWidget.
you can also divide by 2.85 in currentwidget options.
let me know if there are any problems.
thanks.

Original comment by ran.ma...@gmail.com on 2 Feb 2012 at 2:09

GoogleCodeExporter commented 8 years ago
In previous versions it used to report charge current on the Samsung Epic 4G 
but no long does - "no data."  I see the explanation is that the hardware does 
not report charge current, but it used to.  Current draw is useful since it 
tells you the charge rate of different chargers, which vary widely in their 
current.

Did this change with Android version?

Original comment by georgeha...@gmail.com on 21 Sep 2012 at 11:52

GoogleCodeExporter commented 8 years ago
could be that they changed something in the kernel..

Original comment by ran.ma...@gmail.com on 22 Sep 2012 at 3:03

GoogleCodeExporter commented 8 years ago
Is it still not working with the S2? Android version 4.0.4

Original comment by zmatko...@gmail.com on 6 Feb 2013 at 1:28

GoogleCodeExporter commented 8 years ago
The Galaxy S2 (and most Samsung devices, actually) doesn't report the electric 
current value in the battery driver. It might be a hardware issue or just some 
design choice by Samsung. There's nothing I can do about it.

Original comment by ran.ma...@gmail.com on 6 Feb 2013 at 7:56

GoogleCodeExporter commented 8 years ago
If Samsung doesn,t report the electric current value in the battery driver so 
how it is possible that Battery Monitor Widget  show current power consumtion 
in mA???

Original comment by ma.prusz...@gmail.com on 9 Feb 2013 at 6:39

GoogleCodeExporter commented 8 years ago
Battery Monitor Widget estimates the mA values if it's not in the battery 
driver, so I it shows the estimates.

I guess it might be that the author has figured out a way to read the mA value 
in the Galaxy S2, but since his app isn't open source then I can't know for 
sure.

I don't have a Galaxy S2 but every user that looked for a current file couldn't 
find one.

Original comment by ran.ma...@gmail.com on 9 Feb 2013 at 7:17