Skip to contentSkip to conversation

New: asus-wmi: charge_control_end_threshold not restored after resuming from hibernation

Bug 217024 [email protected] 1 participant 1 message Feb 12, 2023 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=217024

            Bug ID: 217024
           Summary: asus-wmi: charge_control_end_threshold not restored
                    after resuming from hibernation
           Product: Drivers
           Version: 2.5
    Kernel Version: v6.1.11
          Hardware: AMD
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Platform_x86
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Created attachment 303716
--> https://bugzilla.kernel.org/attachment.cgi?id=303716&action=edit
Rough and ready patch that seems to fix the issue for me

Hello,

Overview:

I am running self-compiled Linux v6.1.11 on a ASUS Vivobook Pro 14 OLED (M3401). I have set /sys/class/power_supply/BAT0/charge_control_end_threshold to 75. Following resume from hibernation, although the value is still set to 75, the
system starts charging the battery past 75%.

Steps to reproduce (assumes you've set the system up to hibernate):

1. Plug in power supply
2. Set charge_control_end_threshold to desired value (e.g. 75%)
3. Wait for system to stop charging
3. Unplug power
4. Wait for system to hibernate
5. Power system back on to resume from hibernation
6. Plug in power supply

Expected result: system will stop charging again at 75% Actual Result: system will continue to charge past 75%

Build date: 11-02-2023 08:25:18
Hardware: ASUS Vivobook Pro 14 OLED (M3401)

The attached patch seems to fix the issue, but I know next to nothing about this driver, so it may not be the correct fix at all (also has no error checking).

If you need any more information, let me know.

Regards,

Leigh.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.