All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 217024] New: asus-wmi: charge_control_end_threshold not restored after resuming from hibernation
@ 2023-02-12 19:40 bugzilla-daemon
  0 siblings, 0 replies; only message in thread
From: bugzilla-daemon @ 2023-02-12 19:40 UTC (permalink / raw)
  To: platform-driver-x86

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@kernel-bugs.osdl.org
          Reporter: leigh@solinno.co.uk
        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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-12 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-12 19:40 [Bug 217024] New: asus-wmi: charge_control_end_threshold not restored after resuming from hibernation bugzilla-daemon

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.