{"id":20801759,"url":"https://github.com/timschneeb/msi-ec-modern","last_synced_at":"2025-07-03T14:04:24.104Z","repository":{"id":104051169,"uuid":"543284440","full_name":"timschneeb/msi-ec-modern","owner":"timschneeb","description":"Fork of msi-ec with support for MSI Modern 15 A11M (Business series)","archived":false,"fork":false,"pushed_at":"2022-09-29T20:10:49.000Z","size":27,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T04:25:48.035Z","etag":null,"topics":["acpi","driver","ec","embedded-controller","kernel","kernel-module","laptop","linux","msi","msi-laptop","msi-modern"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timschneeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-09-29T19:19:45.000Z","updated_at":"2025-02-08T10:51:57.000Z","dependencies_parsed_at":"2023-06-29T11:46:10.095Z","dependency_job_id":null,"html_url":"https://github.com/timschneeb/msi-ec-modern","commit_stats":null,"previous_names":["timschneeb/msi-ec-modern"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timschneeb%2Fmsi-ec-modern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timschneeb%2Fmsi-ec-modern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timschneeb%2Fmsi-ec-modern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timschneeb%2Fmsi-ec-modern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timschneeb","download_url":"https://codeload.github.com/timschneeb/msi-ec-modern/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788533,"owners_count":21804284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acpi","driver","ec","embedded-controller","kernel","kernel-module","laptop","linux","msi","msi-laptop","msi-modern"],"created_at":"2024-11-17T18:21:19.604Z","updated_at":"2025-05-07T00:13:53.640Z","avatar_url":"https://github.com/timschneeb.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Embedded Controller for MSI Modern laptops\n\nFork of msi-ec (https://github.com/BeardOverflow/msi-ec) with support for MSI Modern 15 A11M (Business series)\n\nI have also created a [pattern script for ImHex](msi_modern_15_a11m_ec.hexpat). It contains annotations for all useful memory addresses discovered on the Modern 15.\n\n![hex pattern screenshot](https://user-images.githubusercontent.com/38386967/193131500-8b0dd17d-0c7b-4eef-9316-289640bba345.png)\n\n\n\n## Disclaimer\n\nThis driver might not work on other laptops produced by MSI. Use it at your own risk, I am not responsible for any damage suffered.\n\n## Installation\n\n1. Install the following packages:\n- For Debian: `build-essential linux-headers-amd64`\n- For Ubuntu: `build-essential linux-headers-generic`\n2. Clone this repository and cd'ed\n3. Run `make`\n4. Run `make install`\n5. (Optional) To uninstall, run `make uninstall`\n\n## Usage\n\nThis driver exports a few files in its own platform device, msi-ec, and is available to userspace under:\n\n- `/sys/devices/platform/msi-ec/preset`\n  - Description: This entry allows setting a preset (also known as user scenario in MSI Center Pro).\n  - Access: Read, Write\n  - Valid values:\n    - super_battery: Battery saving mode\n    - silent: Prefer silent fans\n    - balanced: Balanced power profile\n    - high_performance: Best performance\n\n- `/sys/devices/platform/msi-ec/webcam`\n  - Description: This entry allows enabling the integrated webcam.\n  - Access: Read, Write\n  - Valid values:\n    - on: integrated webcam is enabled\n    - off: integrated webcam is disabled\n\n- `/sys/devices/platform/msi-ec/fn_key`\n  - Description: This entry allows switching the position between the function key and the windows key.\n  - Access: Read, Write\n  - Valid values:\n    - left: function key goes to the left, windows key goes to the right\n    - right: function key goes to the right, windows key goes to the left\n\n- `/sys/devices/platform/msi-ec/win_key`\n  - Description: This entry allows changing the position for the function key.\n  - Access: Read, Write\n  - Valid values:\n    - left: windows key goes to the left, function key goes to the right\n    - right: windows key goes to the right, function key goes to the left\n\n- `/sys/devices/platform/msi-ec/battery_charge_mode`\n  - Description: This entry allows changing the battery mode for health purposes.\n  - Access: Read, Write\n  - Valid values:\n    - max: best for mobility. Charge the battery to 100% all the time\n    - medium: balanced. Charge the battery when under 70%, stop at 80%\n    - min: best for battery. Charge the battery when under 50%, stop at 60%\n\n- `/sys/devices/platform/msi-ec/cooler_boost`\n  - Description: This entry allows enabling the cooler boost function. It provides powerful cooling capability by boosting the airflow.\n  - Access: Read, Write\n  - Valid values:\n    - on: cooler boost function is enabled\n    - off: cooler boost function is disabled\n\n- `/sys/devices/platform/msi-ec/shift_mode`\n  - Description: This entry allows switching the shift mode.\n  - Access: Read, Write\n  - Valid values:\n    - overclock: maximum clock frequency\n    - balanced: dynamic clock frequency for the CPU \u0026 GPU, aka power balanced mode\n    - eco: low clock frequency for the CPU \u0026 GPU, aka power saving mode\n    - off: operating system decides\n\n- `/sys/devices/platform/msi-ec/fan_mode`\n  - Description: This entry allows switching the fan mode. It provides a set of profiles for adjusting the fan speed under specific criteria.\n  - Access: Read, Write\n  - Valid values:\n    - auto: fan speed adjusts automatically\n    - silent: fan speed remains as low as possible\n    - advanced: fixed 6-levels fan speed for CPU/GPU (percent)\n\n- `/sys/devices/platform/msi-ec/fw_version`\n  - Description: This entry reports the firmware version of the motherboard.\n  - Access: Read\n  - Valid values: Represented as string\n\n- `/sys/devices/platform/msi-ec/fw_release_date`\n  - Description: This entry reports the firmware release date of the motherboard.\n  - Access: Read\n  - Valid values: Represented as string\n\n- `/sys/devices/platform/msi-ec/ac_connected`\n  - Description: This entry reports whether the power adapter is connected.\n  - Access: Read\n  - Valid values: 0 - 1\n    - 0: Connected\n    - 1: Not connected\n    \n- `/sys/devices/platform/msi-ec/lid_open`\n  - Description: This entry reports whether the lid is opened.\n  - Access: Read\n  - Valid values: 0 - 1\n    - 0: Closed\n    - 1: Open\n\n- `/sys/devices/platform/msi-ec/cpu/realtime_temperature`\n  - Description: This entry reports the current cpu temperature.\n  - Access: Read\n  - Valid values: 0 - 100 (celsius scale)\n\n- `/sys/devices/platform/msi-ec/cpu/realtime_fan_speed`\n  - Description: This entry reports the current cpu fan speed.\n  - Access: Read\n  - Valid values: 0 - 150 (percent)\n\n- `/sys/devices/platform/msi-ec/gpu/realtime_temperature`\n  - Description: This entry reports the current gpu temperature.\n  - Access: Read\n  - Valid values: 0 - 100 (celsius scale)\n\n- `/sys/devices/platform/msi-ec/gpu/realtime_fan_speed`\n  - Description: This entry reports the current gpu fan speed.\n  - Access: Read\n  - Valid values: 0 - 150 (percent)\n\nLed subsystem allows us to control the leds on the laptop including the keyboard backlight\n\n- `/sys/class/leds/platform::\u003cled_name\u003e/brightness`\n  - Description: sets the current state of the led.\n  - Access: Read, Write\n  - Valid values: 0 - 1\n    - 0: Led off\n    - 1: Led on\n\n- `/sys/class/leds/msiacpi::kbd_backlight/brightness`\n  - Description: sets the current state of keyboard backlight.\n  - Access: Read, Write\n  - Valid values: 0 - 3\n    - 0: Off\n    - 1: On\n    - 2: Half\n    - 1: Full\n\n\n## List of tested laptops:\n\n- MSI Modern 15 A11M (1552EMS1.118)\n\n## Credits\n * [msi-ec](https://github.com/BeardOverflow/msi-ec)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimschneeb%2Fmsi-ec-modern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimschneeb%2Fmsi-ec-modern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimschneeb%2Fmsi-ec-modern/lists"}