[Bug 217024] New: asus-wmi: charge_control_end_threshold not restored after resuming from hibernation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: drivers_platform_x86@xxxxxxxxxxxxxxxxxxxx
          Reporter: leigh@xxxxxxxxxxxxx
        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.

-- 
You may reply to this email to add a comment.

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



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux