Author Topic: GMenu2X battery indicator confusion (CFW 1.2)  (Read 2609 times)

m1024 (OP)

  • *
  • Posts: 107
GMenu2X battery indicator confusion (CFW 1.2)
« on: March 16, 2018, 04:25:44 pm »
My battery meter always shows 100% or 80% and obviously isn't working correctly. I updated to 1.2 with the full image and started with the default configuration.

1) Has anyone ever seen all values on his device (10/30/45/65/80/100% with CFW 1.2)?

2) Regarding battery calibration:
GMenu2x automatically updates minBattery/maxBattery values, that are used to calculate the current battery status (200/4500 on my device). Does someone have different values in gmenu2x.config?

3) A bit more technical (@Steward to the rescue!, code I'm referring to):

3.1) Isn't getBatteryStatus() reading the current voltage from "/proc/jz/battery"? Both of my min/max values don't seem to be realistic voltage values (200mV!?): Shouldn't this 3.7V battery be more like 3000mV min and 4200mV max?

3.2) Is the battery level calculation in line 2206 correct (levels should go from 0 to 5)?  ::)
quick test: min=3000, max=4500 and val=3100
level = val / ((max - min) / 5); // => 10 (current code)
level = (val - min) / ((max - min) / 5); // => 0 (expected result)
« Last Edit: March 16, 2018, 04:49:48 pm by m1024 »
Make sure to update your skins (PS4, PSNext, PSNextDark, OldBoy and Zelda) with the latest version from time to time:
https://boards.dingoonity.org/ingenic-jz4760-devices/low-res-skins-for-gmenu2x-oldboy-zelda/

kapster

  • *
  • Posts: 96
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #1 on: March 16, 2018, 04:34:26 pm »
I can at least confirm that I?ve never seen other values besides 100% and 80% (80 being a bar missing) but then I?ve only fully killed the battery once. Did you report this on the github?

m1024 (OP)

  • *
  • Posts: 107
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #2 on: March 16, 2018, 04:40:43 pm »
I just dug into the code as I wrote this post, so I didn't add an issue on github yet...
Make sure to update your skins (PS4, PSNext, PSNextDark, OldBoy and Zelda) with the latest version from time to time:
https://boards.dingoonity.org/ingenic-jz4760-devices/low-res-skins-for-gmenu2x-oldboy-zelda/

Jutleys

  • *** Moderator
  • Posts: 1707
    • Retrogamers97-90
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #3 on: March 16, 2018, 07:00:50 pm »
I did and apparently Steward has fixed the issue as i see a update on the github binary.

m1024 (OP)

  • *
  • Posts: 107
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #4 on: March 16, 2018, 07:15:04 pm »
@jutley Looks like Steward fixed the default config a few hours before I noticed this issue  :)

The battery level calculation could still be an issue if I did't get it completely wrong...  ::)
Make sure to update your skins (PS4, PSNext, PSNextDark, OldBoy and Zelda) with the latest version from time to time:
https://boards.dingoonity.org/ingenic-jz4760-devices/low-res-skins-for-gmenu2x-oldboy-zelda/

kapster

  • *
  • Posts: 96
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #5 on: March 16, 2018, 08:30:26 pm »
I did and apparently Steward has fixed the issue as i see a update on the github binary.

Are you sure that?s what the update is for? It looks like he only changed the min max in the conf file, not the issue described in this thread.


papapito

  • *
  • Posts: 21
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #7 on: March 17, 2018, 06:56:46 pm »
Seems like changing the .conf file does not solve the problem.


m1024 (OP)

  • *
  • Posts: 107
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #9 on: March 20, 2018, 10:11:11 am »
Opened a new issue on github.

If anyone is curious: After a full charge/discharge I read my values from gmenu2x.conf with Glutexto: min=3260mV, max=4500mV. Both values are higher than I expected, but I'm no electrician either :)
Make sure to update your skins (PS4, PSNext, PSNextDark, OldBoy and Zelda) with the latest version from time to time:
https://boards.dingoonity.org/ingenic-jz4760-devices/low-res-skins-for-gmenu2x-oldboy-zelda/

