Bug 2121844
Summary: | Battery percentage gets stuck at a certain level (asus_ec_sensors locks ACPI mutex) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Burak Dede <burak.dede.03> | ||||||
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 36 | CC: | acaringi, adscvr, airlied, alciregi, artem.silenkov, bskeggs, hdegoede, hpa, jarodwilson, jglisse, jonathan, josef, kernel-maint, kparal, lgoncalv, linville, masami256, mchehab, ptalbert, py0xc3, steved | ||||||
Target Milestone: | --- | Keywords: | CommonBugs | ||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | https://ask.fedoraproject.org/t/common-issues/26119 | ||||||||
Fixed In Version: | kernel-5.19.9-200.fc36 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2022-09-17 12:34:10 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Burak Dede
2022-08-26 19:54:38 UTC
I have tried Rawhide kernel (6.0.0-0.rc2.20220826git4c612826bec1.22.fc38) and it didn't work either. Restarting upower service and reinstalling upower didn't help. Seems like the issue caused after this commit in upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.0-rc3&id=de8fbac5e59e239b00cdac611784b1bc1ff53d14 Blacklisting asus_ec_sensors module helps with the issue. I also think the discussion here can help you finding the root cause: https://bbs.archlinux.org/viewtopic.php?id=278933&p=4 Created attachment 1909318 [details]
Kernel logs of user while experiencing this issue
At ask.fedoraproject.org, we have currently at least three cases of the issue, although the symptoms are not equal to Burak. One user has a kernel that is NOT tainted (his `cat /proc/sys/kernel/tainted` = 0) and he provided his kernel logs. I have attached the output of his `journalctl --no-hostname -k > dmesg.txt` he retrieved while experiencing the issue as "Kernel logs of user while experiencing this issue". The user has a erratic battery power percentage and suspend does only work when doing it manually, but not when closing the lid. Blacklisting asus_ec_sensors solves the issues at his machine. The related topic is https://ask.fedoraproject.org/t/battery-indicator-not-working-properly/25946 Good work on figuring out that this is caused by asus_ec_sensors ! Has anyone already reported this to the asus_ec_sensors maintainers? Quoting from the kernel's MAINTAINERS file: ASUS WMI EC HARDWARE MONITOR DRIVER M: Eugene Shalygin <eugene.shalygin> M: Denis Pauk <pauk.denis> L: linux-hwmon.org S: Maintained F: drivers/hwmon/asus_wmi_ec_sensors.c Ugh, wrong driver, sorry. Here is the MAINTAINERS entry for the right one: ASUS EC HARDWARE MONITOR DRIVER M: Eugene Shalygin <eugene.shalygin> L: linux-hwmon.org S: Maintained F: drivers/hwmon/asus-ec-sensors.c Please report this to: Eugene Shalygin <eugene.shalygin>, with linux-hwmon.org and regressions.dev in the Cc. I reported it. Eugene suggested to try the second patch of https://bugzilla.kernel.org/show_bug.cgi?id=216412 on affected systems to see if it fixes this bug as well. I don't know if one of the users is willing to test this on their systems (I forwarded the request to the users, see the ask.fedora topic I mentioned above). However, it might be observed if the issue disappears when the patch ends up in the kernel, just in case we cannot test the patch directly. Same hardware\software versions. Blacklisting asus-ec-sensors fixes the issue. Upstream kernel discussion: https://lore.kernel.org/all/166ca420-27a0-a86d-8d1d-e20a87d62cd4@my.mail.de/T/ "Common issue" with workaround and explanation for users: https://ask.fedoraproject.org/t/false-output-of-battery-charge-conditions-and-failure-of-automatic-suspending/26119 Kernel 5.19.9 seems to fix the issue. Currently testing it. Thanks for your interest. The fixing commit: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.19.y&id=7d40396e6d7374e1c8bfb9dd3a1146f69375b96b I don't know if I should close this bug or it needs other confirmation. Leaving it open for now. Thank you for reporting that this has been fixed. I don't believe it is very useful to keep this bug open, so lets close this. I update the workaround in common issues once the kernel is pushed to stable. (In reply to Christopher Klooz from comment #16) > I update the workaround in common issues once the kernel is pushed to stable. Great, thank you! |