From: Pavel Machek <pavel@ucw.cz>
To: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Cc: kernel list <linux-kernel@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-omap@vger.kernel.org, tony@atomide.com, sre@kernel.org,
nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org,
martin_rysavy@centrum.cz, phone-devel@vger.kernel.org,
maemo-leste@lists.dyne.org
Subject: Re: Motorola Droid 4 -- Stopping charger when battery is full
Date: Thu, 13 Apr 2023 11:34:13 +0200 [thread overview]
Message-ID: <ZDfMlfVDdSm8mXs0@duo.ucw.cz> (raw)
In-Reply-To: <ef4409b2-abd8-0eac-f66e-6858c3358cc1@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1451 bytes --]
Hi!
> > I complained that "battery life is very poor" with leste. It seems to
> > be combination of several factors.
> >
> > 1) I was using very old battery
> >
> > 2) My charger is detected as "USB", not as "AC"
> >
>
> And this is because there is no working charger detection in the driver, so
> initial current limit is hard-coded to 500mA.
Aha, thanks, makes sense.
> > According to my measurements "CPCAP_REG_CRM_FET_OVRD |
> > CPCAP_REG_CRM_FET_CTRL" results in battery discharding and 0A drawn
> > frmo the USB. "CPCAP_REG_CRM_FET_OVRD" is phone powered from USB,
> > with battery more or less disconnected (<12mA), which is what we want
> > in battery full situation.
> >
>
> What will happen if phone needs to draw more than N mA (N is the set charger
> current limit)?
We may run over the limit, AFAICT. I guess one solution would be to
only do this when limit is high enough...
With current setup, phone will not boot if battery is empty, so this
needs quite urgent solution.
I updated my leste, and now have:
user@devuan-droid4:~/g/droid4-linux$ uname -a
Linux devuan-droid4 6.1.9 #1 SMP PREEMPT Mon Mar 20 15:16:53 UTC 2023 armv7l GNU/Linux
user@devuan-droid4:~/g$ apt show linux-image-omap
Package: linux-image-omap
Version: 6.1.8.0-1+m7
Where can I find corresponding sources?
Best regards,
Pavel
--
People of Russia, stop Putin before his war on Ukraine escalates.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-04-13 9:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-07 12:36 Motorola Droid 4 -- Stopping charger when battery is full Pavel Machek
2023-03-07 14:10 ` Ivaylo Dimitrov
2023-03-09 7:14 ` Tony Lindgren
2023-04-13 9:37 ` Pavel Machek
2023-04-13 9:45 ` Tony Lindgren
2023-04-13 9:34 ` Pavel Machek [this message]
2023-04-13 14:41 ` Ivaylo Dimitrov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZDfMlfVDdSm8mXs0@duo.ucw.cz \
--to=pavel@ucw.cz \
--cc=ivo.g.dimitrov.75@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=maemo-leste@lists.dyne.org \
--cc=martin_rysavy@centrum.cz \
--cc=merlijn@wizzup.org \
--cc=mpartap@gmx.net \
--cc=nekit1000@gmail.com \
--cc=phone-devel@vger.kernel.org \
--cc=sre@kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).