[Support request] Modern 15 H AI C2HMG - E15H5IMS.306

Open
#890 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
c, linux

Research direction

Start by reading the in-tree msi-ec firmware support checks and the existing model configurations, then compare their EC offsets with the supplied dump for board MS-15H5 and firmware 15H5EMS2.105. The issue provides test hardware and the goal is exposing a battery charge threshold through /sys/class/power_supply/BAT1/charge_control_end_threshold; confirm the EC layout safely and verify that the driver loads and the threshold can be set.

Written by the indexing model from the issue text.

Description

New firmware
Laptop model

Modern 15 H AI C2HMG

EC firmware version

15H5EMS2.105

EC Dump
00000000: 0080 0000 0000 0000 0000 0000 0000 0000  ................
00000010: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000020: 0000 0000 0000 0000 0a05 0000 082c 0b0a  .............,..
00000030: 0703 000d 0100 5081 f811 882c cc01 8000  ......P....,....
00000040: f811 4400 1911 ac08 970b 8631 250c fa32  ..D........1%..2
00000050: 1e23 3200 0002 0000 0000 0000 0000 0000  .#2.............
00000060: 0000 0000 0000 0000 3300 2e34 414b 5153  ........3..4AKQS
00000070: 6428 0028 3746 4b50 5550 3238 454b 4d4f  d(.(7FKPUP28EKMO
00000080: 0000 363b 4a4c 4e50 0000 0028 3746 4b50  ..6;JLNP...(7FKP
00000090: 5500 3238 454b 4d4f 0632 0000 0000 2e00  U.28EKMO.2......
000000a0: 3135 4835 454d 5332 2e31 3035 3035 3134  15H5EMS2.1050514
000000b0: 3230 3235 3135 3a35 303a 3236 0000 0028  202515:50:26...(
000000c0: 0000 0625 0000 0000 00cb 00cd 0000 0000  ...%............
000000d0: 0000 c183 0d00 0580 0007 0000 0005 0000  ................
000000e0: e200 0014 1100 0081 0000 0000 00c0 0000  ................
000000f0: 4000 7000 2b64 0000 6400 0000 0000 0000  @.p.+d..d.......
BIOS version

E15H5IMS.306

GPU

iGPU only (Intel)

Number of fans

2 fans

Webcam block
  • No webcam
  • Slider (small thing that covers the camera)
  • Camera Button (often on F6 key)
  • Camera Toggle Switch (often on the side of case)
  • Camera switch in MSI App
Keyboard backlight type

Single color

Win and FN button location

The FN key is on the right side of the Win key

Mic and Speaker mute LED
  • Speaker mute led
  • Mic mute led
  • No leds / no mute buttons
Distro name and version

Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic

Additional context

Board name: MS-15H5
Product family: Modern
BIOS vendor: American Megatrends International, LLC.
BIOS version: E15H5IMS.306 (05/15/2025)

Loading the in-tree driver fails:

$ sudo modprobe msi-ec
modprobe: ERROR: could not insert 'msi_ec': Operation not supported

The firmware is not in the list of supported firmwares, so the driver refuses to load. As a result /sys/class/power_supply/BAT1/ has no charge_control_end_threshold. Only msi_wmi and msi_wmi_platform are loaded.

Main goal: battery charge threshold (limit to 80%). I can test patches or EC configurations on this machine and provide dmesg output or anything else needed.

EC firmware: 15H5EMS2.105 (built 05/14/2025 15:50:26, see offset 0xa0 in the dump).

Observations that may help (unverified): 0xd7 = 0x80 and 0xd4 = 0x0d, which matches the layout of supported models (charge limit at 0xd7 = 0x80 + threshold, fan mode auto at 0xd4). Charge threshold is currently unset (100%).

LLM Usage

YES

LLM Used (if any)

Claude (Anthropic)

Agent Used (if any)

Claude Code (terminal agent) to collect the device info, Claude in Chrome to fill this form

Tasks given to the AI

Collecting hardware and firmware info from the laptop, summarizing the driver error, and filling in this issue form. I reviewed the content before submitting.

Dominant language
C
Stars
507
Forks
172
Avg merge
7d 12h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MControlSuite/msi-ec

All issues in MControlSuite/msi-ec

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.