From: Pavel Machek <pavel@ucw.cz> To: Tony Lindgren <tony@atomide.com> Cc: pali.rohar@gmail.com, sre@kernel.org, kernel list <linux-kernel@vger.kernel.org>, linux-arm-kernel <linux-arm-kernel@lists.infradead.org>, linux-omap@vger.kernel.org, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com Subject: Re: [RFC] shutdown machine when li-ion battery goes below 3V Date: Mon, 24 Oct 2016 23:41:52 +0200 [thread overview] Message-ID: <20161024214152.GA32310@amd> (raw) In-Reply-To: <20161024212932.uhjz752z2cy5hohl@atomide.com> [-- Attachment #1: Type: text/plain, Size: 1054 bytes --] On Mon 2016-10-24 14:29:33, Tony Lindgren wrote: > * Pavel Machek <pavel@ucw.cz> [161024 14:24]: > > Hi! > > > > What about something like this? N900 will drain the battery down to > > system crash, which is quite uncool. > > Can't we make that generic and configurable for the voltage somehow? I was afraid someone would ask :-). Yes, we probably need to create battery object in the device tree, then add properties there. > Also, the shutdown voltage can depend on external devices connected. > It could be for example 3.3V depending on eMMC on some devices while > devices with no eMMC could have it at 3.0V. Actually, I'd like to shutdown at 3.3V or more (like 3.5V), because going below that is pretty mean to the battery. But if I set threshold too high, GSM activity will push it below that for a very short while, and I'll shutdown too soon. Ideas welcome... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 181 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: pavel@ucw.cz (Pavel Machek) To: linux-arm-kernel@lists.infradead.org Subject: [RFC] shutdown machine when li-ion battery goes below 3V Date: Mon, 24 Oct 2016 23:41:52 +0200 [thread overview] Message-ID: <20161024214152.GA32310@amd> (raw) In-Reply-To: <20161024212932.uhjz752z2cy5hohl@atomide.com> On Mon 2016-10-24 14:29:33, Tony Lindgren wrote: > * Pavel Machek <pavel@ucw.cz> [161024 14:24]: > > Hi! > > > > What about something like this? N900 will drain the battery down to > > system crash, which is quite uncool. > > Can't we make that generic and configurable for the voltage somehow? I was afraid someone would ask :-). Yes, we probably need to create battery object in the device tree, then add properties there. > Also, the shutdown voltage can depend on external devices connected. > It could be for example 3.3V depending on eMMC on some devices while > devices with no eMMC could have it at 3.0V. Actually, I'd like to shutdown at 3.3V or more (like 3.5V), because going below that is pretty mean to the battery. But if I set threshold too high, GSM activity will push it below that for a very short while, and I'll shutdown too soon. Ideas welcome... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20161024/eff01459/attachment-0001.sig>
next prev parent reply other threads:[~2016-10-24 21:41 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-10-24 21:22 [RFC] shutdown machine when li-ion battery goes below 3V Pavel Machek 2016-10-24 21:22 ` Pavel Machek 2016-10-24 21:29 ` Tony Lindgren 2016-10-24 21:29 ` Tony Lindgren 2016-10-24 21:41 ` Pavel Machek [this message] 2016-10-24 21:41 ` Pavel Machek 2016-10-24 21:48 ` Pali Rohár 2016-10-24 21:48 ` Pali Rohár 2016-10-25 10:24 ` Pavel Machek 2016-10-25 10:24 ` Pavel Machek 2016-10-25 10:53 ` Pali Rohár 2016-10-25 10:53 ` Pali Rohár 2016-10-25 10:56 ` Pavel Machek 2016-10-25 10:56 ` Pavel Machek 2016-10-25 10:57 ` Pali Rohár 2016-10-25 10:57 ` Pali Rohár 2016-10-25 11:27 ` Pavel Machek 2016-10-25 11:27 ` Pavel Machek 2016-10-25 11:54 ` Pali Rohár 2016-10-25 11:54 ` Pali Rohár 2016-10-25 19:18 ` Olaf Titz
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=20161024214152.GA32310@amd \ --to=pavel@ucw.cz \ --cc=aaro.koskinen@iki.fi \ --cc=abcloriens@gmail.com \ --cc=ivo.g.dimitrov.75@gmail.com \ --cc=khilman@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-omap@vger.kernel.org \ --cc=pali.rohar@gmail.com \ --cc=patrikbachan@gmail.com \ --cc=serge@hallyn.com \ --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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.