Fedora Account System
Red Hat Associate
Red Hat Customer
Battery charge threshold for ASUS Vivobook S14 M5406KA stopped working in kernel 7.1.3 1. Please describe the problem: Under GNOME settings, the "Preserve Battery Health" option is gone when using kernel 7.1.3. This is with an ASUS Vivobook S14 M5406KA. Running "cat /sys/class/power_supply/BAT*/charge_control_end_threshold" returns "cat: /sys/class/power_supply/BAT1/charge_control_end_threshold: No data available". However, when running the same command using kernel 7.0.14, it properly returns a value of 80. The "Preserve Battery Health" GNOME settings option is also present under kernel 7.0.14. 2. What is the Version-Release number of the kernel: 7.1.3-200.fc44 3. Did it work previously in Fedora? If so, what kernel version did the issue *first* appear? Old kernels are available for download at https://koji.fedoraproject.org/koji/packageinfo?packageID=8 : Yes, it worked in kernel 7.0.14 4. Can you reproduce this issue? If so, please provide the steps to reproduce the issue below: It seems to be reproducible simply by updating to kernel 7.1.3 5. Does this problem occur with the latest Rawhide kernel? To install the Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by ``sudo dnf update --enablerepo=rawhide kernel``: Yes, the situation is the same under 7.2.0-0.rc2.21.fc45.x86_64 Running "cat /sys/class/power_supply/BAT*/charge_control_end_threshold" still returns "cat: /sys/class/power_supply/BAT1/charge_control_end_threshold: No data available" 6. Are you running any modules that not shipped with directly Fedora's kernel?: No Reproducible: Always
Created attachment 2147996 [details] Kernel logs Attached is the kernel logs from running "journalctl --no-hostname -k > dmesg.txt"
Battery charge is working again after updating upower to 1.91.3 It seems that this was caused by this change in the kernel: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers?id=186bf90 And fixed in upower in this commit: https://gitlab.freedesktop.org/upower/upower/-/commit/83f86c75d28a57854a4b5986cbfb701249a5b6ad