From: bugzilla-daemon@kernel.org
To: linux-usb@vger.kernel.org
Subject: [Bug 215799] apple-mfi-fastcharge causes automatic pm hibernation entry, when iPhone gets attached
Date: Wed, 06 Apr 2022 01:56:33 +0000 [thread overview]
Message-ID: <bug-215799-208809-A133p9a2QE@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-215799-208809@https.bugzilla.kernel.org/>
https://bugzilla.kernel.org/show_bug.cgi?id=215799
Manuel Ullmann (labre@posteo.de) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX
--- Comment #4 from Manuel Ullmann (labre@posteo.de) ---
(In reply to Oliver Neukum from comment #2)
> Working theory:
>
> You are misinterpreting the system's reaction. The hibernation is not done
> automatically by the kernel. Instead the kernel reports a charger as a
> battery. That battery, being a charger, reports a charge of zero. User space
> monitors this and does as it should if its only known power source is a
> battery at zero charge: it hibernates the system.
Your theory is correct. The laptop-mode-tools auto-hibernation facility causes
the hibernation. This happens even with the patch, because laptop-mode-tools
fails to check, whether a battery has battery-like nodes or whether there are
just chargers in /sys/class/power_supply. [1]
> Please test this patch
Thank you for looking into this and for the patch. laptop-mode-tools is in
Bash, so I can send the PR myself. It would be nice, if it could be backported,
since it fixes a bug, but laptop-mode-tools could also use a better check for
battery nodes.
[1]:
https://github.com/rickysarraf/laptop-mode-tools/blob/25496b668d597f947a7d65e7c2d4712e8f77692e/usr/sbin/laptop_mode#L486
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
next prev parent reply other threads:[~2022-04-06 13:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-04 22:22 [Bug 215799] New: apple-mfi-fastcharge causes automatic pm hibernation entry, when iPhone gets attached bugzilla-daemon
2022-04-04 22:23 ` [Bug 215799] " bugzilla-daemon
2022-04-05 8:26 ` bugzilla-daemon
2022-04-05 9:42 ` bugzilla-daemon
2022-04-06 1:56 ` bugzilla-daemon [this message]
2022-04-06 8:47 ` bugzilla-daemon
2022-04-06 20:17 ` bugzilla-daemon
2022-04-07 11:13 ` bugzilla-daemon
2022-04-07 18:09 ` bugzilla-daemon
2022-04-07 21:03 ` bugzilla-daemon
2022-04-07 22:10 ` bugzilla-daemon
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=bug-215799-208809-A133p9a2QE@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@kernel.org \
--cc=linux-usb@vger.kernel.org \
/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 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.