Steward

  • *
  • Posts: 149
    • Steward's tutorial website
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #10 on: March 20, 2018, 11:38:15 am »
Fixed.

kindly help to test it
Thanks @m1024x

https://github.com/steward-fu/gh_retrogame_binary

Thanks
Steward Fu

naranjamax

  • *
  • Posts: 12
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #11 on: March 20, 2018, 02:40:57 pm »
Thanks Steward! How do I install this?
« Last Edit: March 20, 2018, 07:53:25 pm by naranjamax »
Handhelds:
Rs-97 (OpenDigux)
Gameboy Micro
PAP-KIII plus
RS-90
PS Vita

Steward

  • *
  • Posts: 149
    • Steward's tutorial website
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #12 on: March 20, 2018, 03:48:14 pm »
1. download "gmenu2x/gmenu2x" from binary github(https://github.com/steward-fu/gh_retrogame_binary/blob/master/gmenu2x/gmenu2x) and then overwritten to "/mnt/game/gmenu2x/gmenu2x"
2. change maxBattery=0, minBattery=4500 in "/mnt/game/gmenu2x/gmenu2x.conf"
3. fully charge
4. fully discharge

Thanks
Steward Fu

Zockeromi

  • *
  • Posts: 41
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #13 on: March 21, 2018, 04:43:22 am »
Nice!
Does it work for the first firmware as well?
Where exactly do you change the settings?
Run the config file and do so, or is there a kind of editor in the command app?

m1024 (OP)

  • *
  • Posts: 107
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #14 on: March 21, 2018, 06:53:12 am »
Where exactly do you change the settings?

You can use Glutexto to read and edit the min and max values in gmenu2x.config.
If you set maxBattery=0 and minBattery=4500, both values will automatically be updated with your own real values when you charge and discharge.

My values were set to minBattery=3260 and maxBattery=4500. If you still have the default battery, your values should be similar.
Make sure to update your skins (PS4, PSNext, PSNextDark, OldBoy and Zelda) with the latest version from time to time:
https://boards.dingoonity.org/ingenic-jz4760-devices/low-res-skins-for-gmenu2x-oldboy-zelda/

papapito

  • *
  • Posts: 21
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #15 on: March 21, 2018, 10:27:53 pm »
Just tested the fix.
Fully charged and then fully discharged the battery. After a new full charge the values in .conf stabilized at min=3600 and max=4500.
The battery indicator now works properly too!


Zockeromi

  • *
  • Posts: 41
GMenu2X battery indicator confusion (CFW 1.2)
« Reply #17 on: March 24, 2018, 06:50:38 am »


Can i use the fix for cfw 0.12 as well?

Is it really max 0 or should it be min 0 ?
« Last Edit: March 24, 2018, 08:57:53 am by Zockeromi »

Princebatman

  • *
  • Posts: 193
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #18 on: March 24, 2018, 12:56:19 pm »
Just to clarify, this is simply cosmetic?  It doesn't effect battery usage time?

m1024 (OP)

  • *
  • Posts: 107
Re: GMenu2X battery indicator confusion (CFW 1.2)
« Reply #19 on: March 24, 2018, 10:20:59 pm »
You could say it's cosmetic only, but knowing (kind of...) if your battery is 85% or 10% should be useful :-)

Here is what I did to get min and max values:
- reset min to 4500 or 5000 and max to 0 via Glutexto
- charge it until the red light goes off (device switched off)
- disconnect cable and give GMenu a few seconds to update max (can be checked in glutexto)
- start a game/emu to completely drain the battery (device shuts down, doom demo play works great)
- charge it for a short moment until you can turn it on
- disconnect cable and let GMenu update the min value *

* Just draining the battery while playing a game and charging it, does not update the min value!
Using this procedure should at least give the correct min value.
Make sure to update your skins (PS4, PSNext, PSNextDark, OldBoy and Zelda) with the latest version from time to time:
https://boards.dingoonity.org/ingenic-jz4760-devices/low-res-skins-for-gmenu2x-oldboy-zelda/

 

Post a new topic
Post a new topic