Skip to content

Battery charge control for MSI Thin GF63 12UCX #294

Description

@dereck449

Laptop model: MSI Thin GF63 12UCX
BIOS: E16R8IMS.10E
Kernel: Linux 6.18.18-1-MANJARO
isw version: 1.9.1

Battery charge control found

After reverse engineering the EC memory dump by comparing charging vs discharging states byte by byte, I found the address that controls battery charging:

  • Address: 0x30 (byte48)
  • Value when charging: 3 (0x03)
  • Value when not charging: 2 (0x02)

Commands

Stop charging (while AC connected):

sudo isw -s 30 2

Resume charging:

sudo isw -s 30 3

Notes

  • Requires ec_sys module with write support: sudo modprobe ec_sys write_support=1
  • Tested with AC adapter connected, battery successfully stopped charging at command
  • KDE power manager correctly reports "Discharging" state when charge is stopped

Hope this helps add support for this model. Happy to provide full EC dumps if needed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions